diff options
| author | feurig <don@suspectdevices.com> | 2022-01-15 23:45:44 -0800 |
|---|---|---|
| committer | feurig <don@suspectdevices.com> | 2022-01-15 23:45:44 -0800 |
| commit | 36398ec817c79c45f2a6232204594f556a267836 (patch) | |
| tree | 0171a6da6c4712b653160a073b80dfe8b1c2be6f | |
| parent | a7cfdf4cb9dd17872eed9370a4be3c9153203446 (diff) | |
Weirdness.
| -rw-r--r-- | nextLayer.py | 22 |
1 files changed, 9 insertions, 13 deletions
diff --git a/nextLayer.py b/nextLayer.py index 78039c2..c0e25b6 100644 --- a/nextLayer.py +++ b/nextLayer.py @@ -1,11 +1,6 @@ import bpy import math import mathutils -StandLocationRadius=56.0 -MountRadius=2.5 -StandMountWallThickness=1 -StandRadius=MountRadius+StandMountWallThickness -StandHoleRadius=MountRadius+StandMountWallThickness bpy.ops.mesh.primitive_cylinder_add(vertices=64, radius=59, depth=5.0, location=(0,0, 1.25)) bigHole = bpy.context.selected_objects[0] @@ -24,10 +19,11 @@ bpy.ops.object.select_all(action='DESELECT') bpy.data.objects['BigHole'].select_set(state=True) bpy.ops.object.delete() -bpy.ops.mesh.primitive_cylinder_add(vertices=32, radius=StandHoleRadius, depth=5.0, location=(0,(StandLocationRadius), 1.25)) +bpy.ops.mesh.primitive_cylinder_add(vertices=32, radius=1.5, depth=5.0, location=(0,56, 1.25)) screwHole = bpy.context.selected_objects[0] screwHole.name="ScrewHole" -bpy.ops.mesh.primitive_cylinder_add(vertices=32, radius=StandRadius, depth=3.0, location=(0,(StandLocationRadius), 1.5)) + +bpy.ops.mesh.primitive_cylinder_add(vertices=32, radius=4.0, depth=3.0, location=(0,56, 1.5)) stand = bpy.context.selected_objects[0] stand.name="Stand" @@ -58,11 +54,11 @@ bpy.data.objects['Stand'].select_set(state=True) nextLayer = bpy.context.selected_objects[0] nextLayer.name="NextLayer" -bpy.ops.mesh.primitive_cylinder_add(vertices=32, radius=StandHoleRadius, depth=5.0, location=(0,-(StandLocationRadius), 1.25)) +bpy.ops.mesh.primitive_cylinder_add(vertices=32, radius=1.5, depth=5.0, location=(0,-55.0, 1.25)) screwHole = bpy.context.selected_objects[0] screwHole.name="ScrewHole" -bpy.ops.mesh.primitive_cylinder_add(vertices=32, radius=StandRadius, depth=3.0, location=(0,-(StandLocationRadius), 1.5)) +bpy.ops.mesh.primitive_cylinder_add(vertices=32, radius=4.0, depth=3.0, location=(0,-55.0, 1.5)) stand = bpy.context.selected_objects[0] stand.name="Stand" @@ -94,11 +90,11 @@ nextLayer = bpy.context.selected_objects[0] nextLayer.name="NextLayer" -bpy.ops.mesh.primitive_cylinder_add(vertices=32, radius=StandHoleRadius, depth=5.0, location=((StandLocationRadius), 0.0, 1.25)) +bpy.ops.mesh.primitive_cylinder_add(vertices=32, radius=1.5, depth=5.0, location=(55.0, 0.0, 1.25)) screwHole = bpy.context.selected_objects[0] screwHole.name="ScrewHole" -bpy.ops.mesh.primitive_cylinder_add(vertices=32, radius=StandRadius, depth=3.0, location=((StandLocationRadius), 0.0, 1.5)) +bpy.ops.mesh.primitive_cylinder_add(vertices=32, radius=4.0, depth=3.0, location=(55.0, 0.0, 1.5)) stand = bpy.context.selected_objects[0] stand.name="Stand" @@ -129,11 +125,11 @@ bpy.data.objects['Stand'].select_set(state=True) nextLayer = bpy.context.selected_objects[0] nextLayer.name="NextLayer" # -bpy.ops.mesh.primitive_cylinder_add(vertices=32, radius=StandHoleRadius, depth=5.0, location=(-(StandLocationRadius), 0.0, 1.25)) +bpy.ops.mesh.primitive_cylinder_add(vertices=32, radius=1.5, depth=5.0, location=(-55.0, 0.0, 1.25)) screwHole = bpy.context.selected_objects[0] screwHole.name="ScrewHole" -bpy.ops.mesh.primitive_cylinder_add(vertices=32, radius=StandRadius, depth=3.0, location=(-(StandLocationRadius), 0.0, 1.5)) +bpy.ops.mesh.primitive_cylinder_add(vertices=32, radius=4.0, depth=3.0, location=(-55.0, 0.0, 1.5)) lastStand = bpy.context.selected_objects[0] lastStand.name="LastStand" |
