JJ FX Posted March 29, 2018 Share Posted March 29, 2018 Hi, Trying to get current network editor. So I though that using isPosInside() is the way to go. But does not work properly. Using this code: import hou print "\n" for p in hou.ui.paneTabs(): if p.type().name() = "NetworkEditor": print "Pane " + str(p) + "is: " + str(p.isPosInside(p.cursorPosition())) I get weird stuff. Sometimes I get double True (two active) or just printing out the wrong active network... ? Quote Link to comment Share on other sites More sharing options...
JJ FX Posted March 29, 2018 Author Share Posted March 29, 2018 P.S. Hope there is no typo, cannot paste the code Quote Link to comment Share on other sites More sharing options...
ikoon Posted March 29, 2018 Share Posted March 29, 2018 Hi JJ, Varomix did post this, once. It may help you: def getNetworkType(): # get desktop curdesk = hou.ui.curDesktop() activepane = curdesk.paneTabUnderCursor() return activepane.type() Quote Link to comment Share on other sites More sharing options...
JJ FX Posted March 29, 2018 Author Share Posted March 29, 2018 paneTabUnderCursor() Yesss. Thank you :) 1 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.