LaidlawFX Posted April 30, 2011 Share Posted April 30, 2011 Has any anyone created a button that can take a user to a specific pane, by changing the current one they are in? I want a button that can take my texture artist to a shopnet from the object network, who doesn't "know" houdini. Quote Link to comment Share on other sites More sharing options...
graham Posted April 30, 2011 Share Posted April 30, 2011 (edited) 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 April 30, 2011 by graham Quote Link to comment Share on other sites More sharing options...
LaidlawFX Posted April 30, 2011 Author Share Posted April 30, 2011 Cool Thanks a lot man, can't wait to put it to use on monday. Quote Link to comment Share on other sites More sharing options...
LaidlawFX Posted May 2, 2011 Author Share Posted May 2, 2011 Works great. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.