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

    Toggling Global Illumination [SOLVED]

    Scheduled Pinned Locked Moved PYTHON Development
    3 Posts 0 Posters 313 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 15/02/2016 at 07:41, xxxxxxxx wrote:

      I am looking for a way to enable/disable GI. Basically the tick in front of "Global illumination" in the render menu.

      Any way to do that in Python?

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

        On 16/02/2016 at 01:36, xxxxxxxx wrote:

        Hello,

        Video posts like GI are stored in the render settings. You can obtain the current render settings from the document with GetActiveRenderData(). The video posts are stored in a list, the first element of that list can be obtained with GetFirstVideoPost(). Now you can loop trough all video posts simply with GetNext().

        To disable the GI video post you have to check the type of the video post. The ID of the GI video post is c4d.VPglobalillumination. The video post is then disabled by setting the bit BIT_VPDISABLED with SetBit().

        Best wishes,
        Sebastian

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

          On 16/02/2016 at 02:25, xxxxxxxx wrote:

          Thanks for the reply. I will try it. Due to keyword "video post" i also found this:
          https://developers.maxon.net/forum/topic/5269/5268_py-change-gi-settings&OB=DESC

          Thank you again!
          Konstantin

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