Change working units through a script

Change working units through a script

Anonymous
Not applicable
1,888 Views
1 Reply
Message 1 of 2

Change working units through a script

Anonymous
Not applicable

Hey,

 

I was wondering if there was a way to change the working units (for example centimeters to meters) within a python script. I know you can go from windows -> preference -> settings, but I was wondering if there was a way to automatically do that from code rather than manually

 

Thanks

0 Likes
Accepted solutions (1)
1,889 Views
1 Reply
Reply (1)
Message 2 of 2

mspeer
Consultant
Consultant
Accepted solution

Hi!

 

cmds.currentUnit( linear='meter' )