ScriptSpot

Forum topic · Scripts Wanted

Alternative to detach by MatID

By EricRLA · 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)

some tweak needed please

1rv · 2019-11-16

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.

EditableMesh support

harumscarum · 2021-04-11

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

barigazy · 2021-05-12

The scrip is updated to version 1.2
Now support meshes

EricRLA · 2016-11-01

Yes! That does exactly what I needed. Thank you!