move point along its normal

   4301   3   2
User Avatar
Member
479 posts
Joined: 12月 2009
Offline
I imported a group of points by reading a csv file, all the points are in the same position (0,0,0) but with different normals.

However, I couldn't seem to be able to move each point along its normal using hscript …(see image below)

the point(“../tableimport1”, $PT, “N”, 0) will only give me the x normal of the first point, rather than returning the x vector for each point …

The $NX, $NY, $NZ also didn't work in the transform node …

I must have missed sth simple but critical here …

advices are appreciated!

- Ji

Attachments:
Screen Shot 2012-10-21 at 6.47.14 PM.png (110.2 KB)
Screen Shot 2012-10-21 at 6.48.05 PM.png (105.7 KB)
Screen Shot 2012-10-21 at 6.50.33 PM.png (111.7 KB)

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

Have you tried the Peak SOP?
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 | animatrix2k7.gumroad.com
User Avatar
スタッフ
2540 posts
Joined: 7月 2005
Offline
Yep the Peak SOP with the Recompute Point Normals toggle off is the most straight forward and probably the fastest.

Old School approach would be to use the Point SOP.
Position vector parm:
$TX + $NX
$TY + $NY
$TZ + $NZ

For completeness, you can use a VOP SOP and use an Add VOP to add P to N from the Global Inputs and wire to the P output.

I am sure there are a billion other ways to do this…
There's at least one school like the old school!
User Avatar
Member
479 posts
Joined: 12月 2009
Offline
thank you very much, pusat and jeff!

will try accordingly.

- Ji
  • Quick Links