Assign automatically hundred of bitmaps to hundred of materials

Hi!
I'm building a Material Library for trees and plants in 3ds max.
What I'm doing is to put manually a bitmap into the diffuse and opacity channel of the material.
Well, I've a lot of bitmap and a lot of materials to create, so this procedure it's quite long and tedious, I'd like to know if it could be done automatically,
I don't know, maybe a sort of script that point to a folder with textures named in this way: diffuse01.jpg, diffuse02.jpg... and when I click "Start" it creates a series of materials caleed Mat01 Mat02.. and it applies automatically diffuse01.jpg to the first and so on.. and using a cycle "for" I can decide the number of materials.

Thank you for any kind of help.
I hope someone else has had the same issue :) (and has solved it)

Comments

Comment viewing options

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

You're in luck. Jonah had a

You're in luck. Jonah had a similar problem a few months back on cgtalk - here's the link to the thread / code (jump to last page for most recent code) ...

http://forums.cgsociety.org/showthread.php?f=98&t=656374&page=1&pp=15&hi...

You might also be interested in Nir Sullam's script "Billboard Generator" http://www.scriptspot.com/3ds-max/billboard-generator which helps create / reuse a library of textures on billboard objects

Alternatively, once you have the objects created and just need them to face the camera, a search for "billboard" brings up several useful results:

Billboard Manager - http://www.scriptspot.com/3ds-max/billboard-manager
Multi-Assign Scripted Billboard Controller - http://www.scriptspot.com/3ds-max/multi-assign-scripted-billboard-contro...
Billboard-O-Matic - http://www.scriptspot.com/3ds-max/billboard-o-matic

Good luck!

Chris

Comment viewing options

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