Change map type?
After selecting a bunch of Bitmap Maps in the Slate Material Editor, I would like to convert them to RGB Multiply maps, keeping the original bitmap in the Color 1 slot.
I enabled the Macro Recorder, but the command it spits out refers to each specific material and bitmap path:
meditMaterials[9].diffuseMap = RGB_Multiply MAP1:( Bitmaptexture fileName:"c:\project\scene\texturefile.tga")
How do I make this more generic?
I'm also looking for a quick way to instance a specific bitmap into the Color 2 slot of every RGB Multiply, if possible.
This is for a custom game engine which requires lightmaps to be provided via RGB Multiply.
Thanks for any help!
Eric

Comments
#2fn part2
Ok lets try like this
If you supplied "lightMap2" argument with filename then map will be added in map2 slot. Also you have "overwrite" option to overwrite map in MAP2 slot if already exsists.
bga
btw, I'm using Max 2012.
btw, I'm using Max 2012.
3D Game Artist - http://ericchadwick.com
Admin for the Polycount wiki - http://wiki.polycount.com
...
I wil separate this solution in two functions:
#1 first function will helps you to fill new SME view with materials of selected objects by filtering only standard materijal.
This way you can operate only on materials in specified SME View.
You can delete unwanted materijal or maps or even add some new before you assigne RGB_Multiply map
#2 With second function you will be able to:
-- assigne RGB_Multiply map in specified map slot
-- add previous map in MAP1 slot of RGB_Multiply
-- add MAP1 to MAP2 slot as instance
bga
#1 fn
Select some scene objects and run this fn
fn arguments:
objs - array of objects (selection)
newViewName - name of new SME View which will be created
bga