Error exporting looks (name 'unicode' is not defined)

This widget could not be displayed.

Error exporting looks (name 'unicode' is not defined)

Anonymous
Not applicable

Hi
export looks button return error!
# Error: NameError: file C:\Solidangle\MtoA\maya2022\scripts\mtoa\ui\exportlook.py line 33: name 'unicode' is not defined #
Maya 2022
MtoA-4.2.3-2022
Win 10

0 Likes
Reply
938 Views
4 Replies
Replies (4)

Stephen.Blair
Community Manager
Community Manager

Hmm, Python 3 renamed the unicode type to str, the old str type was replaced by bytes.

If you need it to work now in Python 3, you could edit the file and just remove unicode from that line.


Thanks for reporting, I'll open a ticket.




// Stephen Blair
// Arnold Renderer Support
0 Likes

Anonymous
Not applicable

Hi Stephen
I edited the file as you said, the export looks button works, but now i have another problem in another file: aiStandInTemplate.py.
# Error: UnboundLocalError: file C:\Solidangle\MtoA\maya2022\scripts\mtoa\ui\ae\aiStandInTemplate.py line 627: local variable 'parmas' referenced before assignment #


0 Likes

Stephen.Blair
Community Manager
Community Manager
Hi @

When do you get the error?



// Stephen Blair
// Arnold Renderer Support
0 Likes

Anonymous
Not applicable

Hi
Error occurs only when I try to save to MaterialX Look File (mtlx)
no error when saving to Arnold Operator Graph or Arnold USD File
maybe I've some error in my scene!

0 Likes