ReferenceScript nodesRendering
Get Layer Setting
The value this script last gave a layer's Parameter Name, or Default Value if it hasn't.
ƒGet Layer Setting
TargetLayerResult
Parameter Nameopacity
Default Value0
Inputs
| Pin | Type | Starts at | Notes |
|---|---|---|---|
Targetlayer | layer | – | – |
Parameter Namesetting | text | "opacity" | – |
Default Valueotherwise | any | 0 | – |
Outputs
| Pin | Type |
|---|---|
Resultvalue | any |
The code it becomes
The graph below written as a script would write it.
// On Scene Startscene.log(((function () { const v = scene.get("", "opacity"); return v === undefined ? 0 : v; })()));In a graph
◆On Scene Start
ƒGet Layer Setting
TargetLayerResult
Parameter Nameopacity
Default Value0
ƒ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.