hoodini Posted October 18, 2015 Share Posted October 18, 2015 I made sphere geo and a color node in a geometry. I want to connect that color node to sphere but from python shell . Quote Link to comment Share on other sites More sharing options...
graham Posted October 18, 2015 Share Posted October 18, 2015 Look at hou.Node.setNextInput or hou.Node.setInput. You can also use hou.Node.createOutputNode to directly create your Color node from the Sphere node. Quote Link to comment Share on other sites More sharing options...
eistan Posted April 30, 2019 Share Posted April 30, 2019 better to ask it here, i have similar question but a bit complex, how to create node between connection? is there a python command for it or i should create a tricky bunch of lines for this? Quote Link to comment Share on other sites More sharing options...
graham Posted April 30, 2019 Share Posted April 30, 2019 The most simple thing to do would be the following: hou.node('/obj/geo1/merge2').setInput(1, hou.node('/obj/geo1/transform4')) If you wanted things to be a bit less hard coded/flexible you could also use hou.node('/obj/geo1/merge2').inputConnections() to get a list of connections and then figure out which one is the connection to tube1 and then use that to figure out the input index (1). Quote Link to comment Share on other sites More sharing options...
eistan Posted May 3, 2019 Share Posted May 3, 2019 Thanks man! it works perfect! 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.