Octane stores the passes settings in a VideoPost, and c4d.SET_PASSES_ENABLED is the ID for the checkbox highlighted in mp5gosu's reply.
Here's a snippet to print out the checkbox state, in the hope it helps
def check_octane_passes(): renderSettings = doc.GetActiveRenderData() _vp = renderSettings.GetFirstVideoPost() oc_vp = None # Octane VideoPost while _vp: if _vp.CheckType(1029525): # Octane ID oc_vp = _vp break _vp = _vp.GetNext() if not oc_vp: return print "Octane Passes Enabled", oc_vp[c4d.SET_PASSES_ENABLED]
AttributeError: 'module' object has no attribute 'SET_PASSES_ENABLED'
might imply that the Octane attributes have not been added at all to the c4d module. If that's the case you might need to make sure that your code is executed after the Octane plugin has been fully initialized
Hope it helps,