Offsetting Animation in VEX

   3645   1   1
User Avatar
Member
1 posts
Joined: Feb. 2017
Offline
Hello Houdini Community,

First post here, I have appreciated all the help I have gotten from this forum while learning Houdini. I am easing my way into VEX and am running into a wall with this seemingly simple task. I am using curves to create Sweeps, I then use a Carve to animate the sweeps based on frame range. My trouble is that I would like to have each Carve animate as follows:

1. Each Carve “Second V” pick a random frame between 1 - 40 to start
2. “Second V” Animate from 0 - 1 over a period of time (Random time length from 10 - 50 frames)
3. Have First V follow behind

In the example attached I have set up a partial scene. Ideally, this method above would be applied to thousands of strokes with varying lengths! Any VEX help would helpful - really trying to get through this learning curve!

-Patrick

Attachments:
sweep_vex2.hiplc (199.2 KB)

User Avatar
Member
2659 posts
Joined: June 2008
Offline
If you think of your lines as hair, you can use one of the groom nodes to randomly set the length of each line. This will give you a different travel time for each carve.


Try using the GuideProcess (set length) node.
Edited by Enivob - Nov. 2, 2020 09:50:05

Attachments:
rnd_hair.gif (202.7 KB)
ap_sweep_vex2.hiplc (392.2 KB)
Untitled-1.jpg (80.3 KB)

Using Houdini Indie 20.5
Windows 11 64GB Ryzen 16 core.
nVidia 3060RTX 12BG RAM.
  • Quick Links