About this site
ScriptSpot is a diverse online community of artists and developers who come together to find and share scripts that empower their creativity with 3ds Max. Our users come from all parts of the world and work in everything from visual effects to gaming, architecture, students or hobbyists.
Comments
Thanks to all! I solved this
Thanks to all! I solved this with execute command:
(
fn fn_A = (
local M = meditMaterials[activeMeditSlot]
local B = "meditMaterials[activeMeditSlot]."
if classof M == VrayMtl do local A = #("texmap_diffuse")
A[1] = execute (B + A[1])
)
D = fn_A()
)
hmmm....
better like this
then like this =
instead"M.texmap_diffuse"it
instead of
"M.texmap_diffuse"
it would be better
A= #texmap_diffuse or A= "texmap_diffuse"
later you can use it like this
see getProperty and setProperty in max help
also its not good practice using "execute" command in maxscript.....
here is the sample code
I think I found it :D
Hello, I saw your post and started playing around in max and got this bit of code (below) to work, I think it should work for your purpose too (hope it does).
-Maarten