Randy liddil Posted August 23, 2010 Share Posted August 23, 2010 Does anyone know of a script that can rename Materials in a 3ds max scene? I have a scene I brought in from SketchUp and all the materials are named, "texture01,texture02,texture03", etc. Link to comment Share on other sites More sharing options...
Dave Buchhofer Posted August 23, 2010 Share Posted August 23, 2010 What are you trying to rename them in relation to? just need to be as specific as you can be in describing the problem, and usually scripting is pretty easy to do. it kind of would be nice to have a straight list that you could type and edit.. hmm. wouldn't be hard Link to comment Share on other sites More sharing options...
Randy liddil Posted August 23, 2010 Author Share Posted August 23, 2010 i have about 50 different buildings that i'm importing thats in sketchup from another client and all of the textures that were embedded in sketchup are just called "texture01,texture02, etc" for every single building...so when i bring them into max there are tons of duplicate texture names for the buildings. Even if I can somehow just name the textures as they relate to each building like "texture01 warehouse" so all of the textures on the warehouse building are at least named unique to that building. Hope this makes sense. Link to comment Share on other sites More sharing options...
Dave Buchhofer Posted August 23, 2010 Share Posted August 23, 2010 Ok, third time i've clicked Reply to Thread instead of post quick reply. /sad. Anyway, this should rename the materials for all selected objects to be the format "Object Name+MaterialName" --Script: prefix object names to material names for all selected objects. ( sel = selection as array for obj in sel do ( try( if obj.material != undefined then ( obj.material.name = (obj.name+" " +obj.material.name) ) )--end try catch(print "something failed on: " + obj.name + "maybe it doesn't have a material?!" ) )--end for loop )--end script Link to comment Share on other sites More sharing options...
Trick Posted August 23, 2010 Share Posted August 23, 2010 Soulburn scripts are able to rename materials in a number of ways. Even relative to the object they are on. Look for them at Scriptspot! Link to comment Share on other sites More sharing options...
TheAllusionisst Posted August 23, 2010 Share Posted August 23, 2010 Ok, third time i've clicked Reply to Thread instead of post quick reply. /sad. Anyway, this should rename the materials for all selected objects to be the format "Object Name+MaterialName" --Script: prefix object names to material names for all selected objects. ( sel = selection as array for obj in sel do ( try( if obj.material != undefined then ( obj.material.name = (obj.name+" " +obj.material.name) ) )--end try catch(print "something failed on: " + obj.name + "maybe it doesn't have a material?!" ) )--end for loop )--end script Very nice of you to try and help out by creating a script for them. Link to comment Share on other sites More sharing options...
Randy liddil Posted August 23, 2010 Author Share Posted August 23, 2010 Thanks so much!!! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now