Print string to command response window in Maya 2022/Python 3

Print string to command response window in Maya 2022/Python 3

craig_kane
Participant Participant
8,901 Views
0 Replies
Message 1 of 1

Print string to command response window in Maya 2022/Python 3

craig_kane
Participant
Participant

Hi,

 

I am trying to print a string to the command response window in Maya 2022 with python 3. In Maya 2018 and python 2, the following approach worked to print a string inside the window (simple comma after the string).

 

print "hello",

 

However, with python 3, I tried the following:

 

print ("hello"),

 

...and instead of printing to the window, it returns the following result:

# Result: (None,) # 

 

It would be great if anyone can recommend the correct approach in Maya 2022

 

Thank you,

 

Craig

0 Likes
8,902 Views
0 Replies
Replies (0)