ReferenceScripting APIMotionSceneclone
MotionScene.clone
methodA copy of a layer, just above it, while the scene plays.
| Name | clone |
|---|---|
| Kind | method of MotionScene |
| Called as | scene.clone(…) |
| As a node | Clone Layer (logic graph) |
| Since | 0.4 |
Syntax
clone( layer: string, name?: string): MotionLayerParameters
| Name | Type | Description |
|---|---|---|
layer | string | The layer's name or id |
name | string | Optional. The copy's name ("Name (copy n)" unless given) |
Returns
MotionLayer: the copy.
Remarks
1024 copies a scene at most (more throws); a layer that isn't there gives one that doesn't exist.
See also
Notes from the community
Written by creators and checked by the docs' editors. Not part of Motion's official reference.