ReferenceScripting APIMotionScenesound
MotionScene.sound
methodA Sound layer, by its name or id.
| Name | sound |
|---|---|
| Kind | method of MotionScene |
| Called as | scene.sound(…) |
| Since | 0.3 |
Syntax
sound(name: string): MotionSoundLayerParameters
| Name | Type | Description |
|---|---|---|
name | string | The layer's name or id |
Returns
MotionSoundLayer: the layer, to play, stop, turn and fade.
Remarks
A layer that isn't there does nothing, and the console says so once.
See also
Notes from the community
Written by creators and checked by the docs' editors. Not part of Motion's official reference.