Multi-Layer Format

On 08/07/2013 at 22:24, xxxxxxxx wrote:


does any one know how to check if "Multi-Layer File" property is disabled in Render Setttings (Multi-Pass Images)?

The issue is that code:

import c4d
doc = c4d.documents.GetActiveDocument()
rd = doc.GetActiveRenderData()
print "Multi-Layer File:", rd[c4d.RDATA_MULTIPASS_SAVEONEFILE]

always prints:

Multi-Layer File: 1

even if this option is disabled (let say, when Format is JPEG).


On 08/07/2013 at 23:49, xxxxxxxx wrote:

just tried it with the console. the option does work as expected and prints 0 when it is disabled.
but you should consider that the changing the file format to a type that does not allow layers does
not disable the option but disables its gui gadget (greyed out display mode). the value of the
gadget remains the same in that state.

On 09/07/2013 at 00:02, xxxxxxxx wrote:

ok, so I will ask the question other way:
how to get the state of "Multi-Layer File" property? I mean, I would like to know when this field is passive (grayed out), but not the value it caries 🙂