Adds a Camera fit... popup next to Camera follow in the Timeline, for camera .vmd motions made for a different model:
Made for height: height of the model the camera was made for (default 20, standard MMD size). Measure model... reads it from a model file.
Fit to model: sets Height scale = followed model height / made-for height. Height scale multiplies the camera's Y (eye and target).
Distance: moves the eye along the view direction (closer/farther), keeping cuts and timing.
Offset X/Y/Z: shifts eye and target (model space, Y up).
Follow model placement (on by default): the camera is transformed by the followed model's Position/Rotation/Scale, so a moved or scaled model stays framed as authored.
Followed model = the selected non-stage model, else the first visible non-stage model. All values are saved under timeline.cameraFit in .mrscene; CLI: --camera-made-for H --camera-fit, --camera-height S, --camera-distance S, --camera-offset x,y,z.
Also adds FileBrowser::isOpen() so a cancelled Measure model... doesn't hijack the next file open.
Tests: scene round-trip covers the new fields.
Stacked on #10.
Adds a **Camera fit...** popup next to *Camera follow* in the Timeline, for camera `.vmd` motions made for a different model:
- **Made for height**: height of the model the camera was made for (default 20, standard MMD size). **Measure model...** reads it from a model file.
- **Fit to model**: sets **Height scale** = followed model height / made-for height. Height scale multiplies the camera's Y (eye and target).
- **Distance**: moves the eye along the view direction (closer/farther), keeping cuts and timing.
- **Offset X/Y/Z**: shifts eye and target (model space, Y up).
- **Follow model placement** (on by default): the camera is transformed by the followed model's Position/Rotation/Scale, so a moved or scaled model stays framed as authored.
Followed model = the selected non-stage model, else the first visible non-stage model. All values are saved under `timeline.cameraFit` in `.mrscene`; CLI: `--camera-made-for H --camera-fit`, `--camera-height S`, `--camera-distance S`, `--camera-offset x,y,z`.
Also adds `FileBrowser::isOpen()` so a cancelled *Measure model...* doesn't hijack the next file open.
Tests: scene round-trip covers the new fields.
dev
changed target branch from devin/1796106677-postfx to main2026-12-01 08:35:38 -05:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Stacked on #10.
Adds a Camera fit... popup next to Camera follow in the Timeline, for camera
.vmdmotions made for a different model:Followed model = the selected non-stage model, else the first visible non-stage model. All values are saved under
timeline.cameraFitin.mrscene; CLI:--camera-made-for H --camera-fit,--camera-height S,--camera-distance S,--camera-offset x,y,z.Also adds
FileBrowser::isOpen()so a cancelled Measure model... doesn't hijack the next file open.Tests: scene round-trip covers the new fields.