Created
December 22, 2017 17:44
-
-
Save sojack/c81c436c360db31f9b658e2dca8c5ec8 to your computer and use it in GitHub Desktop.
blender step-and-repeat
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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