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

    viewport size acess using python

    Scheduled Pinned Locked Moved PYTHON Development
    8 Posts 0 Posters 1.2k 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

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

      On 08/06/2011 at 16:13, xxxxxxxx wrote:

      hello everyone! i was wondering if there is a way to access and set the active viewport data such that the viewport ratio always matches the render settings ratio? Mostly, i am just wondering what commands allow you to access view port data and change viewport data. thanks in advance!
      -A

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

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

        On 09/06/2011 at 06:41, xxxxxxxx wrote:

        I don't understand what you want to do.
        Maybe you want to take a look into the BaseView class in the SDK.

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

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

          On 13/06/2011 at 01:57, xxxxxxxx wrote:

          ok, so basically, i was wondering how to set the editor's viewport size to match the render settings size. if was going to render out a 960x540 image, that has an aspect ratio of 1.778. i want to keep the editor's view port at that same ratio perhaps through the use of a script or button. thanks for the input!

           	function slideDown() { 	var dlt = document.getElementById("dllist"); 	dlt.setAttribute("style", "display:none;"); 	} 	function tB() { 	var tl = document.getElementById("linkbox"); 	var dl = document.getElementById("dltext"); 	if (tl.style.display=="none") { 	dl.style.display = "none"; 	tl.style.display = ""; 	} else { 	tl.style.display="none"; 	dl.style.display=""; 	} 	} 	
          
          1 Reply Last reply Reply Quote 0
          • H Offline
            Helper
            last edited by

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

            On 13/06/2011 at 12:37, xxxxxxxx wrote:

            actually i checked out baseView and that was it! thanks so much!

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

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

              On 16/06/2011 at 16:52, xxxxxxxx wrote:

              but unfortunatly, there is no way to modify the editor's viewport size using python. bummer.

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

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

                On 17/06/2011 at 02:24, xxxxxxxx wrote:

                Do you mean with changing the Viewport-Size, to change the Size of the Field in Cinema 4D's Interface where the Editorview is shown ?

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

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

                  On 18/06/2011 at 21:29, xxxxxxxx wrote:

                  I am literally trying to change the size of the active viewport window. So if the render settings are set to HD 1920x1080 for example, I was hoping make a python command to set the viewport's ratio to match the HD render settings, but it looks like it is only possible through COFFEE or C++.

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

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

                    On 19/06/2011 at 00:54, xxxxxxxx wrote:

                    I don't understand WHY you want to do this, but I can tell you that this is not possible. ^^
                    I could also not find a way in C++. Did you found one ?
                    Can't imagine Maxon gives us access to C4Ds Layout..

                    Cheers,
                    Niklas

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