venator87

I'm trying to do a method in Houdini to direct the point/vertex normals along a geometry (especially a curve) using the Point node. I plan on creating a velocity field out of that geo using a pointCloudField. The basic workflow is: the 1st input is just the geometry itself. The 2nd input is also the geometry, but it has its $ID (or point number) offset by +1. Then in each respective vector use $TX - $TX2 etc. (I included a hip file of it below).

I've tried to do this with soup using a code like below in the Point node, but the main problem is trying to figure out how to offset the $ID of the 2nd input by 1.

 

$X= $TX + ($TX2 + ($ID + 1));

$Y= $TY + ($TY2 + ($ID + 1));

$Z= $TZ + ($TZ2 + ($ID + 1));

 Is there another way to offset the $ID/point ID number or just redirect the normals in general?

P.S. Is there any way in Maya where you can modify and direct the vertex normals of a curve, like in Houdini? I've come across a number of threads, but with no luck at all :/

pshipkov
I am well aware of that workflow, but you are doing it the hard way.
curveShape->pointAttributeToArray
turn on the "point tangent" option and then connect the outTangentPP to other nodes or getAttr data from there.

Maya's curves don't have built-in notion of normals and tangents. But SOuP nodes fill in the gap.
Reply 0 0
venator87
Thank you! I was able to test it out on both a poly Torus and a curve.
Reply 0 0
Reply