ReferenceScripting APIMotionVideo
MotionVideo
interfaceA Video layer's film (scene.video).
| Name | MotionVideo |
|---|---|
| Kind | interface |
| Script reaches it as | MotionScene.video() |
| Since | 0.4 |
Syntax
interface MotionVideo { … }Properties
| Name | Type | Description |
|---|---|---|
timeproperty | readonly number | Where it is in its film, seconds. |
durationproperty | readonly number | How long its film is, seconds (0 when the file doesn't say). |
playingproperty | readonly boolean | Whether it's playing. |
rateproperty | readonly number | Its speed (1 as it is, 0 held). |
Methods
Notes from the community
Written by creators and checked by the docs' editors. Not part of Motion's official reference.