Is it possible to reference camera points and/or the viewport rectangle in Grasshopper?
I can manually draw the viewport rectangle in Rhino easily, and Make2d can generate it, but it would be nice to be able to use a boolean toggle in GH to produce that viewport outline in 3d space (obviously I don’t want it to be recomputed constantly).
That’s true, but that only gives me the screen resolution of each viewport rectangle.
I’m trying to draw the actual rectangle in model space; manually I would do this by drawing a 3point rectangle connecting the camera target point to the other two camera points at the top center and upper right, and then scaling the resulting rectangle by two.
This would be easy to do if I could reference the camera points in GH, which seems like it should be possible, but I haven’t seen a way to do it.
If the perspective camera is toggled to be visible in other viewports, the camera’s control points seem to be referred to as camera points (see screenshot below).
The polyline drawn by your Python component is exactly (exactly!) what I’m looking to do. Thank you for your help.