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
4301 3 2- oat
- Member
- 479 posts
- Joined: 12月 2009
- Offline
- animatrix_
- Member
- 4512 posts
- Joined: 2月 2012
- Offline
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]
youtube.com/@pragmaticvfx | patreon.com/animatrix | animatrix2k7.gumroad.com
Get to the NEXT level in Houdini & VEX with Pragmatic VEX! [www.pragmatic-vfx.com]
youtube.com/@pragmaticvfx | patreon.com/animatrix | animatrix2k7.gumroad.com
- old_school
- スタッフ
- 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…
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
- Offline
-
- Quick Links