doppio — After Effects export: sfilata-v1
=====================================================

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

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

What to expect — Sfilata
-----------------------------------------------------
- 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.
- The pullback is the CAMERA's Zoom, keyed: the app zooms its lens at a fixed
  viewpoint, so the camera never moves — only its Zoom does (out and back in
  over each move). Retime it there; do not scale the wall instead.
- "pan" carries the camera tour; the odd columns ALSO scroll up or
  down inside the wall (on a horizontal reel the lanes are rows, and the odd
  rows scroll left or right), each group of them on its own null under the pan
  ("scroll · columns …", or "scroll · rows …"). "rig" at the comp centre holds the
  tilt when the reel has one. Every card is a constant position under those
  nulls — retime the tour on the pan and the scrolls, never a card.
- Rows wrap: on a vertical reel each COLUMN draws a window of rows around the camera, so
  cards enter and leave at the top and bottom. On a horizontal reel each ROW
  draws a window of cards around the camera, so they enter and leave at the left
  and right (off screen, as in the app). A card is a layer from the frame it
  appears to the frame it leaves; one that comes back is a second layer,
  "… · pass 2". Names read "cell 012 · <footage>"; each layer's comment names
  its Edit-cells row and column as they read on screen, and which copy it is.
- Approximations vs the app: the curved wall (bend) is not exported — a bent
  reel comes out as the flat wall; corner radius and the glass slab
  (thickness) are not exported (doppio ships sharp corners); per-shot and
  per-cell frame options (fit, position, padding, background, …) are not
  exported either. Edit-cells pins ARE: a pinned shot shows in its cell, an
  emptied cell has no card.
- 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.
