On 19/03/2014 at 13:33, xxxxxxxx wrote:
Working with render settings, I cannot figure out how to send information to the renderer settings. I am trying to get this to work with Vray and Octane. I can drag and drop the settings into the Script manager and the name of the attribute appears such like:
However if i use GetActiveRenderData with the code
Then I get 'obj has no attribute'
How can I get and set renderer render settings?
Thanks in advance!
On 20/03/2014 at 01:35, xxxxxxxx wrote:
Hi, the __setitem__ operator has some internal checks to ensure that you don't overwrite stuff by accident. In this case you can access the data container directly via RenderData.GetDataInstance().
In your specific case you don't send the settings to the vray/octane node. They must be retrieved by calling:
vp = doc.GetActiveRenderData().GetFirstVideoPost() while vp: if vp.GetType() == 1234567: # ID of your needed renderer vp[ID] = value break vp = vp.GetNext()
Hope this helps.
On 20/03/2014 at 07:05, xxxxxxxx wrote: