Storing render AOV settings in Cinema 4d take system

Maxon Cinema 4D (Export script developed by abstrax, Integrated Plugin developed by aoktar)

Moderators: ChrisHekman, aoktar

Post Reply
gricceri
Licensed Customer
Posts: 9
Joined: Tue May 02, 2017 8:19 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".


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()
User avatar
aoktar
Octane Plugin Developer
Posts: 16066
Joined: Tue Mar 23, 2010 8:28 pm
Location: Türkiye
Contact:

Here "octane" maybe NULL, check it!
Octane For Cinema 4D developer / 3d generalist

3930k / 16gb / 780ti + 1070/1080 / psu 1600w / numerous hw
gricceri
Licensed Customer
Posts: 9
Joined: Tue May 02, 2017 8:19 am

aoktar wrote:Here "octane" maybe NULL, check it!
First of all thanks for the quick reply!

I'll add this check, even if I actually print octane.GetName() to the console and seems fine.

I've changed the expresso node priority to Genarator 400 and so far stability as improved a lot.

But yet would be nice to store Render Setting inside a take.

Bests.
User avatar
aoktar
Octane Plugin Developer
Posts: 16066
Joined: Tue Mar 23, 2010 8:28 pm
Location: Türkiye
Contact:

gricceri wrote: But yet would be nice to store Render Setting inside a take.
Bests.
Storing by who?
Octane For Cinema 4D developer / 3d generalist

3930k / 16gb / 780ti + 1070/1080 / psu 1600w / numerous hw
gricceri
Licensed Customer
Posts: 9
Joined: Tue May 02, 2017 8:19 am

aoktar wrote:
gricceri wrote: But yet would be nice to store Render Setting inside a take.
Bests.
Storing by who?
Sorry, I mean adding an override. Like in my case overriding the "layer id" in AOV renders settings in a particular take.
Post Reply

Return to “Maxon Cinema 4D”