Message 1 of 1
OpenMaya 1.0 - Add Keys To TransformRotations

Not applicable
08-01-2018
03:03 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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?