Untitled
unknown
plain_text
2 years ago
1.6 kB
5
Indexable
import bpy # Clear existing mesh objects bpy.ops.object.select_all(action='DESELECT') bpy.ops.object.select_by_type(type='MESH') bpy.ops.object.delete() # Create a stage stage_length = 12.0 # in meters stage_width = 10.0 # in meters stage_height = 1.0 # in meters bpy.ops.mesh.primitive_cube_add(size=1) stage = bpy.context.active_object stage.scale = (stage_width / 2, stage_length / 2, stage_height / 2) stage.location = (0, 0, stage_height / 2) # Create a wide screen screen_width = 10.0 # in meters screen_height = 5.0 # in meters bpy.ops.mesh.primitive_plane_add(size=1) screen = bpy.context.active_object screen.scale = (screen_width / 2, screen_height / 2, 1) screen.location = (0, stage_length / 2 + 0.5, screen_height / 2) # Create truss with lights (simplified as a line of cubes) truss_length = 12.0 # in meters num_lights = 8 light_size = 0.5 # in meters for i in range(num_lights): bpy.ops.mesh.primitive_cube_add(size=light_size) light = bpy.context.active_object light.location = (0, -stage_length / 2 + (i * (truss_length / num_lights)), 4) # Height of 4 meters # Sound system (simplified as two large boxes on either side of the stage) sound_system_width = 1.0 # in meters sound_system_height = 2.0 # in meters sound_system_depth = 1.0 # in meters for i in [-1, 1]: bpy.ops.mesh.primitive_cube_add(size=1) speaker = bpy.context.active_object speaker.scale = (sound_system_width / 2, sound_system_depth / 2, sound_system_height / 2) speaker.location = (i * (stage_width / 2 + 1), 0, sound_system_height / 2)
Editor is loading...
Leave a Comment