I am using Indigo Renderer plugin in Cinema4D for rendering. I am trying to automate rendering. For that I need to change the value of Save Image path under Indigo Renderer settings in C4D Render Setttings.
I have successfully accessed the value of Save Image path through code. But on modifying it doesn't reflect in render settings or even if I again fetch the values by repeating the same code. The values are not updated at all.
rd = doc.GetActiveRenderData()
vp = rd.GetFirstVideoPost()
while(vp.GetName() != "Indigo Renderer"):
vp = vp.GetNext()
if(vp is None):
return
bc = vp.GetData()
#Getting the correct value as in Render Setting UI
print bc[c4d.RS_IMAGE_SAVE_PATH]
#Updating the file path
bc[c4d.RS_IMAGE_SAVE_PATH] = "FileName"
#Repeating the code to get the value after changing
rd = doc.GetActiveRenderData()
vp = rd.GetFirstVideoPost()
while(vp.GetName() != "Indigo Renderer"):
vp = vp.GetNext()
if(vp is None):
return
bc = vp.GetData()
print rd[c4d.RS_IMAGE_SAVE_PATH]
#The image path is not updated.
I have also tried GetDataInstance() and then update, but didnt work.
Please help!