ECToo / pymel

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

TransformationMatrix.setRotation enum appears broken #208

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Describe the problem.

Doesn't appear to be looking up the enum correctly based.

What Version of Maya are you using?

2010x64

On what operating system? (be as specific as possible and include service
packs, 64bit vs 32bit, etc)

Windows 7x64

What Version of PyMEL are you using?

luma/pymel master

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

Should be able to access the enum which is missing

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.

import pymel.core as pm

mat = pm.dt.TransformationMatrix()
mat.setRotation((90,90,0),'XYZ')
# Error: KeyError: 'MTransformationMatrix.RotationOrder' # 

Does maya.cmds exhibit the same problem?

NR

Please provide any additional information below.

Tried passing the enum directly too:

mat = pm.dt.TransformationMatrix()
mat.setRotation((90,90,0),pm.dt.TransformationMatrix.RotationOrder.XYZ)

Original issue reported on code.google.com by shrt...@gmail.com on 29 Aug 2010 at 9:57

GoogleCodeExporter commented 9 years ago
took a look into this - it's actually not the enum that's broken, it's 
getRotation which has a problem... basically, the underlying api function needs 
to pass in a

RotationOrder &

...which is impossible in python

Should have a workaround using eulerRotation soon...

Original comment by elron...@gmail.com on 22 Sep 2010 at 12:32

GoogleCodeExporter commented 9 years ago
Thanks

Original comment by shrt...@gmail.com on 25 Sep 2010 at 3:29

GoogleCodeExporter commented 9 years ago
fixed in github 42ee192994b5b01629a3a5618b0160d4f890ae5a

Original comment by elron...@gmail.com on 3 Oct 2010 at 8:59