Flock
Birds or fish moving as a flock.
- Kind
- Layer · Simulations
- Script name
flock- Cost to draw
- Heavy
- Reacts to
- the pointer

Flock
| Setting | Kind | Starts at | Range and notes |
|---|---|---|---|
How manycount | whole number | 260 | 10 to 2000 |
Looklook | choice | Birds | Birds, Fish, Dots |
Sizesize | number | 1× | 0.3 to 3× |
Speedspeed | number | 1× | 0.1 to 3× |
Keep apartseparation | number | 1× | 0 to 2× |
Turn togetheralignment | number | 1× | 0 to 2× |
Stay togethercohesion | number | 1× | 0 to 2× |
Avoid the pointeravoid | number | 60% | -100% to 100%Below zero they follow it |
Colourcolour | colour and alpha | #f4f6f8e6 | – |
Far onescolour2 | colour and alpha | #caecff66 | – |
Startseed | seed | 1 | – |
From a script
Every setting above can be changed by the scene's logic, by its key. Say the layer is called Flock:
scene.set("Flock", "size", 3);scene.animate("Flock", "opacity", 0.5, 2);import { scene } from "motion";scene.set("Flock", "size", 3);scene.animate("Flock", "opacity", 0.5, 2);◆On Scene Start
ƒSet Layer SettingTarget is Layer
TargetFlock
Parameter Namesize
Parameter Value3
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.