Jump to content
Sign in to follow this  
gemini

Locate the Network Editor Screen Position ( but Not Zoom on it )

Recommended Posts

Hi,

Can the Network Editor View be 'placed' without zoom on a node (home) ? I tried the setCursorPosition but not worked. :(

Any Idea ?

THX!

G

 

Share this post


Link to post
Share on other sites

Am I correct to assume that you want to do something like "Home All" (H - key) ? 

Share this post


Link to post
Share on other sites

Drag your network view pane tab into the python shell.  It will say something like hou.ui.findPaneTab('panetab7')

Something like the following should get you started:

a = hou.ui.findPaneTab('panetab7')
b = hou.NetworkEditor.screenBounds(a)
hou.NetworkEditor.setVisibleBounds(a, b, transition_time=0.0, max_scale=0.0, set_center_when_scale_rejected=False)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×