How To Art Direct Point Cloud Motion Using Only VEX

When working on his last project, FrameHaus’ Tobias Steiner needed to create motion with a flock of objects that not only moved along an axis, but also moved or wobbled from side to side. Adding expressions to the copy SOP can work, although it’s not such a great way if you want to direct the shot a bit. VOPS and using some math calculations can work as well, but seems a little complicated. Some more work was needed to be able to art direct point cloud motion effectively.

Tobias found a simple solution using VEX. Using a bit of VEX code, Tobias was able to art direct point cloud motion, and it didn’t require a complex node set up. Next time you are creating motion of a flock of birds, or flying planes, keep this tutorial in mind.

Tobias posts the final VEX code, that has been tweaked with a few things so that there are UI controls created for the user to control:

vector normal = chv(‘normal_axis’);
v@WV = chv(‘wobble_axis’);
@WA = ch(‘wobble_amount’);
@WF = ch(‘wobble_freq’);
@N = normal;
@N.x += @WA * (@WV.x * (sin((@Time * @WF)+ @ptnum)));
@N.y += @WA * (@WV.y * (sin((@Time * @WF)+ @ptnum)));
@N.z += @WA * (@WV.z * (sin((@Time * @WF)+ @ptnum)));
@a= fit01(rand(@ptnum), ch(‘slowest’), ch(‘fastest’));
f@b = ch(‘speed_rate’);
@c = (@a * @b);
@P.x = (@c * @Frame);

Some of the links on lesterbanks are "affiliate links", a link with a special tracking code. This means if you click on an affiliate link and purchase the item, we will receive an affiliate commission. The price of the item is the same whether it is an affiliate link or not. Regardless, we only recommend products or services we believe will add value to our readers. By using the affiliate links, you are helping support our Website, and we genuinely appreciate your support.