Hi Im trying to use the native grasshopper components to control the viewport. I want to use a target and camera location point to manipulate the perspective viewport… So far i’m stuck at the query viewports component.
Does anyone have some advice?
If you want to change viewports, you could use the rhino commands in a GhPython block. Or if you want to install yet another plug-in to help you do that you could opt for Flexibility as it has a ChangeViewport component.
Have you tried the native Grasshopper Rhino commands?…it seems like they should be able to something along the same lines, but I simply can’t find a way to make it work.
Perhaps to answer your question more properly in that case, I’m not aware of any native grasshopper function (in Rhino7) that can fulfill your request of adjusting the viewport & taking a screenshot.
Regarding learning the Rhino SDK, can recommend doing so. It really broadens your toolset and can help you improve your overall output.
You can use the Model View component to build a view, but you’ll then have to manually bake it to a named view. Currently, there aren’t any default components to automatically capture those to images.
-wim
I found my easiest path using two Human components… ‘Modify Viewport’ and ‘Save Viewport to File’. It works like a charm (both MAC and PC) so now I just have to find a way to automate the view changes and gab the screenshots (8 views/screenshots).