Getting the size of the screen or window



  • 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



  • 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



  • 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



  • 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++ ?



  • 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()...



  • 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


Log in to reply