Diffuse Alpha Channel to Opacity Channel
I'm having to import over a thousand 3ds objects into max, each objects material (TGA) has an alpha channel. All I need to do is the Copy Diffuse slot to Opacity slot and set the mono channel output to alpha.
I've been trawling scriptspot for ages, there are lots of Material scripts, but I can't find one that will do this simple task.
I get this from listener.....
meditMaterials.opacityMap = Bitmaptexture fileName:"C:\Program Files\Infogrames\Grand Prix 4\Tracks\my_track\Import Full Track To Max Test Track\melborne2001\maps\melborne2001\page_335.tga"
meditMaterials[#Maps][#Opacity__Map__856__page_335_tga].monoOutput = 1
But I can't figure out how to just use it on the selected slot, or preferably all slots in the material editor, basically I need that little bit of script to work without looking for the specific tga image name.
btw I'm a Maxscript Luddite...go easy on me ;) [email protected] hoping script already exists