g = {} SCR = r"C:\Users\User\AppData\Local\Temp\claude\D--Rhino-MCP-rhino-mcp-main\f46b47bc-9105-4079-9b62-fcbee31b26ae\scratchpad" exec(open(SCR + r"\cap.py", encoding="utf-8").read(), g) import scriptcontext as sc import io, json want = ["P1-R-C7-x-1400_1", "P1-R-C10-L07", "P1-R-C1-y+1500"] bbs = {} for o in sc.doc.Objects: if o.Attributes.Name in want: bb = o.Geometry.GetBoundingBox(True) bbs[o.Attributes.Name] = [bb.Min.X, bb.Min.Y, bb.Min.Z, bb.Max.X, bb.Max.Y, bb.Max.Z] CP = ["P1::코핑"] FB = [-5300, -1700, 67700, 5300, 1700, 71400] shots = [] shots.append({"file": "S1.png", "layers": ["P1::철근::코핑::C1"], "names": ["y+1500"], "solids": CP, "view": "Front", "box": FB}) shots.append({"file": "S1b.png", "layers": ["P1::철근::코핑::C1"], "names": ["y+1000"], "solids": CP, "view": "Front", "box": FB}) shots.append({"file": "S2.png", "layers": ["P1::철근::코핑::C5"], "names": ["y+1000"], "solids": CP, "view": "Front", "box": FB}) shots.append({"file": "S3.png", "layers": ["P1::철근::코핑::C7"], "names": ["x-1400_1"], "solids": CP, "view": "Right", "box": [-1800, -1700, 67700, 1800, 1700, 71400]}) shots.append({"file": "S4.png", "layers": ["P1::철근::코핑::C10"], "solids": CP, "view": "Top", "box": [-5300, -1800, 67700, 5300, 1800, 71400]}) shots.append({"file": "S5.png", "layers": ["P1::철근::기초::B8"], "solids": ["P1::기초"], "view": "Top", "box": [-3900, -3900, 42700, 3900, 3900, 45300]}) shots.append({"file": "S6.png", "layers": ["P1::철근::기둥::P1"], "solids": ["P1::기둥"], "view": "Front", "box": [-1500, -1500, 42700, 1500, 1500, 67900]}) b = bbs["P1-R-C7-x-1400_1"] shots.append({"file": "S7.png", "layers": ["P1::철근::코핑::C7"], "names": ["x-1400_1"], "solids": CP, "view": "Right", "box": [b[0] - 50, b[4] - 450, b[5] - 450, b[3] + 50, b[4] + 50, b[5] + 50]}) shots.append({"file": "S8.png", "layers": ["P1::철근::기둥::P3", "P1::철근::기둥::P4"], "solids": ["P1::기둥"], "view": "Top", "box": [-1500, -1500, 45200, 1500, 1500, 49000]}) for s in shots: s["mode"] = "Ghosted" out = [] for s in shots: try: out.append(g["run"](s)) except Exception as e: out.append("ERR " + s["file"] + " " + str(e)) g["restore"]() io.open(SCR + r"\sw_shots_log.txt", "w", encoding="utf-8").write("\n".join(out) + "\n" + json.dumps(bbs))