ScriptSpot

Forum topic · General Scripting

Vray Properties in maxscript

By chentxo · 2007-06-02

Description
Hello to everyone,
 i'm trying to find all the names of the Vray Properties in vray. By now ik know:
     "VRay_Matte_Enable" (bool)
     "VRay_Matte_Alpha" (bool)
     "VRay_Matte_Shadows" (float)
 can anybody help me?
 ....thanks
Comments (10)

Thank for the script. But i

nameveiof · 2014-05-12

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?

qerrrrr · 2009-01-20

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]

somrad · 2008-10-04

I like Scriptspot.

feilang · 2008-04-04

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

vsai · 2007-10-26

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

easyfrog · 2007-10-26

   I want use vray distributed rending properties.

But i don't know how to get it ?

Can you help me? Thanks!

ok, sorry, it's solved, just

chentxo · 2007-06-02

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 ,

obaida · 2021-06-23

its not getUserPropBuffer <node> , its filterstring (getUserPropBuffer <node>) ""

its not getUserPropBuffer ,

obaida · 2021-06-23

its not getUserPropBuffer <node> , its filterstring (getUserPropBuffer <node>) ""