Nii
03-18-2006, 05:37 AM
Hi guys, I have a bunch of meshes labelled mesh00 -> mesh50, and I want to automatically select each one so I can set the image alpha to opaque for each. Selecting a mesh is just $mesh00 I think, but I can't think of a way to put this in a loop (similar to $mesh + i or something). Can anyone help me?
I've tried a workaround (below) but it doesn't work. I guess its abit obvious to say that I'm not very good at programming =]. Thanks in advance.
for i = 0 to 9 do
(
importFile (mitsu + "00" + i as string + ".3ds") #noPrompt
meditMaterials[1] = copy $.material
meditMaterials[1].diffuseMap.monoOutput = 1
meditMaterials[1].diffuseMap.alphaSource = 2
showTextureMap meditMaterials[1] on
)
I've tried a workaround (below) but it doesn't work. I guess its abit obvious to say that I'm not very good at programming =]. Thanks in advance.
for i = 0 to 9 do
(
importFile (mitsu + "00" + i as string + ".3ds") #noPrompt
meditMaterials[1] = copy $.material
meditMaterials[1].diffuseMap.monoOutput = 1
meditMaterials[1].diffuseMap.alphaSource = 2
showTextureMap meditMaterials[1] on
)
