Importing Materials with Existing Name
-
When importing objects/components that have materials with the same name as in the SU file you importing to, by default SU will rename the imported material name.
For example i have "Black" material, if i import object with material that has the same name, the name will be changed to "Black1" and I'll have 2 materials.
My question is: Is it possible to import material with existing name and remain it's original name ?
-
Not by default, but that might be do-able through Ruby.
When you import materials, where are you importing from?
Chris
-
I'm importing from SU files. I often need objects/components from my older projects (SU files), so i import them.
-
You can't force existing Materials to be adopted on Import... However there are several scripts out there - like my GlobalMaterialChanger - that let you pick a Material and swap it with another. So in your example, Material_to_go = 'Black1', Material_to_add = 'Black'. After running it nothing will have Material 'Black1'. Then Purge Materials and Black1 will disappear...
This way only works one Material-swap at a time... BUT you could rewrite it to find 'families' of Materials - e.g. Black, Black1, Black2, Black3 etc and make them all into the original 'Black' ?
Using my additional method
material.deleteyou could also purge each now_unused_material as you go... -
Thank you very much TIG. Although it doesn't do 100% of what i wanted, It's a lot better than manually reapply materials.
Regarding the rewriting the plugin, I wouldn't know a thing about it. I will very much appreciate if you could do it (I'm sure others will benefit from it as well)
Best
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better π
Register LoginAdvertisement