09-04-2008 09:55
I'm trying to make a way to adjust all the poses in an MLP/MLPV2 positions file, for when you change the orientation of the MLP prim. For example, I have an MLPV2 sofa, works great -- only I want to change the cushion prim (contaning the scripts and anims) from an ellipse to a scuplty. As it turns out, for the texture not to have a seam on the top, I have to flip it over -- putting all my poses upside down under the cushion.

The positions are stored as an (offset, euler) pair for each poseball for each pose. I know how to adjust the offset.

I need just a bit of help adjusting the euler rotation for the ball. I convert it to a quaternion, and I have the rotation I want (relative to the cushion's axes) as a quaternion.

I know how to rotate the ball relative to global axes, or the ball's axes, but not relative to the cushion's axes.

Rotations make my poor little head hurt. I should do them more, and I'd get used to them!

Thanks for any help!