Setting the camera bounds by script

I want to set the camera by specific dimensions of the view (for example by a rectangle in Rhino/Grasshopper and not by pixel dimensions

How to do this?

1 Like
The first few displayed might be what you are looking for?
Maybe try them out, or is there a list you have tried before?

Those solutions did not work and I have tried them, the problem was with setting constant scale. However I have found a VB script that solves this issue by zooming the view to the bounds of an object that is created just before zooming

I guess scripting would be the way to go,
but I’m pretty sure the values would have to be based on some trigonometry calculation.
I’m not familiar enough with the camera settings to be able to set it, sorry.

Yes, script worked for me :slight_smile: