Skip to content

Instantly share code, notes, and snippets.

@sojack
Created December 22, 2017 17:44
Show Gist options
  • Save sojack/c81c436c360db31f9b658e2dca8c5ec8 to your computer and use it in GitHub Desktop.
Save sojack/c81c436c360db31f9b658e2dca8c5ec8 to your computer and use it in GitHub Desktop.
blender step-and-repeat
scn = bpy.context.scene
src_obj = bpy.context.active_object
for i in range (0,9):
new_obj = src_obj.copy()
new_obj.data = src_obj.data.copy()
new_obj.animation_data_clear()
currentLoc = 1.82884
offset = currentLoc +(2.0727 - 1.95077)*i
new_obj.location[0] = offset
scn.objects.link(new_obj)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment