Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import bpy
- from random import randint
- # Generate 50 cubes in random locations for i in range(50):
- bpy.ops.mesh.primitive_cube_add(location = [ randint( -10, 10 ) for axis in 'xyz' ])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement