Picture or video
A picture, an animated GIF or a looping video.
- Kind
- Layer · Backgrounds
- Script name
image- Cost to draw
- Heavy

Picture or video
| Setting | Kind | Starts at | Range and notes |
|---|---|---|---|
Filesource | media file | none | – |
Fitfit | choice | Fill | Fill, Whole, Stretch |
Playback speedrate | number | 1× | 0.25 to 2×For a video |
From a script
Every setting above can be changed by the scene's logic, by its key. Say the layer is called Picture or video:
scene.set("Picture or video", "rate", 2);scene.animate("Picture or video", "opacity", 0.5, 2);import { scene } from "motion";scene.set("Picture or video", "rate", 2);scene.animate("Picture or video", "opacity", 0.5, 2);◆On Scene Start
ƒSet Layer SettingTarget is Layer
TargetPicture or video
Parameter Namerate
Parameter Value2
Used in
The example scenes with a Picture or video 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.
Glow Tide
Long Horizon
Rain on Glass
Snowfall
Storm Front
Two Galaxies
Vent Garden