VRay Render Element Parameters through MaxScript

Hi,

I have just recently made my first ever MaxScript to speed up the process of sending renders, but want to add a little more automation to it, such as having it pull the camera clip values to use them in the VRayZDepth element.
However, I don't know how to access the VRay Render Element parameters through the code.
The same goes for Vray ExtraTex - assigning a texture to it etc.

Is there a list or resource somewhere that has the list of parameters/properties, or can anyone here help?

Comments

Comment viewing options

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

not quite solved...

A colleague at work managed to track down this awesome resource which solves my problem!

Vray online reference

Actually, despite this list of properties, I'm getting 'Unknown property' errors...

Any advice?

- SOLVED -

Here's what I have right now, and it is working perfectly! :D

if n == vrayzdepth then
(
	i = findItem elementlist n
	re=maxOps.getCurRenderElementMgr()
	element = re.getRenderElement (i-1)
	element.zdepth_use_camera_clip_boudaries = true
)

Comment viewing options

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