Script Join by color

Hi all!

I received a STP file from my client and it has more than 500000 surfaces all exploded but on the same layer… a nightmare.

The good thing is that it’s separated by color so I could select each color and join it… the bad thing is that there are hundreds of different colors!!

Is there a way to select color by color and make a join via script?

My target is to export it in OBJ.

THANKS!!

Maybe the following script can help…

JoinSameColorObjs.py (1.9 KB)

Joins like-colored objects as far as possible, and simplifies result
Joins curves, surfaces/polysurfaces and meshes (closed objects ignored).

Note it might take awhile with half a million surfaces… :dizzy_face:

2 Likes

IT WORKS!!!

Few things to do by hand after running the script but it helped me a lot!

Thank you very much!!!

1 Like