Aeoll Posted December 8, 2016 Share Posted December 8, 2016 Hi, I'm writing a few shelf tools with hotkey links to allow quick creation of some common nodes (Null (N), Wrangle (W) etc) Here is the simple script if(len(hou.selectedNodes()) > 0): node = hou.selectedNodes()[0] if(node.type().category() == hou.sopNodeTypeCategory()): parent = node.parent() null = parent.createNode("null") null.setNextInput(node) null.moveToGoodPosition(True, False, True, True) null.setSelected(True, True, False) null.setCurrent(True) null.setDisplayFlag(True) Although the new Null is selected and display-flagged correctly, the parameter pane remains on the previously selected node. The outline colour of the null is also yellow rather than orange. Is the a way to fix this? Quote Link to comment Share on other sites More sharing options...
michael Posted December 8, 2016 Share Posted December 8, 2016 your code works for me do you have any pinned panes? Quote Link to comment Share on other sites More sharing options...
Aeoll Posted December 8, 2016 Author Share Posted December 8, 2016 (edited) Ah yes I do. It works with no pinning. Is it possible to get the code to work with this workspace setup - 2 panes pinned to (1) and 2 pinned to (2)? Edited December 9, 2016 by Aeoll Quote Link to comment Share on other sites More sharing options...
michael Posted December 11, 2016 Share Posted December 11, 2016 not sure... pinned panes are designed to prevent them from changing...you may get it to work by finding a pane that isn't pinned... 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.