Trouble pushing curve points out (Like Peak SOP)

   2656   2   1
User Avatar
Member
517 posts
Joined: Dec. 2013
Offline
Hi there,

I'm stuck trying to push the points of a curve along the axis I need. I can get the normals to run along the the length of a curve but not to point outwards (along the x axis of the copies).

This is what I have at the moment -



But I'd really like the points to push out, almost as though the normal axis was rotated 90 degrees.
Can anyone help me with this one?

Thanks,
Pete

Here's my file -
Edited by peteski - Aug. 23, 2016 03:38:37
User Avatar
Member
166 posts
Joined: March 2014
Offline
What I usually do is: Use a Polyframe SOP node to add the N attribute and have it point along the length of the curve (so use the tangent checkbox in the Polyframe). You already seem to have this.

After that, add this Attribute Wrangle:
v@N = cross(v@N, set(0, 1, 0));

You can also do it in a VOP network, it's really just a cross product between the normal you already have and a vector that's pointing straight up.

P.S.: I have not looked at your file, so I hope my explanation applies to your problem.
Edited by Digipiction - Aug. 23, 2016 06:04:45
User Avatar
Member
517 posts
Joined: Dec. 2013
Offline
Awesome! Thanks that's perfect!
  • Quick Links