3MF group
tools/threemf_group.py turns a 3MF with several objects into one object with parts, for multi-colour prints such as label inlays in a housing.
python3 tools/threemf_group.py in.3mf out.3mf [name]
- Why: many CAD 3MF exports write one object per body, and a slicer loads separate objects as separate objects. A shell and its label glyphs must be one object, so that each part can get its own filament.
- What it does: it adds a parent object (named from the argument, else the first object's name) whose
<components>reference every build item. Build transforms move onto the components, and only the parent is built. It writes core 3MF only, with no slicer-specific metadata; Orca, Bambu and Prusa load the result as one object with parts. - In place: using the same path for in and out is fine; the whole file is read first.
