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:
Brandon Thomas
2026-10-03 12:09:41 -04:00
co-authored by Claude Opus 5.5
parent 95766755f3
commit fecf054e5f
24 changed files with 1138 additions and 34 deletions
+12
View File
@@ -307,6 +307,11 @@ pub enum Seg {
/// Parse `transform/position`, `effects/#1/blurriness`, `effects/@57/blurriness`,
/// `contents/rect#2/size`.
/// `@57` (a whole path that is one uid).
fn bare_uid(path: &str) -> Option<Uid> {
path.trim().strip_prefix('@')?.parse().ok()
}
pub fn parse_path(s: &str) -> Vec<Seg> {
s.split(['/', '.'])
.filter(|x| !x.is_empty())
@@ -365,10 +370,17 @@ impl PropGroup {
let i = g.child_index(last)?;
g.children.get_mut(i)
}
/// A property by path; a bare `@uid` finds the property anywhere below this group.
pub fn prop(&self, path: &str) -> Option<&Property> {
if let Some(u) = bare_uid(path) {
return self.find(u);
}
self.node(path)?.as_prop()
}
pub fn prop_mut(&mut self, path: &str) -> Option<&mut Property> {
if let Some(u) = bare_uid(path) {
return self.find_mut(u);
}
match self.node_mut(path)? {
Node::Prop(p) => Some(p),
_ => None,