Skip to content

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

Merge main into M9.6 text animation branch

Brandon Thomasf5f0b7ef52e3
diff --cc crates/engine/src/commands/mod.rs
index d136cbcfd,2b301dc93..fb74f7a0b
--- a/crates/engine/src/commands/mod.rs
+++ b/crates/engine/src/commands/mod.rs
@@@ -14,7 -14,7 +14,8 @@@ mod mask
mod prop;
mod query;
mod render_queue;
+ mod styles;
+mod text_anim;
mod three_d;
mod time;
@@@ -75,8 -75,8 +76,9 @@@ pub fn command_specs() -> &'static [Com
v.extend(edit::specs());
v.extend(comp::specs());
v.extend(layer::specs());
+ v.extend(styles::specs());
v.extend(three_d::specs());
+ v.extend(text_anim::specs());
v.extend(layer_time::specs());
v.extend(prop::specs());
v.extend(anim::specs());
diff --cc crates/engine/src/lib.rs
index 73d6faf6b,03d73a4c8..e9fc46d11
--- a/crates/engine/src/lib.rs
+++ b/crates/engine/src/lib.rs
@@@ -419,8 -421,8 +421,10 @@@ mod tests
#[cfg(test)]
mod tests_3d;
#[cfg(test)]
+ mod tests_styles;
+ #[cfg(test)]
+mod tests_text;
+#[cfg(test)]
mod tests_timeline;
/// Font families available to text layers (bundled + scanned system fonts).
diff --cc crates/ui-egui/src/panels/timeline.rs
index 7c0b0f1fa,db64681d5..2a844faa5
--- a/crates/ui-egui/src/panels/timeline.rs
+++ b/crates/ui-egui/src/panels/timeline.rs
@@@ -942,9 -950,18 +962,19 @@@ pub fn show(app: &mut EffectcraftApp, u
if widgets::icon_toggle(ui, fr_, Icon::Fx, *en, &t, egui::Id::new(("gfx", uid)), None).clicked() {
actions.push(("effect.toggle".into(), json!({"layer": layer.id.0, "effect": uid})));
}
+ app.auto.add(&format!("timeline.group.{uid}.fx"), fr_, name);
+ }
+ if let Some(en) = eye {
+ // Layer style eye switch in the A/V column, like AE.
+ let er = Rect::from_center_size(pos2(cw.av + 10.0, cy), vec2(17.0, 17.0));
+ lp.rect_stroke(er.shrink(1.5), 2.0, Stroke::new(1.0, t.separator), StrokeKind::Inside);
+ if widgets::icon_toggle(ui, er, Icon::Eye, *en, &t, egui::Id::new(("geye", uid)), None).clicked() {
+ actions.push(("layer.style.toggle".into(), json!({"layer": layer.id.0, "style": uid})));
+ }
+ app.auto.add(&format!("timeline.group.{uid}.eye"), er, name);
}
lp.text(pos2(indent + 10.0, cy), Align2::LEFT_CENTER, name, Tokens::ui(12.0), t.text);
+ text_anim_popups(app, ui, &lp, layer, *uid, cw.switches, cy, &mut actions);
// Mask mode + inverted inline.
if let Some(g) = layer.props.find_group(*uid)
&& let GroupKind::Mask { mode, inverted, .. } = g.kind