Skip to content

Commit

Permalink
removed email address
Browse files Browse the repository at this point in the history
  • Loading branch information
Eddcapone authored May 31, 2018
1 parent 07681e1 commit 209e58a
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions space_view3d_search&replace.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ def execute(self, context):
old_sy = ob.scale.y
old_sz = ob.scale.z
except:
print("ERROR #3 - please report this to: [email protected]")
print("ERROR #3")

if wm.copy_rotation:
try:
Expand All @@ -239,7 +239,7 @@ def execute(self, context):
sz = selected_objects[7+x]
rmode = selected_objects[8+x]
except:
print("ERROR #2 - please report this to: [email protected]")
print("ERROR #2")

try:
#set new rotation values. Take values from the object which will be replaced.
Expand Down Expand Up @@ -267,7 +267,7 @@ def execute(self, context):
ob.scale.y = sy
ob.scale.z = sz
except:
print("ERROR #4 - please report this to: [email protected]")
print("ERROR #4")

#create a copy from the new object
bpy.ops.object.duplicate_move(OBJECT_OT_duplicate={"linked":False, "mode":'TRANSLATION'}, TRANSFORM_OT_translate={"value":(0, 0, 0), "constraint_axis":(False, False, False), "constraint_orientation":'GLOBAL', "mirror":False, "proportional":'DISABLED', "proportional_edit_falloff":'SMOOTH', "proportional_size":1, "snap":False, "snap_target":'CLOSEST', "snap_point":(0, 0, 0), "snap_align":False, "snap_normal":(0, 0, 0), "texture_space":False, "remove_on_cancel":False, "release_confirm":False})
Expand Down Expand Up @@ -300,7 +300,7 @@ def execute(self, context):
ob.scale.y = old_sy
ob.scale.z = old_sz
except:
print("Error #5 - please report this to: [email protected]")
print("Error #5")

bpy.ops.view3d.snap_selected_to_cursor(use_offset=False)
i = i+1
Expand Down Expand Up @@ -334,7 +334,7 @@ def execute(self, context):
ob.rotation_euler.y = old_ry
ob.rotation_euler.z = old_rz
except:
print("ERROR #1 - please report this to: [email protected]")
print("ERROR #1")

#delete replaced objects
if replaced == 1:
Expand Down Expand Up @@ -501,7 +501,7 @@ def execute(self, context):

random_nr = zahl = random.randint(0,max-1)

if len(obj.material_slots) > i: # verhindert das Material Slots erstellt werden die nicht benötigt werden
if len(obj.material_slots) > i: # verhindert das Material Slots erstellt werden die nicht benötigt werden
obj.active_material_index = i

if str(bpy.data.materials[random_nr])[23:-3] != "Material":
Expand Down Expand Up @@ -897,4 +897,4 @@ def unregister():
bpy.utils.unregister_module(__name__)

if __name__ == "__main__":
register()
register()

0 comments on commit 209e58a

Please sign in to comment.