Jump to content
Sign in to follow this  
garf

hou.pasteNodesFromClipboard()

Recommended Posts

Anyone know how houdini decides where to paste these in the network view? They often end up pasted miles away from the working area.....

Share this post


Link to post
Share on other sites

The network editor has a local coordinate system (X and Y locations). My guess is that by default the nodes get pasted at (0, 0). If the pasted nodes are going to be wired into existing setups, you can always try hooking up the inputs and using Node.moveToGoodPosition() or Node.layoutChildren() on the pasted nodes. Alternatively, you can query the location of one of the existing nodes (probably the last node in the branch) and use hou.moveNodesTo() to move them close to that location.

Share this post


Link to post
Share on other sites

I'm not convinced they are pasted to 0,0 ideally I'd like to lookup where in the coordinate system the network viewer is currently showing and just bung them somewhere in there. I'm liking the moveNodesTo() idea though - I might give that a go

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  

×