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

    How to know if a render pass is enabled

    Scheduled Pinned Locked Moved PYTHON Development
    4 Posts 0 Posters 379 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 13/03/2013 at 10:23, xxxxxxxx wrote:

      Hi

      I am able to get the list of passes via GetFirstMultipass().
      And I can request the description name, but I was not able to get the "checked" status of the pass.
      Any hints?
      Thanks

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

        On 13/03/2013 at 11:11, xxxxxxxx wrote:

        Is this what you want?

          
        import c4d  
        def main() :  
          rd = doc.GetActiveRenderData()           #gets the render settings  
          rd[c4d.RDATA_MULTIPASS_ENABLE]= True     #Enables the mp option  
          rd.Message(c4d.MSG_UPDATE)               #Tell c4d you changed it  
             
          state = rd[c4d.RDATA_MULTIPASS_ENABLE]   #Gets the mp on/off state      
          print state  
            
          c4d.EventAdd()  
          
        if __name__=='__main__':  
          main()
        

        -ScottA

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

          On 13/03/2013 at 12:01, xxxxxxxx wrote:

          the videopost state is implemented with the BaseList2d bits.

          edit something like this :

          state = myVideoPostNode.GetBit(c4d.BIT_VPDISABLED)

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

            On 13/03/2013 at 13:28, xxxxxxxx wrote:

            Thanks, I will try the getBit state.

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