PDA

View Full Version : How to get pivot rotation of bone in Layout?



bartrobinson
05-21-2003, 08:16 PM
I need to know what functions or commands to use in a Generic Layout LScript in order to retrieve (and eventually manipulate) the Pivot Rotation of a bone. This does NOT mean the Rotation.h,p, or b channels. Pivot Rotation. Thanks anyone who can help.

Bart Robinson

NanoGator
09-17-2004, 10:25 PM
*BUMP* Now I'm running into this, too.

ece3k
08-15-2005, 07:53 AM
follow up...ever figure it out?

NanoGator
08-29-2005, 11:09 AM
ARGh. I did figure it out but I don't remember what I did. You know how you can get the world position of a bone? It was sort of like that.. only it was getPivot or something like that.

If I can scrounge up a little time I'll see if I can find my sample script.

Sorry about the late reply. :/

Dodgy
08-29-2005, 03:04 PM
I use this in my Updatebone script.... Let me have a look.

// remove any pivot rotation------------------------------------------------------------------------
pivrot=myoldbone.getPivotRotation(0);
if(pivrot!=<0,0,0>)
{
Rotation(pivrot);
mynewrot=myoldbone.getRotation(0);
PivotRotation(pivrot.x-mynewrot.x,pivrot.y-pivrot.y,pivrot.z-mynewrot.z);
}

This removes any pivot rotation. You have to check first as doing the segment in the IF section on a zero pivot has unforseen consequences.