garf Posted May 18, 2017 Share Posted May 18, 2017 Anyone know how houdini decides where to paste these in the network view? They often end up pasted miles away from the working area..... Quote Link to comment Share on other sites More sharing options...
Shalinar Posted May 18, 2017 Share Posted May 18, 2017 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. Quote Link to comment Share on other sites More sharing options...
garf Posted May 23, 2017 Author Share Posted May 23, 2017 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 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.