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
`
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
3. If you have opened render dialog -> you need to call
renderSceneDialog.update()
after each change to applyBut... 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