Motion
Get Motion

ReferenceScripting APIMotionSceneclone

MotionScene.clone

method

A copy of a layer, just above it, while the scene plays.

Nameclone
Kindmethod of MotionScene
Called asscene.clone(…)
As a nodeClone Layer (logic graph)
Since0.4

Syntax

clone(    layer: string,    name?: string): MotionLayer

Parameters

NameTypeDescription
layerstringThe layer's name or id
namestringOptional. 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

MotionLayer