diff_blueprint_components
Compare two Blueprint component trees, or a Blueprint against a saved snapshot, to report added, removed, and changed components, including parent, socket, source, and transform changes.
Instructions
Compare the COMPONENT trees of two Blueprints (or of one Blueprint against a components[] array captured earlier from get_blueprint_scs_tree) and report which components were added, removed or changed, where "changed" means the class, attach_parent, attach_socket, source or relative transform (0.01 tolerance) differ. It reuses get_blueprint_scs_tree's full enumeration, so native + own SCS + inherited components are all in scope, most-derived-wins. Use it for "did a reparent or a merge lose a component?" -- feeding a pre-change scs_tree as components_b makes it a before/after check without a second asset. removed = in A only, added = in B only. Read-only. diff_blueprints covers components AND graphs AND variables; get_blueprint_component_overrides goes deeper into ONE component's per-property provenance.
Returns: { blueprint_a, a_path, blueprint_b, b_path, side_b_source, added:[record], removed:[record], changed:[{name, class, changes:{class?:{a,b}, attach_parent?:{a,b}, attach_socket?:{a,b}, source?:{a,b}, transform?:{a,b}}}], unchanged_count, counts_a:{native,scs,inherited}, counts_b:{...}, truncated, total_differences }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| blueprint_a | Yes | First Blueprint asset path or short name (the "before" / baseline side). | |
| blueprint_b | No | Second Blueprint (the "after" side). Omit if passing components_b. | |
| max_results | No | Cap on components enumerated per live side, 1..10000 (default 2000). | |
| components_b | No | Alternative to blueprint_b: a prior get_blueprint_scs_tree components array (snapshot). A snapshot without transforms reads every transform as changed. | |
| include_native | No | Include native/CDO components on the live side(s) (default true). | |
| include_inherited | No | Include components inherited from ancestor Blueprints (default true). |