pika
02-22-2004, 08:04 AM
Hello, I would like to do something like this using Maxscript.
If the name of material has "shpere_blue_mat"
then apply the material to all the objects that have
"shpere_blue" in the names.
I am new to this script and am wondering how I could start writing a script to accomplish this.
I may be able to start like this, but I am not sure how I can write a code that expresses "if part of material's name is equal to part of selected objects" part.
I am also thinking that I have to write a loop code that goes
through all the materials' names and objects name, then compare
each material name to each object's name.
Sorry about my vague question, but I appreciate any help that could get me somewhere.
Thanks
If the name of material has "shpere_blue_mat"
then apply the material to all the objects that have
"shpere_blue" in the names.
I am new to this script and am wondering how I could start writing a script to accomplish this.
I may be able to start like this, but I am not sure how I can write a code that expresses "if part of material's name is equal to part of selected objects" part.
I am also thinking that I have to write a loop code that goes
through all the materials' names and objects name, then compare
each material name to each object's name.
Sorry about my vague question, but I appreciate any help that could get me somewhere.
Thanks
