Open topic with navigation
<animationpath>.setTranslateMode
The interpolation mode for translations
<animationpath>.setTranslateMode( |
|
mode |
) |
|
mode
Can be one of the following values:
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 translations. The default is viz.LINEAR. If a control point within the path has a translation 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.setTranslateMode(viz.CUBIC_BEZIER)
See also