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.
qerrrrr, thank for the script. But i want to add one more option. Set on "matte for refl/refr"
I tried to add string "try(setUserProp obj "VRay_Secondary_Matte" true)catch()",
as far as i understand "VRay_Secondary_Matte_Enable" variable responsible for this
macroScript Macro21
category:"DragAndDrop"
toolTip:""
(
fn SetAsMatte obj =
(
try(setUserProp obj "VRay_Matte_Enable" true)catch()
try(setUserProp obj "VRay_Matte_Alpha" -1.0)catch()
try(setUserProp obj "VRay_Matte_Shadows" true)catch()
try(setUserProp obj "VRay_Secondary_Matte_Enable" true)catch()
)
for n = 1 to objects.count do SetAsMatte objects[n]
)
, but this has no affect, option "matte for refl/refr" no changed.
How can i do this?
Hi,chentxo,
I'v got the same trouble with you,and I tried "getUserPropBuffer " in maxscript listener,there was no reaction.Can you tell me how does that syntax work?Thank you~
I'm not too sure what you mean by DR properties.. but the list of DR servers is stored in the plugcfg/vray_dr.cfg file.. and you can edit the file at will
ok, sorry, it's solved, just had to look for that in maxscript help a bit more. If it's usefull for anybody: "getUserPropBuffer <node>" gives you all the vray properties and more.
Comments
Thank for the script. But i
qerrrrr, thank for the script. But i want to add one more option. Set on "matte for refl/refr"
I tried to add string "try(setUserProp obj "VRay_Secondary_Matte" true)catch()",
as far as i understand "VRay_Secondary_Matte_Enable" variable responsible for this
macroScript Macro21
category:"DragAndDrop"
toolTip:""
(
fn SetAsMatte obj =
(
try(setUserProp obj "VRay_Matte_Enable" true)catch()
try(setUserProp obj "VRay_Matte_Alpha" -1.0)catch()
try(setUserProp obj "VRay_Matte_Shadows" true)catch()
try(setUserProp obj "VRay_Secondary_Matte_Enable" true)catch()
)
for n = 1 to objects.count do SetAsMatte objects[n]
)
, but this has no affect, option "matte for refl/refr" no changed.
How can i do this?
fn SetAsMatte obj
fn SetAsMatte obj =
(
try(setUserProp obj "VRay_Matte_Enable" true)catch()
try(setUserProp obj "VRay_Matte_Alpha" -1.0)catch()
try(setUserProp obj "VRay_Matte_Shadows" true)catch()
)
for n = 1 to objects.count do SetAsMatte objects[n]
I like Scriptspot.
I like Scriptspot.
I like Scriptspot.
Hi,chentxo, I'v got the
Hi,chentxo,
I'v got the same trouble with you,and I tried "getUserPropBuffer " in maxscript listener,there was no reaction.Can you tell me how does that syntax work?Thank you~
I'm not too sure what you
I'm not too sure what you mean by DR properties.. but the list of DR servers is stored in the plugcfg/vray_dr.cfg file.. and you can edit the file at will
I want use vray
I want use vray distributed rending properties.
But i don't know how to get it ?
Can you help me? Thanks!
You may work like this Step
You may work like this
Step 1: Set the current renderer to VRay
Step 2: Run the following codes in MAXScript Listener
vr = renderers.current
show vr
You may also find vray properties on online reference:
http://www.cgplusplus.com/online-reference/vray-properties/
ok, sorry, it's solved, just
ok, sorry, it's solved, just had to look for that in maxscript help a bit more. If it's usefull for anybody: "getUserPropBuffer <node>" gives you all the vray properties and more.
this was a self reply post.
its not getUserPropBuffer ,
its not getUserPropBuffer <node> , its filterstring (getUserPropBuffer <node>) ""
Youtube, Gumroad
its not getUserPropBuffer ,
its not getUserPropBuffer <node> , its filterstring (getUserPropBuffer <node>) ""
Youtube, Gumroad