Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
I am facing a new problem. You said that c4d.EventAdd() will update the GUI.
I am actually changing the Renderer from plugin which is called using CommandLine. When I make change, the value in drop down for Renderer changes from Standard to Indigo Renderer, but the sub menu doesn't refresh. The submenu has options like Output, Save, Material Override and so on.
When I manually change it back to Standard and again back to Indigo renderer or any, the sub menu is refreshed and respective values are reflected. First it remain same as that of Standard Renderer.
Is there any other way to update render settings menu?
That really worked! Thank you so much Sebastian! I had almost hit a wall solving this.
I am trying to update SetDriver from the script and then do a CallCommand for rendering. The SetDriver is basically change in render setting Image save path.
The SetDriven is only changed when the script ends and not straight away after SetDriver is updated.
I want SetDriven to get updated as soon as SetDriver is updated through python script.
Please help.
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!