Tree_BranchStart

   1614   7   0
User Avatar
Member
12 posts
Joined: 7月 2020
Offline
Hello, i'm a newbie with houdini, so i wanted to make a tree with non regular starting branch.
I used a group range with the range filter
Select: 1 // of: 6
but i wanted to make the number 6 random between 4-6.
I tried rand(4, 6) but it's not working

Thanks for the help
User Avatar
Member
555 posts
Joined: 2月 2017
Offline
fit01(rand(ch(“seed”)),4,6)
Edited by vusta - 2020年9月14日 20:12:08

Attachments:
rand.gif (105.2 KB)

User Avatar
Member
12 posts
Joined: 7月 2020
Offline
Hello and thanks vusta that's exactly what i wanted. But i didin't know how to connect Spare Input 0 to the second value of range filter. I think is “seed” but how to link them ?

thanks
User Avatar
Member
555 posts
Joined: 2月 2017
Offline
oh that's easy…after you've created Spare Input, Gear icon>Edit Param Interface at the bottom
change Name to seed, Label to Seed, Type should be float.

Attachments:
1of456.hiplc (80.3 KB)

User Avatar
Member
12 posts
Joined: 7月 2020
Offline
thanks i will try that.
User Avatar
Member
12 posts
Joined: 7月 2020
Offline
sorry but it makes an error
Image Not Found

Attachments:
Houdini_tree_nodes_parameters.JPG (138.9 KB)

User Avatar
Member
12 posts
Joined: 7月 2020
Offline
this

Attachments:
Houdini_tree_nodes.JPG (26.6 KB)

User Avatar
Member
555 posts
Joined: 2月 2017
Offline
this…works

Attachments:
rand.gif (105.2 KB)

  • Quick Links