Keyframe Attribute of an object or current objects - Script

Smart people ~ Great Scripts
Post Reply
User avatar
Draise
Captain
Posts: 3198
Joined: 21 Sep 2009, 19:33
Type the number ten into the box: 0
Location: Bogota, Colombia
Contact:

Keyframe Attribute of an object or current objects - Script

Post by Draise »

Here is a script that helps to keyframe attributes. You can use this to create a morph keyframe set - instead of having to dig in the Keying Panel to select the right morph object to keyframe.

Code: Select all

RsAnim.SetAttrKeyFrame('/Project/SPACE/OBJECT/', '/SUBNODE/ATTRIBUTE', RsTime.CurrentTime());

If you want to keyframe multiple objects use the following script:
(if you want the keying panel relative - say only matrix values or any other common one between a set selection: visibility, etc)

Code: Select all

RsAnim.SetKeyFrame('/Project/SPACE/OBJECT', RsTime.CurrentTime());

!
If you try keyframe any attribute of a joint, bone or IK handle, you will get a crash.
You can set a keyframe of the joint with the selected attributes in the Keying Panel - just not attributes directly through script.
Post Reply