Motion
Get Motion

ReferenceScript nodesRendering

Toggle Effect

Turns one of a layer's effects on or off.

RenderingtoggleEffect

Inputs

PinTypeStarts atNotes
inwhat happens next––
Layerlayerlayer––
Effecteffecttext"0"–
Ononbooltrue–

Outputs

PinType
thenwhat happens next

The code it becomes

The graph below written as a script would write it.

// On Scene Start(function (e, on) { if (on) e.enable(); else e.disable(); })(scene.layer("").effect(isFinite(Number("0")) && "0" !== "" ? Number("0") : "0"), !!(true));

In a graph

The node with what starts it and Print to show what it gives, as Studio draws them.