Motion
Get Motion

ReferenceScripting APIMotionScenelayerAt

MotionScene.layerAt

method

The top layer drawn at a point.

NamelayerAt
Kindmethod of MotionScene
Called asscene.layerAt(…)
As a nodeLayer At Point (logic graph)
Since0.4

Syntax

layerAt(    x: number,    y: number): MotionLayerInfo | null

Parameters

NameTypeDescription
xnumberAcross the scene, 0 to 1
ynumberDown the scene, 0 to 1

Returns

MotionLayerInfo | null: the layer, or null.

Remarks

null at first: the layers' places are known a moment after it's first asked.

See also

MotionLayerInfo