Jump to content
Sign in to follow this  
nicholas_yue

Programmatically layout/home nodes ?

Recommended Posts

Hi,

I am programmatically generating Houdini scene (HIP) files

After creating and connecting nodes, I'd like to perform a layout and home so that when the user open up the scene, it is not one ball of nodes in the center.

Is there a way to do that in Hython calls, what about C++ ?

Cheers

Share this post


Link to post
Share on other sites

There is a method for a node called moveToGoodPosition(). It's available through python, but probably in the HDK as well. You should call it for each new node created. It's like pressing the L-KEY in the network view.

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  

×