viewport size acess using python

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

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.

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=""; 	} 	} 	

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!

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.

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 ?

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++.

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