Compatible With ScriptsCompatible With ExpressionsCompatible With The Command Line

 

double CycleBranchMorphAddFrame (object root_1, object root_2, channel chan, frame frm, double weight )

 

Return Value: Morph the motion of the branch starting at root_1 (inclusive) on the chan channel to match that of the coorisponding item(s) in the branch starting at root_2. The motion of root_2 is sampled at frame frm. The resulting motion is added to the existing motion of the item(s).

 

Arguments:

root_1

branch to be modified

root_2

"target" branch

chan

channels to modify

frm

frame to take sample from

weight

amount of influence this morph has on the final shape of root_1

 

Same as CycleBranchMorphFrame( ) except that the results of this function are added to the existing motion of the item(s) of root_1. This also means that the motion is added to the keyframed motion of the item(s) so you can tweak the resulting procedural motion.

 

Example:

HappyFaceWeight
|_CycleBranchMorphFrame(Face, Face_Targets, motion, 10, [Slider:chan[ happy ] ] )
SadFaceWeight
|_CycleBranchMorphFrame(Face, Face_Targets, motion, 20, [Slider:chan[ sad ] ] )

The motion of Face is determined to be a mix of the motion of Face_Targets at frame 10 and 20. The amount of influence each shape has on the result is determined by Slider's happy and sad channels. Note that since the sad morph is the last in the list it will overpower all of the other morphs when it's weight is set to 1.0.

Converted from CHM to HTML with chm2web Pro 2.82 (unicode)