PDA

View Full Version : getRotation(time) only returns keyed values



dhayes
10-21-2003, 03:48 PM
For some reason, this piece of code:

for(frame=0;frame<=scene.frameend;frame++)
{
bonerot=bone.getRotation(frame);
}

returns the first keyframe value for frame=0, and the second keyframe value for frame=1, etc...

I'm trying to get the value listed on the rotation panel in the layout window for each frame.

What am I doing wrong?

(Incidentally, I'm writing an Lscript to transfer skeletal animation to maya.)

Dan

dhayes
10-21-2003, 04:00 PM
Err.. nevermind.

time=frame/fps
obj.getRotation(time);

Got it now. Subtle.