Vizard 7 » Command Index » Vizard objects » animationpath » <animationpath>.setLoopMode
7.6

<animationpath>.setLoopMode

The loop mode for the animation path

<animationpath>.setLoopMode(  
mode  
)  
mode
Can be one of the following values:

Loop Modes

viz.OFF

No looping. When the path reaches the end it will stop.

viz.LOOP

Standard Looping. When the path reaches the end it will jump back to the beginning.

viz.SWING

Swing loop. When the path reaches the end it will change direction and go back the otherway.

viz.CIRCULAR

Circular loop. When the path reaches the end it will continue on to the first control point. In this case the control time for the first control point will be used to calculate the time between the control points.

Remarks

This will set the looping behavior for the animation path.

Return Value

None

Example

path = viz.addAnimationPath()
path.setLoopMode(viz.SWING)

See also

<animationpath>.getLoopMode
<animationpath>.pause
<animationpath>.play