Changing the length of multiple lines while keeping points

   1951   4   1
User Avatar
Member
18 posts
Joined: Feb. 2022
Offline
Hi all, I'm looking to randomly changing the length of multiple lines whilst keeping the number of points across the whole system the same.

For example, I have 4 lines with 11 points each, I want to randomly change the length of these lines, but keep the overall number of points to 44.

Attachments:
Maintain_points.hiplc (100.7 KB)

User Avatar
Member
2658 posts
Joined: June 2008
Offline
Try dropping down a GuideProcess (Set Length) node and activate Randomize. Adjust the min/max values to chose an average height.
Using Houdini Indie 20.5
Windows 11 64GB Ryzen 16 core.
nVidia 3060RTX 12BG RAM.
User Avatar
Member
18 posts
Joined: Feb. 2022
Offline
Thank you, that did exactly what I asked! However, I've realised I actually asked the wrong question. How can Randomly change the lengths while keeping the overall length of the sum of the lines the same?
User Avatar
Member
2162 posts
Joined: Sept. 2015
Offline
bashorton
Thank you, that did exactly what I asked! However, I've realised I actually asked the wrong question. How can Randomly change the lengths while keeping the overall length of the sum of the lines the same?

I supplied a hip that does this similarly for you in your other post. You just have to make a bit of modification for your current query; It's the same logic.

Attachments:
mass_system_v0.hiplc (154.9 KB)

User Avatar
Member
18 posts
Joined: Feb. 2022
Offline
BabaJ
bashorton
Thank you, that did exactly what I asked! However, I've realised I actually asked the wrong question. How can Randomly change the lengths while keeping the overall length of the sum of the lines the same?

I supplied a hip that does this similarly for you in your other post. You just have to make a bit of modification for your current query; It's the same logic.

Thanks so much! That works really well, I'm going to go through the vex to try and work out how you achieved it.
  • Quick Links