Search the Community
Showing results for tags 'socket'.
Found 2 results
Hey, I am working on a HDA that loops over an input mesh and loops over sockets and attaches the corresponding meshes to the sockets, in the next iteration of the loop, it should look at the sockets of the attached mesh and attach the corresponding meshes to it. The idea behind it is to have a gun assembly tool. Unfortunately, it crashes after the second iteration with an out of bounds error. Any idea what it causing the crash or on how to fix it, I guess it has something to do with the mesh sockets, but I can't really pin down the problem. Test_SocketLoop.hdanc
Hey guys, I saw there is a hscript command ‘openport’, but I didn't find example on how to communicate with houdini via python. Here's what I need to do: 1-Open a port, from localHost, within houdini session. 2-From an external python interpreter, execute houdini python commands, using local port. IE: hou.node('/obj').createNode('geo') Here's how I can do this in maya: 1-cmds.commandPort(name='localhost:7555') 2- client = socket.socket(socket.AF_INET, socket.SOCK_STREAM) client.connect(('127.0.0.1', 7555)) c = ‘python(“cmds.polySphere()”);’ client.send(c) Does anyone know if it's possible to this in houdini? Anyone has some examples? Thanks Jonathan