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:
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.
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)
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
On 17/06/2008 at 05:48, xxxxxxxx wrote:
Is it possible to retrieve the viewports height/width using c++ ?
On 17/06/2008 at 06:45, xxxxxxxx wrote:
Ah never mind, found it in the documentation under ViewportSelect::Init()...
On 23/06/2008 at 01:03, xxxxxxxx wrote:
Use the BaseView's GetFrame() function.