Register Latest Topics
 
 
 


Reply
  Author   Comment  
maozi

First taste
Registered:
Posts: 6
Reply with quote  #1 
Hi, I'm trying to pipe a matrix thru pyExpression and output the rotation using built-in function getRotate(). I get the following error:

// Error: Traceback (most recent call last):
File
"C:/Users/yyang/Documents/maya/2016/plug-ins\pyExpressionCmd.py", line
258, in doIt
exec pythonCode in myDict
File "", line 2, in
File
"C:/Users/yyang/Documents/maya/2016/plug-ins\pyExpressionUtils.py", line
109, in getRotate
return Vector(eRotate.x*57.2958,eRotate.y*57.2958*pi,eRotate.z*57.2958)
NameError: global name 'pi' is not defined
//

I tried the same method using getScale() and getTranslate() which works fine. I guess 'pi' just shouldn't be there?
0
pshipkov

SOuP Jedi
Registered:
Posts: 4,709
Reply with quote  #2 
Wonder when this Pi got in there.
Will fix in the next update.
In the meantime feel free to remove it from your files.
0
maozi

First taste
Registered:
Posts: 6
Reply with quote  #3 
Thanks Peter!
0
Previous Topic | Next Topic
Print
Reply

Quick Navigation: