Advertisement
Guest User

Untitled

a guest
Jun 17th, 2019
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. import bpy
  2. from random import randint
  3.  
  4. # Generate 50 cubes in random locations for i in range(50):
  5. bpy.ops.mesh.primitive_cube_add(location = [ randint( -10, 10 ) for axis in 'xyz' ])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement