2
$\begingroup$

I have two objects (A and B) and I need to get the union of them. A has a face area of 200 units and B has 10 units. In addition, B falls completely inside A. If I use join (Ctrl+J) then the face area becomes 210 units (200+1). However, if I do "Union" using Bool Tool then I get an area of 200 units (what I am looking for as B falls inside A).

There will be thousands of objects to merge between them, thus, I am looking for a way to do the union operation using python. Is there any way of doing that? Can I use the Bool Tool with python? Or, import some function then do the operation.

$\endgroup$
1
  • $\begingroup$ Any API built in tool a Blender User invokes , can be used in a Python Script. So if you look in the Info Window you can see the history of User Actions. $\endgroup$ Jul 29, 2020 at 1:47

1 Answer 1

2
$\begingroup$

enter image description here


The Info Window shows Python statements for user actions. You can find the command invoked for Bool Tool there.

For example

bpy.ops.object.booltool_auto_difference()

was found after a Bool Tool Difference operation.

You may copy and paste from the Info Window.

$\endgroup$
2
  • $\begingroup$ I am quite new in Blender and did not notice that feature. It's super helpful and I figured out that I can use bpy.ops.object.booltool_auto_union() to accomplish my objective. Thanks a lot $\endgroup$
    – Sourav
    Jul 29, 2020 at 5:18
  • 1
    $\begingroup$ I may not be new to Blender. I am inconsistent with the use of Blender... .. Everyday I randomly use Blender .. I realize .. I have partially forgotten features and I partially learn features 🏫👩‍🏫📝➕➖✖➗❕👩‍🎓📉 $\endgroup$ Jul 29, 2020 at 15:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.