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

<animationpath>.getMatrixAtTime

Get transform matrix at specified time

<animationpath>.getMatrixAtTime(  
time  
)  
time
Time, in seconds

Remarks

This command will return the transform matrix of the animation path at the specified time from the beginning. It will take into account the current loop, interpolation, auto rotate, and constant speed settings. The current speed factor (<animationpath>.setSpeed) is ignored.

Return Value

viz.Matrix object

Example

# Print position of path at 5 seconds from beginning
print(path.getMatrixAtTime(5.0).getPosition())

See also

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