doppio — After Effects export: lastra-v3
=====================================================

How to open
-----------
1. Open After Effects (2022 or newer; text animation uses expression selectors).
2. File > Scripts > Run Script File... and pick lastra-v3.jsx from this folder.
3. The reel opens as the comp "lastra-v3". The template plays inside it as
   "lastra-v3 · template".

Keep footage/ next to the .jsx — the script imports from it by relative path.

What to expect — Lastra
-----------------------------------------------------
- This comp has a REAL camera ("camera") and the cards are genuine 3D
  layers in its space — that camera IS the app's perspective (its zoom and its
  distance both equal the app's perspective in px). Leave it where it is, do not
  flatten the layers, and do not add a second camera above it: AE renders through
  the topmost enabled camera.
- One null, "rig", is the view: the X / Y knobs' offset, the 3D knob's
  look-down (X Rotation) and the Angle knob (Y Rotation). Walk around the file
  by turning the rig's Y Rotation; nothing else has to change.
- Under it, "line" sits on the hero's top edge, turned so that its Y axis
  runs along the card line toward the camera. Every card's "card NN · pivot"
  null slides down that axis (Position Y only — the file steps one slot per
  beat, the falling card crosses the gap in the same beat) and carries the
  card's lean as its X Rotation, measured from the line. Retime the beat on the
  pivots; they share their keyframe times.
- Each card is its pivot plus the picture hanging half a card below it (the
  app tilts cards about their TOP edge). One pair per trip through the file:
  a card appears at the back of the stack (or where it first comes on screen)
  and is cut where it leaves the canvas, so the comp holds more cards than the
  reel has pictures — card NN and the ones that share its footage are the same
  shot on later trips.
- The shot precomps are planned at the LARGEST size a card is drawn on screen
  (the front cards come toward the camera), so the pictures' own Scale reads
  under 100 %.
- With Thickness above 0 the cards are glass slabs. Each picture has ONE comp
  in "slabs" holding its front face, its back face and its four side walls as
  3D layers, and every card showing it has Collapse Transformations on, so
  those layers stand in the main comp's 3D space under its camera. Each wall
  shows its own "slab sides" comp: the picture's outer pixel row (or column)
  stretched across the slab's depth, frosted by two layers inside it (a grey
  one in Saturation mode, a white one), so a video's sides follow the clip.
  The frost is fitted to the app's rim colour (within about 20 of 255 levels),
  without its bright lines at the two faces or its glint at grazing angles.
  Thicker or thinner glass: re-export.
- Approximations vs the app: corner radius is not exported (doppio ships
  sharp corners); per-shot frame options are not exported.
- How the project reads: every name is lowercase, role first, then its
  number, then what it shows: "card 03 · cover", its back "card 03 · cover ·
  back", the null it hangs off "card 03 · pivot"; one-off nulls are just
  "rig", "pan", "spin". Inside the reel's folder: "shots" holds one precomp per
  picture ("shot 03 · cover" — swap footage THERE and every card using it
  follows), "solids" holds the nulls' and solids' sources, "folds" and "media"
  appear when the reel has them. A layer's Comment column says which doppio
  slot it came from.
- Shot precomps are rounded to whole pixels, so a card can sit up to half a
  pixel from where the app puts it at hero scale.
- Videos: a clip plays WITH the comp timeline (it starts at frame 0 of the
  comp, not when its card appears). A clip shorter than the reel is looped
  via Interpret Footage to cover the comp — the app loops video by default,
  and this mirrors it. Per-shot video options (clip start, speed, fixed
  duration, loop off) are not exported; retime the footage layer inside the
  shot precomp.
- Text layers are live, editable AE text. Their in/out animations are Text
  Animators whose expression selectors carry doppio's timing; edit the
  numbers at the top of an expression to retime it. A slide's mask (each word
  clipped to its own box) is not exported.
- Media layers sit in their own "media · <file>" precomps, fitted like doppio.
