Exploded views export as an animation (#3713) (#3744)

* claim: #3713

* Exploded views export as an animation (#3713)

motion.export_animation takes an exploded view (view: id|name) as well as a
study or a joint: the parts come apart at a steady pace from the assembled
placement to where the view shows them, and back together with back: true
(exploded at the middle frame). 41 frames by default, 81 with back. The home
view frames the parts both assembled and exploded. As with explode.show, the
design keeps its placements, its history and its saved state.

explode.show and the export share the moves; moves a design file gives with
no finite translation are left out.

* Mechanisms skill: an exploded view's default frame count

---------

Co-authored-by: MateuszSychXpl <151755914+MateuszSychXpl@users.noreply.github.com>
This commit is contained in:
Mateusz Sych
2026-10-24 19:25:49 +00:00
committed by GitHub
parent 8c853fff3e
commit d61dff69a6
6 changed files with 203 additions and 34 deletions
+5
View File
@@ -288,6 +288,11 @@ are drawn by the same renderer as `solidcraft-cli snapshot`, on a copy of the de
changed. A GIF keeps one palette for all its frames, so colours don't flicker, and stores only
what changed from one frame to the next. Frames are capped: at most 1000, and a GIF holds at most
2^26 pixels of frames (about 160 frames of 800 × 500).
An exploded view animates the same way: give its name or id as `view` (instead of a `study` or a
`joint`) and the parts come apart at a steady pace, from the assembled placement to where the view
shows them; `back: true` brings them back together, exploded at the middle frame. That takes 41
frames by default, or 81 with `back`, and the home view frames the parts both assembled and
exploded. As with `explode.show`, the design keeps its placements.
**Motion analysis.** The **Motion Study** dialog's **Study** box opens a saved study to edit, and
by its timeline the dialog charts what the study does.