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

<animationpath>.getTimeAtControlPoint

Get the time at the specified control point

<animationpath>.getTimeAtControlPoint(  
index  
)  
index
0-based index of the control point. Negative index can also be used to reference from end of list.

Remarks

Return the elapsed time (in seconds) at the specified control point index in the animation path. The time is dependent on the control point position/times and constant speed setting.

The time returned by this command can differ from the assigned control point time specified in the <animationpath>.addControlPoint command. This can occur if the first control point time is not 0, or if the constant speed setting is enabled.

The current speed factor (<animationpath>.setSpeed) is ignored.

Return Value

Time, in seconds

See also

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