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

<animationpath>.getDuration

Get the duration of the animation path

<animationpath>.getDuration()  

Remarks

Returns the duration of the animation path, in seconds. The duration is dependent on the control point times, loop mode, and constant speed setting.

The duration is typically the time between the first and last control points, but can be affected by the following factors:

The duration is NOT affected by the path speed factor (<animationpath>.setSpeed).

Return Value

Duration, in seconds

See also

<animationpath>.getTime
<animationpath>.setTime
<animationpath>.getDistance
<animationpath>.getDistanceAtTime
<animationpath>.getDistanceAtControlPoint
<animationpath>.getMatrixAtTime
<animationpath>.getTimeAtDistance
<animationpath>.getTimeAtControlPoint