wolf_cub_one Posted August 12, 2009 Share Posted August 12, 2009 I'm currently stuck. Here's my situation: I have a foreach node and inside the foreach node I add a delete sop. Inside the foreach, there is the each sop, my newly added delete sop, and the 4 subnet indirect input connectors. The each sop is currently connected to the first indirect input connector. Usually, you would use a command like: delete.setFirstInput(each) to connect one node to another. However, what I need is for my delete sop to connect to the second indirect input connector. After searching the docs, I found the hou.SubnetIndirectInput class. However, I can't seem to understand how to use it, and it's probably due to the fact that subnetIndirectInputs has not been implemented yet. Does anyone know any way to connect to these indirect input connectors within a subnet using python? Thanks for any help Quote Link to comment Share on other sites More sharing options...
graham Posted August 12, 2009 Share Posted August 12, 2009 You can get the indirect inputs by calling hou.Node.indirectInputs(). This gives you a tuple of hou.SubNetIndirectInput objects. You can then just index into the tuple for the one you want. inputs = subnet.indirectInputs() delete.setNextInput(inputs[1]) Quote Link to comment Share on other sites More sharing options...
wolf_cub_one Posted August 12, 2009 Author Share Posted August 12, 2009 Graham, Who are you? You must be Batman because you saved me again. Twice this happens where I just missed getting it right and there you are. I'll probably have a few more issues before I become more comfortable with python in Houdini so I hope you don't mind if I ask for a little more help later on. Thanks again Quote Link to comment Share on other sites More sharing options...
graham Posted August 12, 2009 Share Posted August 12, 2009 I'm always happy to help. I'm nobody special, I've just been writing HOM stuff since back before Houdini 9.0 was in alpha. It all just comes with experience 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.