There's a Swami-script I use from time to time called "Make Sign". It creates a plane with the same dimensions as a bitmap that you select and applys a material with that bitmap to the plane.
I was wondering if it would be possible to modify the script so that the material it creates is a VRay material.
Here's the script:
macroScript MakeSign
category: "Uplate Stuff"
internalCategory: "Uplate Stuff"
buttonText: "Make Sign"
(
fn makeSign bm =
(
rName =getFilenameFile bm.filename
m =standard name:rName diffuseMap
bmt=bitmaptex bitmap:bm)
showTextureMap m m.diffuseMap true
meditMaterials[1]=m
r =rectangle \
name: rName \
length: bm.height \
width: bm.width \
material: m \
isSelected: true
addModifier r (uvwmap())
)
bm=selectBitMap()
if bm!=undefined then makeSign bm
)-- end macroScript.
I tried changing the word "standard" to "VRayMtl", but I got an error. Is it possible to make this work?
Thanks.
I was wondering if it would be possible to modify the script so that the material it creates is a VRay material.
Here's the script:
macroScript MakeSign
category: "Uplate Stuff"
internalCategory: "Uplate Stuff"
buttonText: "Make Sign"
(
fn makeSign bm =
(
rName =getFilenameFile bm.filename
m =standard name:rName diffuseMap

showTextureMap m m.diffuseMap true
meditMaterials[1]=m
r =rectangle \
name: rName \
length: bm.height \
width: bm.width \
material: m \
isSelected: true
addModifier r (uvwmap())
)
bm=selectBitMap()
if bm!=undefined then makeSign bm
)-- end macroScript.
I tried changing the word "standard" to "VRayMtl", but I got an error. Is it possible to make this work?
Thanks.
Comment