Scripting: Setting 2D Pan and Zoom via Python?

   2438   2   2
User Avatar
Member
250 posts
Joined: Oct. 2014
Offline
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?
- Tim Crowson
Technical/CG Supervisor
User Avatar
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] )
More code, less clicks.
User Avatar
Member
41 posts
Joined: Dec. 2019
Offline
I have same question why add zoom navigate like max maya very quickly,I get speed of movement zoom of houdiniA lite bit slowly,Or need Add setting dolly scale.
  • Quick Links