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

<animationpath>.setScaleMode

The interpolation mode for scaling

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

Interpolation Modes

viz.LINEAR

Interpolate linearly between control points.

viz.CUBIC_BEZIER

Use cubic bezier interpolation. Cubic bezier uses the control points and their incoming and outgoing tangents to compute a smooth curve between them. This is normally only used with translations.

Remarks

This will set the interpolation mode for scaling. The default is viz.LINEAR. If a control point within the path has a scale mode other than viz.INHERIT then the path will use that mode while it is leaving that point.

Return Value

None

Example

path = viz.addAnimationPath()
path.setScaleMode(viz.CUBIC_BEZIER)

See also

<animationpath>.setRotateMode
<animationpath>.setTranslateMode
<controlpoint>.setScaleMode