Jump to content
Sign in to follow this  
animknight

Network box layout nodes

Recommended Posts

Is there a way I can layout the nodes inside the network box using python ? Any help much appreciated

Cheers

-J

Share this post


Link to post
Share on other sites

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 by WesleyE

Share this post


Link to post
Share on other sites

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.

  • Like 1

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×