Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware 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
    1. Maxon Developers Forum
    2. pKrime
    3. Best
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 3
    • Best 1
    • Controversial 0
    • Groups 0

    Best posts made by pKrime

    • RE: Cinema 4D R20 and Octane 3.08.5 attribute issue

      Hi AndreAnjos,

      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]
      

      the error

      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,
      Paolo

      posted in Cinema 4D SDK
      pKrimeP
      pKrime