Community
Maya Forum
Welcome to Autodesk’s Maya Forums. Share your knowledge, ask questions, and explore popular Maya topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

File path using accents Studio library Maya Python

0 REPLIES 0
Reply
Message 1 of 1
ouafae.kandoussi2
733 Views, 0 Replies

File path using accents Studio library Maya Python

 

I am creating a python script for Autodesk Maya 2020 using Studio Library to load rig files and apply it to the character.

So My files path name use accents, even if I use ASCII codec to load the file it does not accept it.

For example, if I test this code:

 

var = u'\u00e9 \u00e8 \u0153'
print(var)

 

It will print:

 

>> é è œ

 

but if I try it using Studio Library to load my folder name 'É.pose' like this:

 

PN_E1 = mypath+u"\u00e9".upper()+".pose/"
cmds.currentTime(0);
PN_E1.load(objects=objects, namespaces=[mynamespace], key=True, blend=100, mirror=False)

 

It throws this error:

 

UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 84: ordinal not in range(128) #

 

Did anyone have an idea ?

Labels (4)
0 REPLIES 0

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report