Access renderer specific settings with python
I'm looking for a way to acces the renderer specific rendersettings with Python. I can adjust common rendersettings like the width, height, start, end, etc. since they are stored in the RenderData. These are accessible through:
#Store the RenderData object in a variable so it's easier to access
my_render_data = c4d.documents.GetActiveDocument().GetActiveRenderData()
#Set the render width
my_render_data[c4d.RDATA_XRES] = 1920
#Set the render height
my_render_data[c4d.RDATA_YRES] = 1080
#Set the startframe
# - note we get a BaseTime object so we need to use GetFrame() to get a frameNumber from that.
my_render_data[c4d.RDATA_FRAMEFROM].GetFrame(25)
#Set the endframe
my_render_data[c4d.RDATA_FRAMETO].GetFrame(25)
Unfortunately something like this won't work:
my_render_data = c4d.documents.GetActiveDocument().GetActiveRenderData()
print (my_render_data[c4d.REDSHIFT_RENDERER_COLOR_MANAGEMENT_OCIO_RENDERING_COLORSPACE])
This returns "None" so the renderer specific settings seem to live somewhere else.
Now I'm assuming if I want to to change renderer specific values I should point to the renderer somehow.
With RDATA_RENDERENGINE I get the plugin ID. So let's go from there:
my_render_data = c4d.documents.GetActiveDocument().GetActiveRenderData()
print (c4d.plugins.FindPlugin(my_render_data[c4d.RDATA_RENDERENGINE]))
This returns:
<c4d.plugins.BasePlugin object called 'Redshift' with ID 8 at 0x0000027D8A30E590>
Now I'm not sure if this is the right direction as it doesn't get me much further. I still can't acces plugin specific values.
How do I get/adjust those?