Hi,
I have a script that auto-maps planes based on name:
(
local img_path = "C:/Users/Username/Documents/filenameblahblah/"
for p in $Plane* do (
addModifier p (uvwMap()) -- remove these 2 lines if the planes
convertToMesh p -- already have texture coordinates
local num = substring p.name (p.name.count - 2) p.name.count
local mat = standardMaterial()
mat.diffuseMap = bitmapTexture filename:(img_path + "Diffuse" + num + ".png")
mat.opacityMap = bitmapTexture filename:(img_path + "Alpha" + num + ".png")
p.material = mat
)
)
However, this is only of use to me if both sides are mapped visibly. In other words, having "2-Sided" checked under "Shader Basic Parameters" in the material editor.
I'll need to do this with thousands of planes, so I'd really like to integrate "toggle all materials 2 sided" with this script if possible. A separate script would also do.
(By the way, my Maxscript Listener isn't working at all, but that's a question for another thread. Still getting in the way of me figuring this out.)
Many thanks,
~Sten
By Stenrik · 2015-08-15