Hi!
Is there a script which convert meshes in a scene to a single mesh based on their material. For example I have 100 meshes with 5 materials assigned, as a result I should have 5 meshes.
Thanks in advance!
Forum topic · Scripts Wanted
By Chumazik · 2009-07-24
Hi!
Is there a script which convert meshes in a scene to a single mesh based on their material. For example I have 100 meshes with 5 materials assigned, as a result I should have 5 meshes.
Thanks in advance!
Comments (6)
Comment policy
Hi Anibus,
Sorry if I seemed to be demanding! Didn't mean to. It is always possible to convert primitives to meshes in a few cliks.
But anyway thanks a lot for your time! You saved a lot of mine!
Best regards!
well, the script is updated
Yes, according to your request I wrote the script for meshes only.
Okay, I am here in 40 C (104 F) heat and try to work :) ...
but I'll modified the script for you, maybe soon ...
At the moment you can use snapshot tool to convert your objects to mesh ;)
Update:
Oh, I have found why it didn't work. I tested the script with simple boxes, but it handles only editable meshes. Maybe there is a point to make it work with primitives as well.
And again thanks a lot!
Hi, Anubis!
Thank you very much for attention!
While testing your script I always get the warning message - No meshes with material in selection! Tested in 3DS Max Design 2009 SP1.
I am not sure if there are similar so I wrote a script from scratch.
I hope this help
(p.s. - script works also with Multi/Sub-Object materials)
[EDIT] Ultimately I changed the code slightly and upload the script here:
http://www.scriptspot.com/3ds-max/attach-mesh-by-material