Generation

generate functionThu, 04 Apr 2024

make a addon for blender to spawn a set of random cubes in 1m by 1m area

import bpy import random import math import bmesh def spawn_cubes(context): bpy.ops.mesh.primitive_cube_add(radius=1, view_align=False, enter_editmode=False, location=(0, 0, 0), layers=(True, False, False, False, False, False, False, False, False,

Want to kickstart your project?Use the new AI Studio to create your code