<controlpoint>.setTranslateMode

The interpolation mode for the translation

 

<controlpoint>.setTranslateMode(
    mode    

)

 

mode

Can be one of the following values:

Interpolation Modes

INHERIT

Inherit the interpolation mode of the animation path. (Default)

LINEAR

Interpolate linearly between control points.

BEZIER

Use bezier interpolation between control points. Note: Bezier interpolation guarantees that the path will go through the first and last control point, but not the control points in between. Control times are ignored with bezier interpolation. They are only used to order the control points. To give a control point more weight, add it multiple times to the path.

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 the translation of this control point. The default is viz.INHERIT

Return Value

None

Example

cp = viz.addControlPoint()
cp.setTranslateMode(viz.BEZIER)

See also

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