Creat Vraymtl from script texture with variables ( Diffuse, glossy, ref, bump )

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi Everyone,
I am tying to learn something about max Script and Pyton, and I am trying to create a code to make an automatic library material from a folders of textures.
I found some codes like this:
After fight some hours with this code I couldn't get any result (I am beginner in scripting), is anyone can help me to create some code?
I make a sample of Vray Mtl with Diffuse bitmap, Reflect bitmap, Glossy Bitmap, Normal bitmap and bump bitmap.
I would like to create a script to make this operation 1000 times and create a different collections of materials.
Also I guess is possible create a variable to detect inside to the texture file name a pattern of words to select the correct texture for each material.
("..Leather01.._d..")
("..Leather01.._r..")
("..Leather01.._g..")
("..Leather01.._n..")
Do you think is possible?
Thanks