aboutsummaryrefslogtreecommitdiff
path: root/makeplate.py
diff options
context:
space:
mode:
Diffstat (limited to 'makeplate.py')
-rw-r--r--makeplate.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/makeplate.py b/makeplate.py
index 4a8c655..21ba24b 100644
--- a/makeplate.py
+++ b/makeplate.py
@@ -176,6 +176,22 @@ bpy.ops.object.select_all(action='SELECT')
bpy.data.objects['BasePlate'].select_set(state=False)
bpy.ops.object.delete()
+bpy.ops.mesh.primitive_cylinder_add(vertices=64, radius=59, depth=5.0, location=(0,0, 1.25))
+bigHole = bpy.context.selected_objects[0]
+bigHole.name="BigHole"
+
+bpy.ops.mesh.primitive_cylinder_add(vertices=64, radius=61, depth=3.0, location=(0,0, 1.5))
+nextLayer = bpy.context.selected_objects[0]
+nextLayer.name="NextLayer"
+
+bpy.ops.object.modifier_add(type='BOOLEAN')
+bpy.context.object.modifiers["Boolean"].object = bigHole
+bpy.context.object.modifiers["Boolean"].operation = 'DIFFERENCE'
+bpy.ops.object.modifier_apply(apply_as='DATA', modifier="Boolean")
+
+bpy.ops.object.select_all(action='DESELECT')
+bpy.ops.object.select_pattern(pattern = 'BigHole')
+bpy.ops.object.delete()
#newHoles8 = bpy.context.selected_objects[0]
#newHoles8.name = ""