ReferenceScript nodesRendering
Move Layer Setting To
Moves a layer's number or colour setting smoothly to a value over some seconds, eased, after a delay, once or round and round.
ƒMove Layer Setting ToTarget is Layer
TargetLayerOn Finished
Parameter Nameopacity
Target Value1
Over Time1
EasingEase In Out
Delay0
LoopOnce
Inputs
| Pin | Type | Starts at | Notes |
|---|---|---|---|
in | what happens next | – | – |
Targetlayer | layer | – | – |
Parameter Namesetting | text | "opacity" | – |
Target Valuevalue | any | 1 | – |
Over Timeseconds | number | 1 | – |
Easingeasing | choice | Ease In Out | One of: Linear, Step, Sinusoidal In, Sinusoidal Out, Sinusoidal In Out, Ease In, Ease Out, Ease In Out, Expo In, Expo Out, Expo In Out, Circular In, Circular Out, Circular In Out, Back Out, Bounce Out, Elastic Out. |
Delaydelay | number | 0 | – |
Looploop | choice | Once | One of: Once, Loop, Ping Pong. |
Outputs
| Pin | Type |
|---|---|
then | what happens next |
On Finishedfinished | what happens next |
The code it becomes
The graph below written as a script would write it.
// On Scene Startscene.animate("", "opacity", 1, 1, { easing: ["linear", "step", "sineIn", "sineOut", "sineInOut", "easeIn", "easeOut", "easeInOut", "expoIn", "expoOut", "expoInOut", "circIn", "circOut", "circInOut", "backOut", "bounceOut", "elasticOut"][Math.max(0, Math.min(16, Math.round(7)))], delay: 0, loop: [false, true, "pingpong"][Math.max(0, Math.min(2, Math.round(0)))] }).then(function (ok) { if (!ok) return;});In a graph
◆On Scene Start
ƒMove Layer Setting ToTarget is Layer
TargetLayerOn Finished
Parameter Nameopacity
Target Value1
Over Time1
EasingEase In Out
Delay0
LoopOnce
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.