ScriptSpot home

Forum topic · Scripts Wanted

Alternative to detach by MatID

By Eric · 2016-09-07

Description

I'm looking for a script that will detach an object into separate objects based on material ID. However I usually work with weighted normals and a standard select and detach will break them. So it would be useful to have a script that first duplicates the object then selects the faces of the material ID, inverts the selection and then deletes. After that it repeats itself for each remaining material ID of the object. Any help would be much appreciated.

Comments (6)

Comment policy

1rv

some tweak needed please

Barigazi, the current version keeps multi-sub\object material assignment to detached objects. Is it possible to get a version of your "bga_detach_by_mid" that would SPLIT initial multi-sub\object material into basic ones?
Thank you in advance.

Reply to Branko Živković
harumscarum

EditableMesh support

Would it be possible to add EditableMesh support?
No UI required - just a simple shortcut to detach by MaterialID with no options
Thank you in advance