maozi
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?
Quote 0 0
pshipkov
Wonder when this Pi got in there.
Will fix in the next update.
In the meantime feel free to remove it from your files.
Quote 0 0
maozi
Thanks Peter!
Quote 0 0

Add a Website Forum to your website.