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
    • Unread
    • Recent
    • Tags
    • Users
    • Login

    Cinema 4D Python access Save checkbox

    Cinema 4D SDK
    python
    3
    4
    561
    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.
    • C
      COLOR-matt
      last edited by

      Hello all,

      I'm trying to access the Save checkbox on the left side of the Render Settings panel (marked in red in the image below). I'm able to get and set the Save checkbox under the "Regular Image" area under the Save settings, but can't figure out how to access that master "Save" checkbox. I've searched high and low, but haven't found a way yet. Is that checkbox accessible with Python?

      Thanks in advance for any answers!

      master save checkbox.png

      1 Reply Last reply Reply Quote 0
      • M
        m_adam
        last edited by

        Hi @COLOR-matt, first of all welcome in the Cinema 4D plugin development community. Not a big issue I setup your topic as a question, but please for the next one try to do so (for more information see Forum Guidelines - Ask a question)

        Regarding your issue this can be done like so

        rd = doc.GetActiveRenderData()
        rd[c4d.RDATA_GLOBALSAVE] = False
        c4d.EventAdd()
        

        The next Ids are not documented, and can't be dragged into the console, so there is no good way to find them from a external point of view and I had to look into Cinema 4D code base to find them.

        • RDATA_MULTIPASS_ENABLE, To enable or disable Multi-Pass
        • RDATA_STEREO, To enable or disable Stereoscopic
        • RDATA_MATERIAL_OVERRIDE, To enable or disable Material override

        Cheers,
        Maxime

        MAXON SDK Specialist

        Development Blog, MAXON Registered Developer

        1 Reply Last reply Reply Quote 1
        • CairynC
          Cairyn
          last edited by

          Just to add the info; if the entry in the tree is a BaseVideoPost, the checkbox is represented by the flag BIT_VPDISABLED in the BaseList2D's bitset, which you can access through the corresponding functions GetBit, SetBit, DelBit, or ToggleBit, e.g.

          videoPost.DelBit(c4d.BIT_VPDISABLED)

          Note that this is a disabling bit, not an enabling, so the effect on the checkboxes is kinda reversed.

          (This applies to the entry "Magic Bullets Looks" in the screenshot above, but also to any added Effect and Renderer.)

          1 Reply Last reply Reply Quote 2
          • C
            COLOR-matt
            last edited by

            Thanks so much @m_adam and @Cairyn for your answers!

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