Seperate objects by loose parts automatically in python A have some objects that undergo several boolean. This leaves parts as unconnected. I know that I can:

Enter edit mode
Enter face select
Select a face
&quot;Ctrl+L&quot; for select linked all (done in picture below)
&quot;p&quot; separate by loose parts

I can see the corresponding python command and could just write it in a script. EXCEPT step 3) above. I can select a face, sure, but do I then have to loop over all faces and try to select linked? I suppose that I could count the number of selected faces and check it is equal to all faces, hence no unconnected part. But this seems very clumcy.
It there an elegant way to separate unconnected part into individual objects??
Ok. I've search quite a while now. But just after posting this I stumpled on the answer sigh. If any one else is interested:

Enter edit mode
press &quot;a&quot; to select all vertices
press &quot;p&quot; to separate by loose parts