Cinema 4D Python access Save checkbox
-
Hello all,
I'm trying to access the Save checkbox on the left side of the Render Settings panel (marked in red in the image below). I'm able to get and set the Save checkbox under the "Regular Image" area under the Save settings, but can't figure out how to access that master "Save" checkbox. I've searched high and low, but haven't found a way yet. Is that checkbox accessible with Python?
Thanks in advance for any answers!
-
Hi @COLOR-matt, first of all welcome in the Cinema 4D plugin development community. Not a big issue I setup your topic as a question, but please for the next one try to do so (for more information see Forum Guidelines - Ask a question)
Regarding your issue this can be done like so
rd = doc.GetActiveRenderData() rd[c4d.RDATA_GLOBALSAVE] = False c4d.EventAdd()
The next Ids are not documented, and can't be dragged into the console, so there is no good way to find them from a external point of view and I had to look into Cinema 4D code base to find them.
- RDATA_MULTIPASS_ENABLE, To enable or disable Multi-Pass
- RDATA_STEREO, To enable or disable Stereoscopic
- RDATA_MATERIAL_OVERRIDE, To enable or disable Material override
Cheers,
Maxime -
Just to add the info; if the entry in the tree is a
BaseVideoPost
, the checkbox is represented by the flagBIT_VPDISABLED
in theBaseList2D
's bitset, which you can access through the corresponding functionsGetBit
,SetBit
,DelBit
, orToggleBit
, e.g.videoPost.DelBit(c4d.BIT_VPDISABLED)
Note that this is a disabling bit, not an enabling, so the effect on the checkboxes is kinda reversed.
(This applies to the entry "Magic Bullets Looks" in the screenshot above, but also to any added Effect and Renderer.)
-