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

    View Settings

    Scheduled Pinned Locked Moved PYTHON Development
    5 Posts 0 Posters 362 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 18/07/2014 at 06:59, xxxxxxxx wrote:

      Hello!
      I'm trying to write a script which can change some view settings automatically. 
      What I need: I need to change projection settings to "Front view" and make it "used as render view".

      I was able to make the first part work:
      data = doc.GetActiveBaseDraw()
      data[c4d.BASEDRAW_DATA_PROJECTION] = 4

      But I've got no idea how to make the second part work. Please Help ME! 😃

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

        On 18/07/2014 at 07:43, xxxxxxxx wrote:

        You could use a call Command.

        c4d.CallCommand(13931) # Use as Render View
        
        1 Reply Last reply Reply Quote 0
        • H Offline
          Helper
          last edited by

          On 18/07/2014 at 07:51, xxxxxxxx wrote:

          Thank you! I think it will work. 
          But I've got one more queation: is there a list of all command IDs?

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

            On 18/07/2014 at 08:20, xxxxxxxx wrote:

            Shift + F12

            Then click on an entry and you see the command id below

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

              On 18/07/2014 at 08:25, xxxxxxxx wrote:

              Thank you guys!

              You've sorted my problem out! 🙂

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