[Maya-Python] Unable to get correct attribute values from MFnAnimCurve

2020-02-10 Thread yann19
I had a locator, where the following attributes are keyed at Frame 2: - rotateX : 10 - rotateY : 20 - rotateZ : 30 I am trying to get the rotational values at every frame, even so, I am having issues in deriving from just one frame. When I run my following code (see *here*

Re: [Maya-Python] Unable to get correct attribute values from MFnAnimCurve

2020-02-10 Thread Angelo Sta. Catalina
you're getting values in radians. You can convert it back to degrees using the math module math.degrees(x) On Mon, Feb 10, 2020 at 5:33 PM yann19 wrote: > I had a locator, where the following attributes are keyed at Frame 2: > >- rotateX : 10 >- rotateY : 20 >- rotateZ : 30 > > > I