ndeboar
10-17-2010, 11:52 PM
Hey,
1. create a new sphere
2. set it's rotation too "100,100,100"
3 query the rotation with this:
from pymel.core import *
sel = ls(selection=True)
print sel[0].getRotation()
Result = [-80.0, 80.0, -80.0]
But if I use xform
from pymel.core import *
sel = ls(selection=True)
print xform(sel[0],query=True,rotation=True)
Result = [100.0, 100.0, 100.0]
Why the hell is getRotation returning the wrong values?
Cheers,
Nick
1. create a new sphere
2. set it's rotation too "100,100,100"
3 query the rotation with this:
from pymel.core import *
sel = ls(selection=True)
print sel[0].getRotation()
Result = [-80.0, 80.0, -80.0]
But if I use xform
from pymel.core import *
sel = ls(selection=True)
print xform(sel[0],query=True,rotation=True)
Result = [100.0, 100.0, 100.0]
Why the hell is getRotation returning the wrong values?
Cheers,
Nick
