Announcements

Between mid-October and November, the content on AREA will be relocated to the Autodesk Community M&E Hub and the Autodesk Community Gallery. Learn more HERE.

maya 2023 script editor

maya 2023 script editor

harish.s2020a
Observer Observer
3,151 Views
2 Replies
Message 1 of 3

maya 2023 script editor

harish.s2020a
Observer
Observer

# Error: invalid syntax
# # Traceback (most recent call last):
# # File "<maya console>", line 1, in <module>
# # File "C:\Users/ADMIN/Documents/maya/scripts\JUM\scripts\braid.py", line 152
# # print poly
# # ^
# # SyntaxError: Missing parentheses in call to 'print'. Did you mean print(poly)?

 

i have no exprience in codes, how to solve this?

0 Likes
Accepted solutions (1)
3,152 Views
2 Replies
Replies (2)
Message 2 of 3

ryan.lloyd6764X
Participant
Participant
Accepted solution

If you open up "C:\Users/ADMIN/Documents/maya/scripts\JUM\scripts\braid.py" in a text editor, you will need to place parentheses "(" ")" around the variable placed after the print function on line 152 of the code like it shows in the suggestion "print(poly)". 

 

The script you are trying to use was probably scripted for python2 where python 3+ requires parentheses to be used with the print function.

 

0 Likes
Message 3 of 3

harish.s2020a
Observer
Observer

thanks for solution that error has been resolved, but got more errors

# Error: invalid syntax
# # Traceback (most recent call last):
# # File "<maya console>", line 1, in <module>
# # File "C:\Users/ADMIN/Documents/maya/scripts\JUM\scripts\braid.py", line 7, in <module>
# # from JUM.core.loadUIFile import get_maya_window, load_ui_type
# # File "C:\Users/ADMIN/Documents/maya/scripts\JUM\core\loadUIFile.py", line 25
# # (exec) pyc in frame
# # ^
# # SyntaxError: invalid syntax