← All ideas
  • Published 4 Apr 2022

inverted BoolTool Add-on logic

Add operation inside bool_tools addon to add bool operations to all selected object and make the object modifier the active one.

Imagine having multiple objects that you want to get substracted by one. You can do sort of the reverse logic as default. Select the objects you want to set a boolean modifier and then the active that you want to opearate with.

Example code:

def boolean_substraction_to_active():
    ac_obj = bpy.context.active_object
        for ob in bpy.context.selected_objects:
            if ob.name == ac_obj.name: 
                ac_obj.display_type = 'BOUNDS'
            else:
                print(ob.name, ac_obj.name)
                modbool = ob.modifiers.new("Boolean Substraction", type = "BOOLEAN")
                modbool.object = bpy.data.objects.get(ac_obj.name)     

Suggestion for shortcut may be Ctrl + Alt + {+,-,*} and shift for aplyng, as alt is moreless relatead with inverted logic.

I did not found anything else than official blender sites referencing this addon's host, so feel free to point me if i can send revision of code somewhere.

100%

Development Status: Open

Upvote 1 Downvote 0
TaiSeiButsU
4 Apr 2022

0 Comments