blenderでビル群を作成するコード
import bpyimport randomdef create_building(location, width, depth, height): bpy.ops.mesh.primitive_cube_add(size=1, enter_editmode=False, align='WORLD', location=location) building = bpy.context.active_object building.scale = (widt