Merge main into menu-parity branch; point AE menu entries at main's real commands

- Integrate main (render queue, timeline/keys, time remap, masks/pen, 3D, MCP/CLI).
- Menu tree now runs renderQueue.add, layer.enableTimeRemap, layer.timeReverse,
  layer.freezeFrame/OnLastFrame, prop.separateDimensions, mask.setClosed,
  layer.cameraSettings, view.3d.* / view.3d.last / view.reset3DView, main's
  layer.autoOrient and keyframe velocity/interpolation/time-stretch dialogs;
  matching stubs deleted (view.3d.default stays disabled).
- Keyframe clipboard is main's (keys.copy/paste); Paste Reversed Keyframes
  reuses it. Animation-menu commands moved to commands/animation.rs.
- Main's spec menu paths/labels aligned with AE (Camera Settings under
  Layer > Camera, "..." labels, Freeze On Last Frame).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Brandon Thomas
2026-10-02 00:12:01 -04:00
co-authored by Claude Opus 5.5
129 changed files with 27041 additions and 1197 deletions
+1 -30
View File
@@ -2,9 +2,7 @@
//! layers, markers, track matte shortcuts, open/reveal, and Keyframe Assistant ▸ Sequence Layers.
use effectcraft_keyframe::{Keyframe, ShapePath, Value as KV};
use effectcraft_project::{
AutoOrient, FrameBlend, GroupKind, ItemId, LayerId, LayerSource, Marker, MaskMode, MatteKind, Node, Quality, Sampling, TrackMatte, Uid,
};
use effectcraft_project::{FrameBlend, GroupKind, ItemId, LayerId, LayerSource, Marker, MaskMode, MatteKind, Node, Quality, Sampling, TrackMatte, Uid};
use effectcraft_time::Tick;
use serde_json::{Value, json};
@@ -254,24 +252,6 @@ fn center_anchor(s: &mut Session, p: &Value) -> Result<Value> {
Ok(json!({"layers": centers.len()}))
}
fn auto_orient(s: &mut Session, p: &Value) -> Result<Value> {
let (cid, ids) = layers_p(s, p)?;
let mode = match str_p(p, "mode").ok_or_else(|| bad("layer.autoOrient", "missing `mode`"))? {
"off" => AutoOrient::Off,
"alongPath" => AutoOrient::AlongPath,
"towardsCamera" => AutoOrient::TowardsCamera,
"towardsPointOfInterest" => AutoOrient::TowardsPointOfInterest,
m => return Err(bad("layer.autoOrient", format!("mode: off|alongPath|towardsCamera|towardsPointOfInterest, not `{m}`"))),
};
s.edit("Auto-Orient", None, |proj, _| {
for l in proj.comp_mut(cid).ok_or(EngineError::NoComp)?.layers.iter_mut().filter(|l| ids.contains(&l.id)) {
l.auto_orient = mode;
}
Ok(())
})?;
Ok(Value::Null)
}
// ---------------------------------------------------------------- masks
/// Masks the command applies to: `mask` (index / uid / name) on `layer`, else selected masks,
@@ -785,15 +765,6 @@ pub fn specs() -> Vec<CommandSpec> {
has_layers,
center_anchor
),
cmd!(
"layer.autoOrient",
"Auto-Orient...",
["Layer", "Transform"],
Some("Cmd+Alt+O"),
"{layers?, mode: off|alongPath|towardsCamera|towardsPointOfInterest}",
has_layers,
auto_orient
),
cmd!(
"layer.mask.shape",
"Mask Shape...",