Jump to content

Pane Navigation?


LaidlawFX

Recommended Posts

The simplest way would be to just set your shopnet as the current node in the scene. Any unpinned tabs will then automatically follow to that selection.

shop = hou.node("pathtomyshop")
shop.setCurrent(True, True)

Alternatively if you have panes that are locked, or want to set specific ones or the current network editor you could get a little more fancy and do something like this:

desk = hou.ui.curDesktop()
for pane in desk.paneTabs():
    if isinstance(pane, hou.NetworkEditor) and pane.isCurrentTab():
        pane.setCurrentNode(shop)
        break

Edited by graham
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...