AI turns documents or topics into real, native PowerPoint decks—with native shapes, transitions and animations, data-backed charts and tables on demand, audio narration from speaker notes, and support for your own .pptx templates. · by Hugo He
fix(scripts): static-role chrome animates when the sidecar names it; only structural layers stay fixed
hugohe3c5f1b337f27c
diff --git a/skills/ppt-master/scripts/svg_to_pptx/animation_config.py b/skills/ppt-master/scripts/svg_to_pptx/animation_config.pyindex 6498938a..457cbe1b 100644--- a/skills/ppt-master/scripts/svg_to_pptx/animation_config.py+++ b/skills/ppt-master/scripts/svg_to_pptx/animation_config.py@@ -224,7 +224,11 @@ def scan_svg_targets(svg_path: Path) -> tuple[list[GroupTarget], list[str]]:has_explicit_semanticsand is_static_page_frame(role, placeholder))- structurally_static = has_structural_layer or semantic_static+ # A static role/placeholder marker makes a group chrome (kept out of+ # scaffold, listing, and automatic animation) but not structural: an+ # explicit sidecar entry may still animate or Morph-pair it. Only a+ # ``data-pptx-layer`` group is structural.+ structurally_static = has_structural_layerif has_structural_layer:chrome = Trueelif has_explicit_semantics:@@ -1701,7 +1705,7 @@ def build_group_listing(project_path: Path) -> tuple[list[str], list[str]]:if chrome_ids:# Name what was dropped so an id like ``takeaway-rule`` is seen# as chrome-by-token rather than silently missing.- line += f' [chrome, not animatable: {", ".join(chrome_ids)}]'+ line += f' [chrome, animates only when named: {", ".join(chrome_ids)}]'lines.append(line)return lines, anonymousdiff --git a/skills/ppt-master/scripts/svg_to_pptx/drawingml/converter.py b/skills/ppt-master/scripts/svg_to_pptx/drawingml/converter.pyindex 56699843..c49342de 100644--- a/skills/ppt-master/scripts/svg_to_pptx/drawingml/converter.py+++ b/skills/ppt-master/scripts/svg_to_pptx/drawingml/converter.py@@ -1173,16 +1173,14 @@ def convert_g(elem: ET.Element, ctx: ConvertContext) -> ShapeResult | None:if has_explicit_semanticselse is_chrome_id(elem_id))+ # Chrome — by name or by static role/placeholder marker — stays out of+ # automatic animation, but an explicit sidecar entry animates it: a+ # background field can pan, a cover band can slide. Only a structural+ # layer (master/layout) is beyond reach, because it is not on the slide.should_animate_group = (ctx.depth == 0and elem_id- and (- not is_chrome- or (- not has_explicit_semantics- and elem_id in ctx.animation_group_overrides- )- )+ and (not is_chrome or elem_id in ctx.animation_group_overrides)and elem.get('data-pptx-layer') is None)visual_children = [@@ -1784,6 +1782,14 @@ def convert_element(elem: ET.Element, ctx: ConvertContext) -> ShapeResult | Noneif adjustments:event['adjustments'] = dict(sorted(adjustments.items()))event.update(metadata)+ if (+ ctx.depth == 0+ and elem_id+ and elem_id in ctx.animation_group_overrides+ ):+ # Chrome promotion into layouts/masters must leave an explicitly+ # animated group on its slide.+ event['animation_override'] = Truectx.trace_events.append(event)if elem.get('data-pptx-part') == 'geometry-detail':@@ -2345,16 +2351,11 @@ def convert_svg_to_slide_shapes(role = child.get('data-pptx-role')placeholder = child.get('data-pptx-placeholder')has_explicit_semantics = role is not None or placeholder is not None- structurally_static = (- child.get('data-pptx-layer') is not None- or (- has_explicit_semantics- and is_static_page_frame(role, placeholder)- )- )+ structurally_static = child.get('data-pptx-layer') is not Nonelegacy_chrome = (- not has_explicit_semantics- and is_chrome_id(elem_id)+ is_static_page_frame(role, placeholder)+ if has_explicit_semantics+ else is_chrome_id(elem_id))explicit_legacy_override = (elem_id is not Nonediff --git a/skills/ppt-master/scripts/svg_to_pptx/pptx_package/builder.py b/skills/ppt-master/scripts/svg_to_pptx/pptx_package/builder.pyindex ede8abfb..7080ec06 100644--- a/skills/ppt-master/scripts/svg_to_pptx/pptx_package/builder.py+++ b/skills/ppt-master/scripts/svg_to_pptx/pptx_package/builder.py@@ -524,6 +524,9 @@ def _trace_chrome_shape_ids(for event in trace.get("events", []):if event.get("decision") != "native":continue+ if event.get("animation_override"):+ # Explicitly animated chrome stays slide-local.+ continuesemantic_role = event.get("data-pptx-role")placeholder = event.get("data-pptx-placeholder")has_explicit_semantics = (