M6.4: pen tool masks, mask vertex selection/dragging, tangent handles

Engine (mask.rs, tests in tests_timeline.rs incl. render + undo/redo):
mask.new, mask.addVertex, mask.setVertex, mask.setClosed (Layer > Mask and Shape Path >
Closed), mask.selectVertices, mask.moveVertices (merged drags), mask.deleteVertices
(Delete with vertices selected), mask.remove / mask.removeAll (Layer > Mask). Edits of an
animated Mask Path key the current time.

Viewer: Pen tool on the selected layer - click = corner vertex, drag = Bezier vertex,
click the first vertex to close, Esc/Enter or another tool ends the path; rubber band to
the pointer. Selection tool: click/shift-click mask vertices, drag selected vertices,
drag tangent handles (symmetric; Alt breaks). Vertices register automation ids
viewer.mask.<uid>.vertex.<i>. Mode/inverted/feather/opacity/expansion stay in the
timeline mask rows.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Brandon Thomas
2026-10-01 22:12:52 -04:00
co-authored by Claude Opus 5.5
parent 941e087446
commit 0acc106175
6 changed files with 551 additions and 17 deletions
+2
View File
@@ -10,6 +10,7 @@ mod help;
mod layer;
mod layer_time;
mod link;
mod mask;
mod prop;
mod query;
mod time;
@@ -75,6 +76,7 @@ pub fn command_specs() -> &'static [CommandSpec] {
v.extend(prop::specs());
v.extend(anim::specs());
v.extend(link::specs());
v.extend(mask::specs());
v.extend(effect::specs());
v.extend(time::specs());
v.extend(help::specs());