code-google-com / pymel

Automatically exported from code.google.com/p/pymel
0 stars 0 forks source link

Transform getRotation returns euler instead of quaternion #282

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Describe the problem.

What Version of Maya are you using?
Maya 2012 MacOSX

What Version of PyMEL are you using?
1.0.3

What is the expected output? What do you see instead?

See 
-http://pymel.googlecode.com/svn/docs/generated/classes/pymel.core.nodetypes/pym
el.core.nodetypes.Transform.html

Documentation (even in the 1.0.3 docs) says that calling getRotation on a 
transform node should return a quaternion. It in fact returns a euler. Either 
the documentation or code should be corrected to match.

If possible, provide a few lines of code to reproduce the problem. It helps
us if your code will reproduce the problem from a new scene.

node.getRotation()

Original issue reported on code.google.com by justin.m...@gmail.com on 14 Sep 2012 at 3:35

GoogleCodeExporter commented 9 years ago
The docs are fixed in the latest build on github; should see changes next time 
we push a new version of the docs out
also, getRotation now has a kwarg, quaternion, which defaults to False, to 
allow control over whether it returns a quat or euler

Original comment by elron...@gmail.com on 27 Sep 2012 at 1:27