Skip to content

Commit

Permalink
Fix wrong object references in python script
Browse files Browse the repository at this point in the history
  • Loading branch information
marian42 committed Jul 1, 2018
1 parent 9c0b264 commit 0dde4d0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions intersect.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@
bpy.ops.object.delete()

bpy.ops.import_mesh.stl(filepath = file_a)
bpy.ops.import_mesh.stl(filepath = file_b)
obj_a = bpy.context.selected_objects[0]

obj_a = bpy.data.objects[0]
obj_b = bpy.data.objects[1]
bpy.ops.import_mesh.stl(filepath = file_b)
obj_b = bpy.context.selected_objects[0]

bpy.context.scene.objects.active = obj_a
bpy.ops.object.modifier_add(type = 'BOOLEAN')
Expand Down

0 comments on commit 0dde4d0

Please sign in to comment.