Working on a custom scripted module in 3D Slicer for pre-post surgical maxillofacial and orthognathic studies. The goal is to automate the export workflow for clinical web visualization: (1) combine and center multiple quantification models (e.g. airway and mandible distance maps) into a single .glb file with baked vertex colors, and (2) export clean, transparent individual color-legend images for each model's active scalars. The core logic works (VTK coordinate transforms, scalar extraction, vertex color baking, mesh combination into GLB with trimesh), but capturing the color legends by isolating models and grabbing/cropping the 3D view widget produces PNGs that cut off parts of the model, miss the legend, or have rendering artifacts. Looking for a fix to the legend-export approach (or a native Slicer API to export a model's active color legend as a clean transparent PNG) and guidance on structuring this as a GUI module with model selection, opacity controls, and batch export.