Compatible With ScriptsCompatible With ExpressionsCompatible With The Command Line

 

double Cycle (object master, channel masterChan, object slave, channel slaveChan, double animLength)

 

Return Value: 1.0 = success, 0.0 = failure.

 

Arguments:

master

controlling item

masterChan

channel who's value will be used to to drive the motion of slave

slave

controlled item

slaveChan

channel to affect

animLength

number of frames from the first keyframe on slaveChan to use for the source animation.

 

Drives the motion of [slave:slaveChan] based on the value of [master:masterChan] .[slave:slaveChan] must already have animation on it, the first key on the channel defines the start of the cycle, the end if determined by adding animLength to the first keyframe. The motion of [slave:slaveChan] is replaced with the result of this function. When masterChan = 0.0 the value of slaveChan will be the same as the value of it's first keyframe. When masterChan = 1.0 the value of slaveChan will be the same as the value of the curve at first keyframe + animLength.

 

Example:

Exp_1
|_ Cycle(Slider, xpos, Null_1, motion, 60)
 
Exp_1
|_ Cycle(Slider, xpos, Null_1, motion, 60)
 

As Slider's xpos is moved from 0.0 to 1.0 the motion of Null_1 will change from the values of it's first keyframe to the values at first keyframe + 60.

 

Note: See Tutorials->Expressions->Cycle for an example of Cycle in action.

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