Results 1 to 2 of 2

Thread: getRotation(time) only returns keyed values

  1. #1

    getRotation(time) only returns keyed values

    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

  2. #2
    Err.. nevermind.

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

    Got it now. Subtle.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •