Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush Python API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Recent
    • Tags
    • Users
    • Login

    Multi-Layer Format

    Scheduled Pinned Locked Moved PYTHON Development
    3 Posts 0 Posters 320 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H Offline
      Helper
      last edited by

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

      Hi,

      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).

      Thanks,
      Simonas

      1 Reply Last reply Reply Quote 0
      • H Offline
        Helper
        last edited by

        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.

        1 Reply Last reply Reply Quote 0
        • H Offline
          Helper
          last edited by

          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 🙂

          1 Reply Last reply Reply Quote 0
          • First post
            Last post