M13.15: qa scenarios 1-4 (kinetic type, shape logo, compositing, tracking) and fixes
engine.batch + MCP batch tool; layer.newText/newShape name; prop.get evaluated expression value; keys.select by path with errors; @uid paths; plain-JSON gradients; addShapeItem/effect.apply return paths; unknown layers error; conform rescales footage duration; render log name for [###]; render_frame transparent; clearer mask errors; truncated groups in flat get_layer. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
95766755f3
commit
fecf054e5f
@@ -103,7 +103,17 @@ fn apply(s: &mut Session, p: &Value) -> Result<Value> {
|
||||
st.last_effect = Some(spec.id.to_string());
|
||||
Ok(out)
|
||||
})?;
|
||||
Ok(json!({"effects": uids}))
|
||||
// Each instance's property path prefix (`effects/#2`), ready for prop.set paths.
|
||||
let comp = s.project.comp(cid).ok_or(EngineError::NoComp)?;
|
||||
let paths: Vec<Value> = sizes
|
||||
.iter()
|
||||
.zip(&uids)
|
||||
.map(|((lid, _), uid)| {
|
||||
let n = comp.layer(*lid).and_then(|l| l.props.group("effects")).and_then(|fx| fx.children.iter().position(|c| c.uid() == *uid));
|
||||
json!(n.map(|n| format!("effects/#{}", n + 1)))
|
||||
})
|
||||
.collect();
|
||||
Ok(json!({"effects": uids, "paths": paths, "effect": spec.id}))
|
||||
}
|
||||
|
||||
fn find_fx(s: &Session, p: &Value, cmd: &str) -> Result<(effectcraft_project::ItemId, effectcraft_project::LayerId, Uid)> {
|
||||
|
||||
Reference in New Issue
Block a user