import bpy, json, os HERE = os.path.dirname(os.path.abspath(__file__)) out = {} for me in bpy.data.meshes: if not me.users or me.get("parts") is None or not me.name.startswith("DoorArm |"): continue ids = list(me["parts"]); seats = list(me.get("seats", [])); dec = list(me.get("decals", [])) out[me.name] = [(ids[i], seats[i] if i < len(seats) else "", bool(dec[i]) if i < len(dec) else False) for i in range(len(ids))] json.dump(out, open(os.path.join(HERE, "crit1_seats.json"), "w"), indent=0) print("[crit1] seats", flush=True)