Peg To Static Transformation
Creates a series of Static Transformation modules from the selected Peg’s keyframe values.
By converting a Peg to Static modules, you can make a peg-like module that is un-animatable and also immune to “Reset All Transfomations” function.
The Static modules will be connected to a Transformation Switch likewise deformer chains.
This way, each Static modules can be switched based on the selected drawing’s cel timings.
- Add USR_Peg_2_StaticTransform.js to your user scripts folder.
- Add the script icon to script-icons folder inside the user scripts folder.
- Add Peg_To_Static_Transformation to any toolbar.
- Select one Peg and one Drawing module.
- Run Peg_To_Static_Transformation.
- Static Modules will be created and connected to a new Transformation Switch module.
- The clone of the selected drawing will also be connected to the switch module for switching.
- All generated modules will be wrapped inside a group with a prefix “StaticGroup-“.
This script determines the total number of Static modules to generate
based on the sum of valid keyframes on the Peg.
A valid keyframe must have a corresponding drawing cel so a keyframe-cel pair can be formed.
After a Static module is made based on the keyframe’s value, Transformation Switch can use the cel as the reference to select the Static module.
When script finds a keyframe on a frame but the exposed cel on the same frame has already been paired with another keyframe, the keyframe will be skipped.
In this scenario, script will only generate Static modules for frame 1 and 5.
Frame 3 and 8 will be ignored because CEL 1 is already paired with frame 1. Frame 6 will be ignored because it has no exposed cel to pair.
This script is made based on Animator/Tech Artist Jonathan Murphy’s rigging technique. (jonathanrobertart.com)