Jump to content

Yalf

Members
  • Content count

    7
  • Donations

    0.00 CAD 
  • Joined

  • Last visited

Community Reputation

0 Neutral

About Yalf

  • Rank
    Peon

Personal Information

  • Name
    Yalf
  1. Hello, I have a problem with my python-nodes in my network when they interact with a node above them. In this particular case I try to decide the parameters of which I want to generate a number and it works in the copy-node, but when I get to the python-node it will do it again, but sometimes it doesn't follow the rules. In houdiniConsole.PNG we can see that the minNr for the randomNumber is 3 but the python-node makes 2 copies (resultFromPythonNode.PNG) while the copy-node works (resultFromCopyNode.PNG). Another weird thing is that if I interact with the copy-node, like change the "total number of copies" to the exact same value it already is, the python-node will not change it and it will work as it should. I think skipping the python node would solve the problem, but I need the python node to change the copy node. How is the best way to solve this?
  2. If-Node in node network

    Nevermind about this! I had some weird otls in my houdini map that messed with the python node, that part works now, thanks!
  3. If-Node in node network

    I'm not sure I understand the example. How can the python node influence the switch node above it? And is the python node supposed to send an int to the switch node? If so, how do I send a variable from the python node to the switch node? This part is a bit blurry too. what is "set dressing to disk" and do you mean I just load another scene with object with the loading path? How is tat achived?
  4. If-Node in node network

    Hello, I was wondering if there is a way to to randomize which way Houdini "walks" in a node network? In the attached picture you can see what I try to accomplish. The python node code: import random randomNr = random.randint(0, 1) print randomNr I want to use this random number to either go to the antenna node and create an antenna for the house OR go to the satellite node and create a satellite on the house. Is this possible in Houdini? Thanks in advance for the help!
  5. Changing parameters from a python script

    Oh right, that sounds great! Thanks so much for all the help!
  6. Changing parameters from a python script

    Thank you, this works great! If I could just bother you with one more question that would be even better! How do I re-initialize a python node? If I want this random number to change every time I click the python node? If I change something in the script it will re-initialize, but that is a bit tedious. Is there a better way?
  7. Hello, I am new to Houdini. I am creating a building generation tool. I want to randomize parameters of my "controller", which is just a null node with parameters, that control the buildings length, height, number of windows etc. I want to randomize these parameters with a python script last of all nodes in the network. This is how I try to do it, but it doesn't work and I don't understand the error. nrOfWindows = `chs("../controller/nrOfVertWin")` print nrOfWindows nrOfWindows = nrOfWindows + 1 print nrOfWindows `chs("../controller/nrOfVertWin")` = nrOfWindows Any help is appreciated, thanks!
×