animknight Posted May 14, 2013 Share Posted May 14, 2013 Is there a way I can layout the nodes inside the network box using python ? Any help much appreciated Cheers -J Quote Link to comment Share on other sites More sharing options...
WesleyE Posted May 14, 2013 Share Posted May 14, 2013 (edited) If you have the node object where you want to put the networkbox, simply call node.createNetworkBox() To get an existing NetworkBox, call findNetworkBox Edit: wow, i completely misread your post, early morning reply's...... Edited May 14, 2013 by WesleyE Quote Link to comment Share on other sites More sharing options...
br1 Posted May 14, 2013 Share Posted May 14, 2013 I remember looking for this. I think could have a look at layoutChildren in the documentation. http://www.sidefx.com/docs/houdini12.5/hom/hou/Node#layoutChildren If you scroll up on this page, you may find some interesting commands like setPosition, shiftPosition, etc .. Quote Link to comment Share on other sites More sharing options...
WesleyE Posted May 14, 2013 Share Posted May 14, 2013 You won't be able to do this: thisNode = hou.pwd()thisNode.layoutChildren(thisNode.findNetworkBox('netbox1').nodes())[/CODE]What I did, was to delete the networkbox, layout the children and rebuild the netbox an reposition that a bit. 1 Quote Link to comment Share on other sites More sharing options...
animknight Posted May 15, 2013 Author Share Posted May 15, 2013 Thanks guys.. much appreciated 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.