User Guide
Lingo Dictionary 169
Verbose syntax:
set the text of member "time" to (the currentTime of sprite 10) / 1000
This statement causes the sound playing in sound channel 2 to skip to the point 2.7 seconds from
the beginning of the sound cast member:
sound(2).currentTime = 2700
See also
movieTime, duration
currentTime (3D)
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() (3D), queue() (3D), playlist
currentTime (RealMedia)
Syntax
sprite(whichSprite).currentTime
member(whichCastmember).currentTime
sprite(whichSprite).currentTime = timeInMilliseconds
member(whichCastmember).currentTime = timeInMilliseconds