OpenMaya 1.0 - Add Keys To TransformRotations

OpenMaya 1.0 - Add Keys To TransformRotations

Anonymous
Not applicable
346 Views
0 Replies
Message 1 of 1

OpenMaya 1.0 - Add Keys To TransformRotations

Anonymous
Not applicable

Hi,

I'm new to coding for Maya. I'm used to C# and Unity, so it's a bit of a jump.

 

I am building a Plug-In to copy motion from a animation-Bind-Rig to a Skeleton-Bind-Rig for use in games.

 

I have a nice loop which copies the rotation values from joint to joint for the full length of the animation.

Now I need to key all those values in each iteration of the loop!

Do I have to create an AnimationCurve Node, for the X, Y & Z Rotation of each Joint before the loop, and add my Keys to them as I iterate through?
Is there no way to simply Add Key at Current Value to a Transform Attribute?

0 Likes
347 Views
0 Replies
Replies (0)