ReferenceScript nodesRendering
Get Layer Bounds
The box round a layer as it was last drawn, 0 to 1 of the scene.
ƒGet Layer Bounds
LayerLayerX
Y
Width
Height
Known
Inputs
| Pin | Type | Starts at | Notes |
|---|---|---|---|
Layerlayer | layer | – | – |
Outputs
| Pin | Type |
|---|---|
Xx | number |
Yy | number |
Widthwidth | number |
Heightheight | number |
Knownknown | bool |
The code it becomes
The graph below written as a script would write it.
// On Scene Startscene.log((((scene.layer("").bounds || { x: 0 }).x)));In a graph
◆On Scene Start
ƒGet Layer Bounds
LayerLayerX
Y
Width
Height
Known
ƒ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.