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

    setting depth for multipass renderings

    PYTHON Development
    0
    3
    564
    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
      Helper
      last edited by

      THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

      On 17/03/2011 at 09:56, xxxxxxxx wrote:

      Hi,

      How can I switch on DEPTH for multipass-renderings in a rendersetting?

      I manage to switch on multipass itself, but cannot find the id for switching on any of the multipass-options. drag and drop to the konsole only results in the message "Das Objekt 'Tiefe' /Zmultipass' wurde hinzugefügt".

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

        THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

        On 17/03/2011 at 10:14, xxxxxxxx wrote:

        Here is a small piece of code to create a depth multipass object:

        import c4d
        from c4d import gui
        """
        Create a depth object in
        the multipass object list
        """
          
          
        def main() :
            rd=doc.GetActiveRenderData() #get the current renderdata
            vdepth=c4d.BaseList2D(c4d.Zmultipass) #create a multipass object
            vdepth.GetDataInstance()[c4d.MULTIPASSOBJECT_TYPE]=c4d.VPBUFFER_DEPTH #set type to 'Depth'
            rd.InsertMultipass(vdepth) #insert into Multipass list
            c4d.EventAdd() #send global event
          
        if __name__=='__main__':
            main()
        

        I will add this example to the documentation.

        You can also check out this link:
        https://developers.maxon.net/forum/topic/5269/5268_py-change-gi-settings

        Also take a look at the c4d_videopostdata.h to get a list of all videopost IDs.

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

          THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

          On 21/03/2011 at 08:33, xxxxxxxx wrote:

          hi sebastian,

          excellent work, thank you 🙂

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