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
move point along its normal
5377 3 2-
- oat
- Member
- 479 posts
- Joined: 12月 2009
- オフライン
-
- animatrix_
- Member
- 5055 posts
- Joined: 2月 2012
- オフライン
Hi,
Have you tried the Peak SOP?
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] https://lnk.bio/animatrix [lnk.bio]
Get to the NEXT level in Houdini & VEX with Pragmatic VEX! [www.pragmatic-vfx.com] https://lnk.bio/animatrix [lnk.bio]
-
- old_school
- スタッフ
- 2540 posts
- Joined: 7月 2005
- オフライン
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…
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!
-
- oat
- Member
- 479 posts
- Joined: 12月 2009
- オフライン
-
- Quick Links

