ReferenceLayersLines and shapes
Paths
Lines you draw, with pulses running along them.
- Kind
- Layer · Lines and shapes
- Script name
paths- Cost to draw
- Moderate

Paths
| Setting | Kind | Starts at | Range and notes |
|---|---|---|---|
Linespaths | lines | none | – |
What travels
| Setting | Kind | Starts at | Range and notes |
|---|---|---|---|
Stylestyle | choice | Pulses | Pulses, Comets, Motes |
Colourcolour | colour | #7ce695 | – |
Head colourheadColour | colour | #f4f6f8 | – |
On each linecount | number | 1 | 0 to 12 |
Speedspeed | number | 0.35× | 0.02 to 2×Screen heights a second |
Sizesize | number | 1× | 0.2 to 4× |
Trailtrail | number | 50% | 0% to 100% |
Rest between runsrest | number | 2.5 s | 0 to 10 s |
Directiondirection | choice | Forward | Forward, Back, Both, Bounce |
Flash at the endflash | number | 70% | 0% to 100% |
Pulse on clickpointerPulse | on or off | on | – |
The lines themselves
| Setting | Kind | Starts at | Range and notes |
|---|---|---|---|
Show the lineswire | on or off | on | – |
Line colourwireColour | colour | #2a3b30 | – |
Line widthwireWidth | number | 2.5 px | 0.5 to 12 px |
Line opacitywireOpacity | number | 80% | 0% to 100% |
Endsnodes | choice | Rings | None, Dots, Rings |
End sizenodeSize | number | 9 px | 2 to 30 px |
From a script
Every setting above can be changed by the scene's logic, by its key. Say the layer is called Paths:
scene.set("Paths", "colour", "#ff8a5c");scene.animate("Paths", "opacity", 0.5, 2);import { scene } from "motion";scene.set("Paths", "colour", "#ff8a5c");scene.animate("Paths", "opacity", 0.5, 2);◆On Scene Start
ƒSet Layer SettingTarget is Layer
TargetPaths
Parameter Namecolour
Parameter Value
Used in
The example scenes with a Paths layer in them. Each picture is the whole scene, not the layer alone: open one to see what the layer does in it.
What every layer has
Besides its own settings, every layer has its opacity, blend, placement, quick effects and an effects stack. They're listed once, on the layers page.
Notes from the community
Written by creators and checked by the docs' editors. Not part of Motion's official reference.
Constellations