Dreppan
04-26-2006, 06:38 PM
Is there a script to find the last keyframe of any hierarchy -- whether it's a jointed skeleton or a constraint system on a rig? I would like to set the current timeline of characters that are read in to always reflect the length of their animation.
The reason it seems trickier with a hierarchy is that the last keyframe may not be on the top node or joint, but hidden within the hierarchy on a toe or finger constraint/joint.
Rig Example: The top constraint has an animation from frames 1 - 40, but the furthest keyframe in the hierarchy is the toe controller animation, which goes to 45. I would want the script to find this, and automatically set the Maya timeline to 1 - 45.
Any help is appreciated -- thanks ahead of time.
The reason it seems trickier with a hierarchy is that the last keyframe may not be on the top node or joint, but hidden within the hierarchy on a toe or finger constraint/joint.
Rig Example: The top constraint has an animation from frames 1 - 40, but the furthest keyframe in the hierarchy is the toe controller animation, which goes to 45. I would want the script to find this, and automatically set the Maya timeline to 1 - 45.
Any help is appreciated -- thanks ahead of time.
