[Closed] Attach poly AND match mtl ID's to materials
Hi,
I’ve got a script which merges all objects in the scene at some point. I’m using editable poly’s. I’ve noticed that attaching poly’s by script uses the last used “attach options” the user picked when attaching manually. these are the options where you can pick how to manage materials and material ID’s when attaching.
My script relies on creating a multimaterial while attaching like the “Match material ID’s to material ” does. If the user did some manual attaching before with a different option, my script messes up.
Is there a way to get to these options while attaching poly’s?
i remember this problem, but i don’t remember that i found a solution staying with editable poly. it was OK for me convert to mesh and back to poly.
it just sounds ugly, but if you look into editable poly code you will see that they do exactly the same – attach operation is made on mesh level, and after they just update(rebuild) poly data, which is almost the same as convert to poly. actually this is why the built-in poly multi-attach is very slow