Mikal Posted January 30, 2012 Share Posted January 30, 2012 I'm trying to create a shelf tool that manipulates selected SOP geometry in a scene. I would like to be able to directly reference the path of the currently selected node and thought there might be an easy way to do this - like hou.pwd() from a parameter, or kwargs['node'] in a digital asset. Currently the only way I've found of doing this is by cycling through the children of /obj and testing the isSelected() method. Does anyone know if there's a more direct way of accessing selected nodes? Cheers! M Quote Link to comment Share on other sites More sharing options...
graham Posted January 30, 2012 Share Posted January 30, 2012 (edited) Take a look at hou.selectedNodes(): http://www.sidefx.com/docs/houdini11.1/hom/hou/selectedNodes Also, you could use kwargs["pane"] to get the current interface pane and call currentNode() to get something. It's not exactly the same as hou.selectedNodes(), but it's a different way about going at it. Edited January 30, 2012 by graham 1 Quote Link to comment Share on other sites More sharing options...
Mikal Posted February 2, 2012 Author Share Posted February 2, 2012 Thanks graham, exactly what I was after Take a look at hou.selectedNodes(): http://www.sidefx.com/docs/houdini11.1/hom/hou/selectedNodes Also, you could use kwargs["pane"] to get the current interface pane and call currentNode() to get something. It's not exactly the same as hou.selectedNodes(), but it's a different way about going at it. 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.