Lens
A magnifying lens over what's below, following the pointer or drifting.
- Kind
- Layer · Finish
- Script name
lens- Cost to draw
- Moderate
- Reacts to
- the pointer

Lens
| Setting | Kind | Starts at | Range and notes |
|---|---|---|---|
Sizesize | number | 18% | 5% to 60% |
Zoomzoom | number | 1.8× | 1 to 4× |
Bulgedistortion | number | 40% | -100% to 100% |
Follows the pointertrack | on or off | on | – |
Driftswander | number | 30% | 0% to 100%While there's no pointer |
Edgeedge | number | 50% | 0% to 100% |
Colour fringefringe | number | 30% | 0% to 100% |
From a script
Every setting above can be changed by the scene's logic, by its key. Say the layer is called Lens:
scene.set("Lens", "size", 0.6);scene.animate("Lens", "opacity", 0.5, 2);import { scene } from "motion";scene.set("Lens", "size", 0.6);scene.animate("Lens", "opacity", 0.5, 2);◆On Scene Start
ƒSet Layer SettingTarget is Layer
TargetLens
Parameter Namesize
Parameter Value0.6
Used in
The example scenes with a Lens 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.
Ink Pool