convert multimaterial to vray material with some more conplexity
I' tring to devellop a small utility which could automatise a very boring and repetitive task.
and since it's my first attemps to make a script in max I'm looking for some help.
The reason of the script is that i work for a small game project and want to make rendering
whith the the different scene exported from our engine (which contain props and bsp). the engine export the material as multimaterial with for each texture a submaterial and that is where the problem is.
I would like that the script convert all the multimaterial of the scene (or better of the
selected object) to vray material.
But I want that it take the diffuse texture from the submaterial 1 and place it on the diffuse map
slot of the Vray shader,
take the diffuse texture from the submaterial 2 and place it on the spec map slot of the Vray shader,
take the diffuse texture from the submaterial 3, create a normal bump in the bump map slot of the Vray shader and place it the texture.
and finaly show the diff map texture of the vray material viewable in the viewport
I hoppe somebody can understand what I mean.
After a week of trying and trying I can convert every standart material from a multimaterial as a vray material but thats all.
I hoppe that somewhere a person with a better knowledge than me could and a big heart could show me the way to do it
I would really appreciate any help
\\\ THANK YOU \\\