Scripting the Render Set up

Hi All, I am having a hard time with scripting parameters to set values for the render set up dialogue box

1 its really hard to find the matching parms to whats on the dialogue box

vr=renderers.current
showproperties vr

Give me a list of parms, where is the abilty to lock the image aspect parm after you have set a value ? .

2) Aperture width > its a global variable, whats its for. The vray camera has an Aperture width of 36mm, why is it even for in the render dialogue ?. The drop down preset HDTV alters it why ?. It seems to serve no visible purpose what so ever.

3)Lastly you have to close the render dialogue to effect change via a script...

Does anyone have any tricks /tips to deal with scripting render settings. I am especially interested in add render elements !

Cheers !~

Comments

Comment viewing options

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

`

a lot of questions :p

1. to get renderers.current you can use my simple "Find Renderer property name..."
sending in attachment
It shows changed property name and value (start script and than change render properties)

But image resolution, aspect ratio aren't in renderers.current
you can change it by

RenderHeight = 1000 
renderSceneDialog.update()
RenderWidth = 1000
renderSceneDialog.update()

3. If you have opened render dialog -> you need to call  renderSceneDialog.update() after each change to apply

But... render elements are not in renderers.current. To change, add them you need to use RenderElementMgr: Just look in max help, there is a nice example.

Hope this helps :)
Pixamoon

AttachmentSize
render_property_check_v0.10.1.ms 1.16 KB

Comment viewing options

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