Randomly scaling cubes along y direction, and interpolation

   572   1   0
User Avatar
Member
14 posts
Joined: Feb. 2022
Offline
Hi all,

I'm working on an architectural tool for my studio to generate different building mass options. This means that I'm looking to randomly scale cubes along the y direction while maintaining the overall sum of the total length of the cubes together.

After that, I would like in real-time to linear interpolate between each generated position, so there is a smooth transition between different options.

As someone quite new to VEX, I am struggling to find a way to do this. Any help would be appreciated!

Attachments:
mass_system.hiplc (137.7 KB)

User Avatar
Member
2048 posts
Joined: Sept. 2015
Offline
After that, I would like in real-time to linear interpolate between each generated position, so there is a smooth transition between different options.

I don't know what you mean/want....

but this hip makes sure the random scaled heights totaled together always equals the target height.

Attachments:
mass_system_v0.hiplc (154.9 KB)

  • Quick Links