Pushing Points Along Curve

   851   2   0
User Avatar
Member
128 posts
Joined: 9月 2018
Offline
So basically I just want to push the stairs in the direction of the curve. Attached is the example project.

Attachments:
Stairs_02_Forum.PNG (681.9 KB)
Stairs_01_Forum.PNG (532.9 KB)
Push Objects Along Curve.hiplc (159.0 KB)

User Avatar
Member
4521 posts
Joined: 2月 2012
Offline
Hi,

You can compute the tangent using the Resample SOP without resampling or the Orientation Along Curve SOP and then use this VEX code in a Point Wrangle:

@P += v@tangentu * ch("amount");
Senior FX TD @ Industrial Light & Magic
Get to the NEXT level in Houdini & VEX with Pragmatic VEX! [www.pragmatic-vfx.com]

youtube.com/@pragmaticvfx | patreon.com/animatrix | pragmaticvfx.gumroad.com
User Avatar
Member
128 posts
Joined: 9月 2018
Offline
Gotcha! I totally did that with the Orientation Along Curve SOP just out of order - In my original case I was trying to do this after the Assemble node with packed primitives and using a @P = point(1, "tangentu", @ptnum); rather than right after the resample node! Totally works! Thank you so much!
Edited by VGriffith - 2022年9月14日 16:51:36
  • Quick Links