Files
effectcraft/crates
vangel76 de83c004ed Camera tools: After Effects' variants of Orbit, Pan and Dolly
Fixes #2586.

The Tools bar's Orbit, Pan and Dolly slots now hold After Effects' eight
camera tools, picked from each slot's flyout (Alt-click cycles; C, 1, 2
and 3 keep the variant last picked):

- Orbit Around Cursor / Around Scene / Around Camera POI
- Pan Under Cursor / Pan Camera POI
- Dolly Towards Cursor / Dolly to Cursor / Dolly to Camera POI

camera.orbit, camera.pan and camera.dolly take a `mode` and the point it
needs (`cursor` in comp pixels, or a resolved world `point`) and return
the world pivot they used, which the viewer keeps for the rest of the
drag. The cursor variants now really use the point under the cursor (the
nearest visible 3D layer the ray hits, else the point at the depth of the
point of interest); before, all three worked about the point of interest.
Without `mode` the commands behave as before. A parented camera picks its
point in world space and moves in its parent's space.

The camera math is pure (Rig::orbit_about, pan_at, dolly_towards,
pixel_ray, point_under, bounds_center) and never writes a non-finite
camera; Dolly Towards Cursor keeps going past its point during a drag, and
Dolly to Camera POI no longer backs off when closer than 1 px.
2026-11-07 17:33:40 +01:00
..