Timeline: Puppet pin keyframes show in the Timeline (#273)
Moving a puppet pin keys its Position, but the Timeline didn't show those keys where people look for them. U revealed every pin's Position as one more flat "Position" row under the layer, indistinguishable from the layer's own Position and from each other, and the reveal was a snapshot: a pin placed or moved after U (or with the layer twirled open and Effects closed) got keys that no row showed. As in After Effects, revealed properties inside an effect now show under the effect and its groups (Puppet > Mesh 1 > Deform > Puppet Pin 1 > Position), twirled open by the reveal and closable like any group; Transform and mask properties stay as they were. Placing, moving or recording a pin in the viewer keeps its Position in view: on a twirled-open layer its groups open, and a U reveal takes it in. A collapsed layer stays collapsed. The keys select, move and delete like any others. Test: puppet_pin_keys_show_under_their_pins_in_the_timeline, placing_a_pin_opens_its_groups_on_a_twirled_open_layer (ui_viewer). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
fbc4080f53
commit
285297ed93
@@ -82,6 +82,16 @@ pub fn overlay(app: &EffectcraftApp, ctx: &egui::Context, cid: ItemId, layer: &L
|
||||
Some(overlay)
|
||||
}
|
||||
|
||||
/// Keep a pin's keyframed Position in view in the Timeline after placing, moving or recording the
|
||||
/// pin in the viewer (#273).
|
||||
pub fn reveal_pin(app: &mut EffectcraftApp, layer: LayerId, pin: u64) {
|
||||
let comp = app.session.active_comp();
|
||||
let pos = comp.and_then(|c| c.layer(layer)?.props.find_group(pin)?.get("position")).filter(|p| p.is_animated()).map(|p| p.uid);
|
||||
if let Some(pos) = pos {
|
||||
super::timeline::keep_in_view(app, layer, pos);
|
||||
}
|
||||
}
|
||||
|
||||
/// Where a pin sits now (layer space): its Position, or (Bend / Starch / Overlap pins) its rest
|
||||
/// point carried along by the deformation.
|
||||
pub fn pin_position(mesh: &Mesh, def: &[[f64; 2]], p: &Pin) -> [f64; 2] {
|
||||
|
||||
Reference in New Issue
Block a user