ReferenceScript nodesRendering
Clone Layer
Makes a copy of a layer just above it, while the scene plays.
ƒClone LayerTarget is Layer
LayerLayerCopy
Name
Inputs
| Pin | Type | Starts at | Notes |
|---|---|---|---|
in | what happens next | – | – |
Layerlayer | layer | – | – |
Namename | text | – | – |
Outputs
| Pin | Type |
|---|---|
then | what happens next |
Copycopy | layer |
The code it becomes
The graph below written as a script would write it.
let s2_copy = "";// On Scene Starts2_copy = scene.clone("", "" || undefined).id;scene.log(s2_copy);In a graph
◆On Scene Start
ƒClone LayerTarget is Layer
LayerLayerCopy
Name
ƒPrint
In Text
The node with what starts it and Print to show what it gives, as Studio draws them.
Related
Notes from the community
Written by creators and checked by the docs' editors. Not part of Motion's official reference.