Search the Community
Showing results for tags 'inputs'.
-
Hey guys, got a very unusual question. I am suffering from a bad habit of using opinputpaths in my dopnet. But I only have 4 inputs to play with. Is there a way to increase those inputs to let's say 8? And also have different colour to those extra 4 inputs? I checked the edit parameter interface of the node but no luck. :/ Cheers, b
-
Hello everyone, im fairly new to houdini so, i might be doing something completely wrong. At the moment stuck at trying to connect 2 nodes through python. Im trying to replace a material with a new one that i create through python. (Original network Image A), the way i do it manually is I just create a MantraShader and drag the output into the suboutput input(Image B), and that works. So, im trying to do the same thing through python. Here is what ive got so far: import hou shaderPath = hou.node("/obj/materials/CarPaint/") OldShader= hou.node("/obj/materials/CarPaint/CarPaint_surface") shaderConnection= hou.node("/obj/materials/CarPaint/suboutput") NewShader = shaderPath.createNode('mantrasurface') NewShader.setName("NewShader") shaderConnection.setInput(1,NewShader) The problem is that im not sure if the setInput is the right way to go, and, i dont fully understand shaders, but when i disconnect the Oldshader from the suboutput, the input turns from pinkish to white, and when I try to connect my new MantraShader, it doesnt work. (Image C) Sooo, im definitely doing something wrong xD. If any of you have an idea of what im doing wrong, or a completely new approach let me know! Cheers!