3D Lingo Dictionary > C-D > currentTime

 

currentTime

Syntax

member(whichCastmember).model(whichModel).keyframePlayer.currentTime
member(whichCastmember).model(whichModel).bonesPlayer.currentTime

Description

3D keyframePlayer and bonesPlayer modifier property; indicates the local time of the motion being executed by the model. The currentTime property is measured in milliseconds, but it only corresponds to real time when the motion is playing at its original speed.

Playback of a motion by a model is the result of either a play() or queue() command. The scale parameter of the play() or queue() command is multiplied by the modifier's playRate property, and the resulting value is multiplied by the motion's original speed to determine how fast the model will execute the motion and how fast the motion's local time will run. So if the scale parameter has a value of 2 and the modifier's playRate property has a value of 3, the model will execute the motion six times as fast as its original speed and local time will run six times as fast as real time.

The currentTime property resets to the value of the cropStart parameter of the play() or queue() command at the beginning of each iteration of a looped motion.

Example

This statement shows the local time of the motion being executed by the model named Alien3.

put member("newalien").model("Alien3").keyframePlayer.currentTime
-- 1393.8599

See also

play(), queue(), playlist