So once I have the BasicVideoPost object for the Redshift settings:
rdata = doc.GetActiveRenderData()
vpost = rdata.GetFirstVideoPost()
assert vpost.GetType() == 1036219
How do I access the data highlighted in red in the gui screencap below?
Querying the REDSHIFT_RENDERER_AOV_COUNT:
num_aovs = vpost[c4d.REDSHIFT_RENDERER_AOV_COUNT]
yields 3, as I would expect, but from there I don't know how to get/set the settings data for any of those three AOVs.
Update: I noticed relevant constants in vprsrenderer.h called REDSHIFT_RENDERER_AOV_LAYER_FIRST and REDSHIFT_RENDERER_AOV_LAYER_LAST, but trying to access any data using these results in a traceback:
aov_layer = vpost[c4d.REDSHIFT_RENDERER_AOV_LAYER_FIRST]
Traceback (most recent call last):
File "console", line 1, in <module>
AttributeError: Parameter value not accessible (object unknown in Python)