Vray Properties in maxscript

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

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
nameveiof's picture

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?

qerrrrr's picture

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]

somrad's picture

I like Scriptspot.

I like Scriptspot.

I like Scriptspot.

feilang's picture

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~

vsai's picture

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

easyfrog's picture

   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!

feilang's picture

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/

chentxo's picture

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. Smile

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.