Layer | |||
---|---|---|---|
Properties | |||
Property Name | Return Data Type | Description | |
Index | Number | Returns the numerical index of this Layer Object | |
Path | String | Returns the full path of the Root Pin of this Layer from the Engine Root Pin | |
Level | Number | A value between 0.0 and 1.0 that represents the level of this Layer Object, this value can be read or set | |
Pause | Boolean | Returns True if the media player on this Layer Object is paused, False if it is not, this value can be read or set | |
Position | Number | Returns the position of the mediaplayer playhead in milliseconds from the start of the media clip, this value can be read or set | |
InPoint | Number | Returns the position of the InpoInt flag in milliseconds from the start of the media, this value can be read or set | |
OutPoint | Number | Returns the position of the OutPoint flag in milliseconds from the start of the media, this value can be read or set | |
PlayMode | String | Returns a string that represents the playmode of the mediaplayer from one of these values:\nforward forwardLoop backward backwardLoop pingPong random in out This value can be read or set |
|
Functions | |||
Function Name | Parameters | Return Data Type | Description |
FadeLevel | (Number From,Number To,Number FadeTime) | Nothing | Fades the level of this Layer Object in the background from a value of to a value of over Seconds, does not halt script execution |
FadeLevel | (Number To,Number FadeTime) | Nothing | Fades the level of this Layer Object in the background from it’s current value to a value of over Seconds, does not halt script execution |
FadeLevelWait | (Number From,Number To,Number FadeTime) | Nothing | Fades the level of this Layer Object from a value of to a value of over Seconds, does halt script execution while in progress |
FadeLevelWait | (Number To,Number FadeTime) | Nothing | Fades the level of this Layer Object from it’s current value to a value of over Seconds, does halt script execution while in progress |
SetMedia | (Number MediaIndex,String PlayMode(optional),Number Position(optional),Number InPoint(optional),Number OutPoint(optional),Number MediaWait(optional)) | Nothing | Attempts to load the media with an index of into the mediaplayer and set the playmode to , InPoint to Ms, OutPoint to Ms, Playhead to Ms and then wait for Seconds before proceeding with script |
SetPreset | (Number PresetIndex) | Nothing | Attempts to load a Layer Preset with index onto this Layer Object if the preset exists |
FindPin | (String PathFromRoot) | Pin Object or Nil | Returns the Pin Object with a path of from the Root Pin of this Layer Object |
Reset | () | Nothing | Resets the Layer Object to it’s default values |
Hinterlasse einen Kommentar.