Hi, my question is when I type "\tInsert tab \nInsert newline" in my script editor it cant show a new line.
Its result always is:
# Result: '\tInsert tab \nInsert newline' #
how to solve it?
thank you!
Hi, my question is when I type "\tInsert tab \nInsert newline" in my script editor it cant show a new line.
Its result always is:
# Result: '\tInsert tab \nInsert newline' #
how to solve it?
thank you!
hmm. I tried the exact same thing and got the result you expected. Might be a Maya or python version issue?
To clarify, I am on Maya 2018 and Maya is using python 2.7.11. Hope that helps narrow it down!
hmm. I tried the exact same thing and got the result you expected. Might be a Maya or python version issue?
To clarify, I am on Maya 2018 and Maya is using python 2.7.11. Hope that helps narrow it down!
Hi, thank you!
maybe it's Maya's version problem, mine is 2020.04 and python is 2.7.11
I tried to type print("\tInsert tab \nInsert newline") and showed the ideal resault.
Hi, thank you!
maybe it's Maya's version problem, mine is 2020.04 and python is 2.7.11
I tried to type print("\tInsert tab \nInsert newline") and showed the ideal resault.
Nice! glad you found a work around.
Side note/fun fact, if you want your print statement to show up in the main UI as well, you can just add a comma after your print statement, and it will show up there (at least for 2018 maya, not sure if it is still the same for newer versions):
Nice! glad you found a work around.
Side note/fun fact, if you want your print statement to show up in the main UI as well, you can just add a comma after your print statement, and it will show up there (at least for 2018 maya, not sure if it is still the same for newer versions):
I try it, its useful! thank u.
I try it, its useful! thank u.
Can't find what you're looking for? Ask the community or share your knowledge.