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

    Set Use As Render View

    Cinema 4D SDK
    python
    2
    3
    672
    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.
    • U
      unti
      last edited by r_gigante

      How can I set or check the 'use as render view' setting in python?
      I couldn't find a bit to set ect. The only thing I can find is the 'CallCommand()' ID which I can't use.

      Right now, I am trying to figure out where this setting is set. I am guessing it might be the document, but there is only an option to GetRenderBaseDraw() but I can't find a function to 'Set' it.

      It would be awesome if you could point me in the direction.
      Thank you!

      1 Reply Last reply Reply Quote 0
      • ManuelM
        Manuel
        last edited by Manuel

        hello,

        For your next threads, please help us keeping things organised and clean.

        • Q&A New Functionality.
        • How to Post Questions especially the tagging part.

        I've added the tags and marked this thread as a question so when you considered it as solved, please change the state 🙂

        There's no function to set the viewport used for rendering.

        Why can't you use CallCommand ? (even if in this case the command is the same what ever the active viewport is)

        you can change it in the BaseContainer of the document. The symbol is not exposed so you have to use the ID itself.

            #DOCUMENT_RVIEW 10001
            bc = doc.GetDataInstance()
            print bc[10001]
            bc[10001] = 1
        

        Cheers,
        Manuel

        MAXON SDK Specialist

        MAXON Registered Developer

        1 Reply Last reply Reply Quote 3
        • U
          unti
          last edited by

          Thank you Manuel, that works perfectly.

          I can use CallCommand() but I don't want to as it will always call c4d.EventAdd() and as I can't specify which bd to set as the renderview. I tend to not use CallCommand() in a plugin as it is only be able to be called in the main thread (which would be fine in this case) and as it seems to 'simulate' user interaction.

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