Guest User

Untitled

a guest
May 24th, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. import bpy
  2. #Change gab
  3. gab = 1
  4. objs = bpy.context.selected_objects
  5. box = []
  6. for i in range(len(objs)):
  7. objs[i].location = (0,0,0)
  8. box.append(objs[i].dimensions[2])
  9. if (i == 0):
  10. box[0] = box[0]/2
  11. else:
  12. objs[i].location[2] = (sum(box[:i])+objs[i].dimensions[2]/2)+gab*i
Add Comment
Please, Sign In to add comment