I am scripting some viewport settings in the Scene View, and need to manipulate 2D Pan and Zoom. I can correctly get the viewport into the view state (using pane.enterViewState) easily enough, but I am not having any luck finding python methods for controlling the options for said “View State”, namely, the “2D Pan and Zoom” mode…
Any pointers?
Scripting: Setting 2D Pan and Zoom via Python?
2438 2 2-
- Tim Crowson
- Member
- 250 posts
- Joined: Oct. 2014
- Offline
-
- Jonathan de Blok
- Member
- 294 posts
- Joined: July 2013
- Offline
https://bitbucket.org/jcdeblok/jdb_houdinitoolkit/src/master/python_panels/Navigator.pypanel [bitbucket.org]
Check the source of proNavigator, it does exactly that for both camera and non camera views: (video here: https://jdbgraphics.nl/script/pronavigator-houdini/ [jdbgraphics.nl] )
Check the source of proNavigator, it does exactly that for both camera and non camera views: (video here: https://jdbgraphics.nl/script/pronavigator-houdini/ [jdbgraphics.nl] )
More code, less clicks.
-
- anon_user_35845555
- Member
- 41 posts
- Joined: Dec. 2019
- Offline
-
- Quick Links

