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

    Getting the size of the screen or window

    Scheduled Pinned Locked Moved SDK Help
    6 Posts 0 Posters 490 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 23/05/2008 at 08:06, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   10.x 
      Platform:      Mac OSX  ; 
      Language(s) :   C.O.F.F.E.E  ;

      ---------
      How can I get the width and height of the screen?
      Or, if that is not possible, how can I get the location and size of the viewport?
      Or, at least, the location and size of the global window where all the Cinema4D layout resides.
      Any way to get any of these, in COFFEE?
      Thank you very much in advance for any reply.

      Rui Batista

      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 23/05/2008 at 11:26, xxxxxxxx wrote:

        Sorry, this is not possible with COFFEE. You only have access to the parameters in the viewport settings (Shift-V).

        bd = doc->GetAciveBaseDraw()
        bd = doc->GetRenderBasedraw()
        bd = doc->GetBaseDraw(index)

        bd#BASEDRAW_DATA_CAMERA
        bd#BASEDRAW_DATA_TITLESAFE
        ...
        etc.

        cheers,
        Matthias

        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 23/05/2008 at 17:25, xxxxxxxx wrote:

          Oh, damn!!! When, oh, when will COFFEE get an upgrade?!? Simple but very needed stuff, like creating tracks and keys or being able to create new objects. And simple stuff like this one: knowing the size of the screen. Thank you for your answer, Matthias. Rui Batista

          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/2008 at 05:48, xxxxxxxx wrote:

            Is it possible to retrieve the viewports height/width using 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 17/06/2008 at 06:45, xxxxxxxx wrote:

              Ah never mind, found it in the documentation under ViewportSelect::Init()...

              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 23/06/2008 at 01:03, xxxxxxxx wrote:

                Use the BaseView's GetFrame() function.

                cheers,
                Matthias

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