rename multi/sub materials

hi there,

in a current project I am working on I am using a large multi/sub material. All sub materials are named 'standardmaterial' and have a different bitmap assigned to their diffuse channel.
Now I'm trying to rename all the materials according to their bitmap name, so the 'standardmaterial' needs to be replace by 'bitmapname'. Because the multi/sub material has more than 400 materials, it's obvious this needs to be automated.

is their any way I could call upon the diffuse channel bitmap name of the material and output that as the sub/material name by means of scripting? You should know that my scripting skills are poor and in a starting phase...

thanx in advance,

Harmalarm

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
crystal3d's picture

does not work, i used vray

does not work, i used vray materials maybe thats why

martinskinner's picture

hi, This script attached

hi,

This script attached should do the trick.

Simply make the multimaterial, whos submaterials you want renamed, the currently selected material slot in the material editor and then run it.

hope it works well for you,

Martin

www.martinskinner.co.uk

AttachmentSize
multimaterialnaming.ms 783 bytes

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.