Copy First 3D Instance¶
Copy First 3D Instance¶
1# This example copies first 3D instance from each 3D layer in the active drawing.
2
3for layer in impact.active_drawing.layers:
4 if layer.layer_type == "THREE_D":
5 scene = layer.scene
6
7 if not scene.isNone():
8 for instance in scene.instances:
9
10 # Makes a copy of the instance
11 instance.copy()
12
13 break
14
15 else:
16 impact.gui.output_toolbox.add("No 3d scene")
17