Storing render AOV settings in Cinema 4d take system
Posted: Fri Dec 16, 2022 10:58 am
Hi, I would like to store the "Render layer" parameters in Octane Render settings inside a take.
Currently I'm using a python script to achive this, but seems to put C4d in an unstable state resulting in frequent crashes while executing a "Render all marked takes".
Currently I'm using a python script to achive this, but seems to put C4d in an unstable state resulting in frequent crashes while executing a "Render all marked takes".
Code: Select all
import c4d
doc: c4d.documents.BaseDocument
ID_OCTANE_LIVEPLUGIN = 1029499
def main():
rd = doc.GetActiveRenderData()
octane = rd.GetFirstVideoPost()
if enable:
octane[c4d.SET_RENDERLAYER_ACTIVE] = 1
else:
octane[c4d.SET_RENDERLAYER_ACTIVE] = 0
octane[c4d.SET_RENDERLAYER_ID] = layerid
c4d.EventAdd()