Notifications
Clear all

[Closed] Applying random matIDs to elements in an editable mesh

Any ideas as to how to strip out elements as opposed to faces from an editable mesh?

I’ve looked through the help and everything refers to faces or polys but not to elements.

The idea would be to take each slab of say stone flooring(in a single mesh) and apply a random matID and hence a random material from a multisubobject material to each element.

Since each slab has sides as well as top and bottom I need to find a way of accessing elements rather than faces.

Whats the best way of doing this?

3 Replies

perhaps the ‘MaterialByElement’ modifier provides a solution for you ?? provided that the the entire element has ONE id offcourse for top/bottom/sides.

Here’s a script that Explodes by element…

Should get you 1/2 way there…

Keith Morrison

Thanks guys,

Can’t believe that I never noticed that modifier before…LOL.
It does what I need for now, but I’ll have a play around with the script as well and see where it takes me.