Skip to content

EffectCraft: An open-source motion graphics and compositing tool written by scratch in pure Rust

Merge main into M13.6 panels and content tools

Brandon Thomasa5be68499e34
diff --cc crates/engine/src/commands/mod.rs
index 12324cf45,4112cf6cc..1b2968a8c
--- a/crates/engine/src/commands/mod.rs
+++ b/crates/engine/src/commands/mod.rs
@@@ -43,8 -38,8 +43,9 @@@ mod proxy
pub mod puppet;
mod query;
mod render_queue;
+ pub(crate) mod rig3d;
pub mod roto_cmds;
+mod scene_detect;
mod settings;
mod shape_stroke;
mod stubs;
diff --cc crates/engine/src/commands/stubs.rs
index 440464c05,2751fbc3e..eae43224f
--- a/crates/engine/src/commands/stubs.rs
+++ b/crates/engine/src/commands/stubs.rs
@@@ -17,19 -17,14 +17,8 @@@ macro_rules! stub
pub fn specs() -> Vec<CommandSpec> {
vec![
- // Layer ▸ New (3D / content-aware fill).
- stub!("layer.newContentAwareFill", "Content-Aware Fill Layer...", ["Layer", "New"], "{}"),
// Mask options not in the mask model yet; pen / vertex editing (timeline milestone).
- // Time (timeline milestone).
- stub!("layer.alignVideoToData", "Align Video to Data", ["Layer", "Time"], "{}"),
- stub!("layer.autoTrace", "Auto-trace...", ["Layer"], "{}"),
- stub!("layer.sceneEditDetection", "Scene Edit Detection...", ["Layer"], "{}"),
// Cameras / lights / materials / 3D views (3D milestone).
- stub!("camera.stereoRig", "Create Stereo 3D Rig", ["Layer", "Camera"], "{}"),
- stub!("camera.orbitNull", "Create Orbit Null", ["Layer", "Camera"], "{}"),
- stub!("camera.fromModel", "Create Cameras from 3D Model", ["Layer", "Camera"], "{}"),
- stub!("light.fromModel", "Create Lights from 3D Model", ["Layer", "Light"], "{}"),
- stub!("light.controlWithCamera", "Control Light with Camera", ["Layer", "Light"], "{}"),
- stub!("light.environmentBackground", "Create Environment Light Background Layer", ["Layer", "Light"], "{}"),
- stub!("view.3d.default", "Default", ["View", "Switch 3D View"], "{}"),
- stub!("view.splitLockedViewer", "Split with New Locked Viewer", ["View"], "{}"),
- // Color management.
- stub!("view.displayColorManagement", "Use Display Color Management", ["View"], "{}"),
- stub!("view.simulateOutput", "Simulate Output", [], "{profile}"),
// Keyframes / text / tracking.
stub!("keys.audioToKeyframes", "Convert Audio to Keyframes", ["Animation", "Keyframe Assistant"], "{}"),
stub!("keys.rpfCameraImport", "RPF Camera Import", ["Animation", "Keyframe Assistant"], "{}"),
diff --cc crates/engine/src/lib.rs
index c8efb428c,9333329a1..ad5b43cc9
--- a/crates/engine/src/lib.rs
+++ b/crates/engine/src/lib.rs
@@@ -219,15 -216,9 +219,18 @@@ pub struct EditorState
/// Essential Graphics can expose).
#[serde(default)]
pub essential_solo: bool,
+ /// The Footage panel: the footage shown, its time and In/Out marks (source time).
+ #[serde(default)]
+ pub footage_panel: Option<commands::footage_panel::FootageView>,
+ /// Media Browser: the folder shown and the favourites.
+ #[serde(default)]
+ pub media_browser: media_browser::BrowserState,
+ /// Content-Aware Fill panel settings.
+ #[serde(default)]
+ pub content_fill: commands::content_fill::FillSettings,
+ /// View ▸ Split with New Locked Viewer: the second viewer's comp and 3D view.
+ #[serde(default)]
+ pub locked_viewer: Option<commands::viewer_cmds::LockedViewer>,
}
fn one_view() -> u8 {
diff --cc crates/project/src/lib.rs
index 824bd929d,470c4edcd..e0cdb4cb7
--- a/crates/project/src/lib.rs
+++ b/crates/project/src/lib.rs
@@@ -118,9 -174,16 +174,19 @@@ pub struct ProjectSettings
/// when a GPU adapter exists) or Mercury Software Only (`false`, the CPU compositor).
#[serde(default = "yes")]
pub gpu_acceleration: bool,
+ /// The project's comment (Metadata panel).
+ #[serde(default, skip_serializing_if = "String::is_empty")]
+ pub comment: String,
+ /// Color Engine (Adobe-style built-in or OCIO with ACES working spaces).
+ #[serde(default)]
+ pub color_engine: ColorEngine,
+ /// HDR handling for standard-dynamic-range output (display and renders).
+ #[serde(default)]
+ pub hdr: HdrMode,
+ /// The space the top-level comp is output in (renders and the viewer's source). `None` =
+ /// sRGB; Rec. 2100 PQ / HLG give HDR output.
+ #[serde(default)]
+ pub output_space: Option<ColorSpace>,
}
impl Default for ProjectSettings {
@@@ -134,7 -197,9 +200,10 @@@
frame_start: 0,
audio_sample_rate: 48_000,
gpu_acceleration: true,
+ comment: String::new(),
+ color_engine: ColorEngine::Adobe,
+ hdr: HdrMode::Clip,
+ output_space: None,
}
}
}
diff --cc crates/ui-egui/src/panels/mod.rs
index 31daf811b,d0fb3a3e8..3fd51d7b5
--- a/crates/ui-egui/src/panels/mod.rs
+++ b/crates/ui-egui/src/panels/mod.rs
@@@ -62,18 -57,12 +62,14 @@@ pub enum DragPayload
Effect(String),
/// A property dragged from the timeline (to the Essential Graphics panel).
Property { layer: u64, prop: u64 },
+ /// Files from the Media Browser (import; into the timeline: import and add).
+ Files(Vec<String>),
}
- /// The current time formatted per project settings (timecode with `;` for drop-frame, or frames).
+ /// The current time formatted per project settings (timecode with `;` for drop-frame, frames
+ /// or Feet + Frames).
pub fn timecode(session: &Session, comp: &Comp, t: Tick) -> String {
- let fr = comp.frame_rate;
- match session.project.settings.time_display {
- TimeDisplayStyle::Frames => format!("{:05}", fr.frame_at(t) + session.project.settings.frame_start),
- // AE's display: `0:00:02:15` (non-drop-frame counting, as AE shows new comps).
- TimeDisplayStyle::Timecode => effectcraft_engine::time::format_timecode_ae(fr.frame_at(t + comp.display_start), fr, false),
- }
+ effectcraft_engine::commands::time::display_time(session, comp, t)
}
pub fn show(app: &mut EffectcraftApp, ui: &mut egui::Ui, p: PanelKind, rect: Rect) {
diff --cc docs/parity.md
index a38ed8400,4437becec..9c2b2d47c
--- a/docs/parity.md
+++ b/docs/parity.md
@@@ -20,12 -20,11 +20,9 @@@ Animation 94%, Masks 94%, Preview 94%,
Tracking 88%, Effects 85%, Web 65%.
What is left, in priority order: the web app's depth (threads, storage, audio, non-blocking
- renders); stroke taper/wave and multi-segment dashes; variable mask feather points; camera iris/bokeh and focus-link commands; GPU
- rendering of 3D runs and adjustment layers; Render Queue field render, crop/resize and templates;
- approximated effects (Subspace Warp, Key Cleaner) and Liquify's viewer brush; Advanced 3D motion blur
- and blend modes; a few viewer and colour-management menu items; OpenType features and variable
- font axes; AI/EPS/PDF import; more codecs; 59 preferences not yet wired; ScriptUI; face
- tracking; and the "better than After Effects" items (a plug-in API, branching history, GPU particles).
+ renders); stroke taper/wave and multi-segment dashes; variable mask feather points; camera iris/bokeh and focus-link commands; Render Queue field render, crop/resize and templates;
+ approximated effects (Subspace Warp, Key Cleaner) and Liquify's viewer brush; OpenType features and variable
-font axes; AI/EPS/PDF import; more codecs; 59 preferences not yet wired; ScriptUI;
-Lumetri Scopes, Footage, Media Browser and Metadata panels; Content-Aware Fill; face tracking; and
-the "better than After Effects" items (a plug-in API, branching history; GPU particles landed in M12.7).
++font axes; AI/EPS/PDF import; more codecs; 59 preferences not yet wired; ScriptUI; face tracking; and the "better than After Effects" items (a plug-in API, branching history; GPU particles landed in M12.7).
The sections below are the original audit (morning of 2 October, ≈ 64%) and its updates, kept for
history.