Harmony Script

Peg To Static Transformation

Peg2Static

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.

Download


Installation:

  1. Add USR_Peg_2_StaticTransform.js to your user scripts folder.
  2. Add the script icon to script-icons folder inside the user scripts folder.

 

Direction:

  1. Add Peg_To_Static_Transformation to any toolbar.
  2. Select one Peg and one Drawing module.
  3. Run Peg_To_Static_Transformation.
  4. Static Modules will be created and connected to a new Transformation Switch module.
  5. The clone of the selected drawing will also be connected to the switch module for switching.
  6. All generated modules will be wrapped inside a group with a prefix “StaticGroup-“.

 

Detailed Description:

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.

Timeline
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.
 

Credit:

This script is made based on Animator/Tech Artist Jonathan Murphy’s rigging technique. (jonathanrobertart.com)


Leave a comment

Copyright © 2019 Yu Ueda All Rights Reserved.