pd
01-04-2008, 03:20 AM
Hi,
I'm on the brink of a very repetitive, dull task. There are nearly 500 objects that need a material in a recent scene of mine. Each object needs it's own material - they are all based on the same simple shader, though and only differ in a diffuse map(It's a standard material, 100% self illuminated). All those textures are finished already and are waiting to be applied.
The textures are named the same way as the objects are.
I can't say how hard it would be to create a script that automates this task, but I'd like to get some input here. I guess the script would have to do the following:
- take the first of the selected 500 objects and get its %name
- create a material(duplicate from a pre-defined material) and name it after the object
- assign a bitmap texture map to the diffuse slot. the path will be "textures\%name.jpg"
- go the next object and repeat the process until the last one is reached
Unfortunately, my maxscript skills are non-existent and since the deadline is coming close I won't be able to change this. I'm am however thankful for any comment.
If there is anyone out there, willing to write that script, I'd be able to reward him/her with a small fee.
Thanks!
I'm on the brink of a very repetitive, dull task. There are nearly 500 objects that need a material in a recent scene of mine. Each object needs it's own material - they are all based on the same simple shader, though and only differ in a diffuse map(It's a standard material, 100% self illuminated). All those textures are finished already and are waiting to be applied.
The textures are named the same way as the objects are.
I can't say how hard it would be to create a script that automates this task, but I'd like to get some input here. I guess the script would have to do the following:
- take the first of the selected 500 objects and get its %name
- create a material(duplicate from a pre-defined material) and name it after the object
- assign a bitmap texture map to the diffuse slot. the path will be "textures\%name.jpg"
- go the next object and repeat the process until the last one is reached
Unfortunately, my maxscript skills are non-existent and since the deadline is coming close I won't be able to change this. I'm am however thankful for any comment.
If there is anyone out there, willing to write that script, I'd be able to reward him/her with a small fee.
Thanks!
