Announcements
Autodesk Community will be read-only between April 26 and April 27 as we complete essential maintenance. We will remove this banner once completed. Thanks for your understanding
Announcements
We are currently migrating data within this board to improve the community. During this process, posting, replying, editing and other features are temporarily disabled. We sincerely apologize for any inconvenience caused and appreciate your understanding. Thank you for your patience and support.

print function doesn't work maya 2019

4knort
Community Visitor Community Visitor
389 Views
2 Replies
Message 1 of 3

print function doesn't work maya 2019

4knort
Community Visitor
Community Visitor

maya's 2019 console doesn't output the result of print function

 

https://clip2net.com/s/4fs6AfR

Reply
Reply
0 Likes
390 Views
2 Replies
Replies (2)
Message 2 of 3

Kahylan
Advisor
Advisor

Hi!

 

Your code seems correct.

 

Can you try to use this instead:

x = 5

print(x)

 

If that actually prints 5, it could mean that you don't have Python 2.7 (the pythonversion maya uses up to 2022) installed on your system. Most computers these days come only with a Pythonversion of 3.0+ and in those versions print can no longer be used as a statement but only as a function.

This would mean that you have to manually install Python 2.7 on your system.

 

I hope this helps!

 

Reply
Reply
0 Likes
Message 3 of 3

4knort
Community Visitor
Community Visitor

i have python 2.7, this problem accures only in 2019 maya

Reply
Reply
0 Likes