I want to determine the position of the x axis based on the Bezier spline tangent i have drawn.
the values in the upper corner are the x position of the spline tangent or point… and if i bring the exact same values over the mesh circle fits perfectly to close the gap…
Is there a way to automatically let it calculate… for when i draw a Bezier spline again it will calculates the position of it.
for as far i know in my head 0 is the center position so it needs to calculate from 0 to the spline position right ?
Not sure I got what you mean, but there’s a curve handle positions node that you can pipe into a separate XYZ node and retrieve the x position this way
i did try that but the problem is, i need to get the attributes of the geometry input because that’s the spline i have drawn, The mesh circle would need to have a size based of the position of that spline
Sure, capture/store a float attribute on the point domain with the x position of every point handle, use a field at index node on the resulting attribute to target the last point’s data (index=-1) and pipe it into your circle radius.
Field at index extracts a value from an attribute at a specific element (point, edge, face…). You specify what’s the index of the element you want to extract it from and it returns it to you as output. If you’re using a spline as a sort of lathe profile, and you want to know the x position of a point, you use field at index on that spline, specify the point index (first point in spline=0) and plug in the attribute you want to look up, in your case using a position node separated into XYZ. The output value of field at index should be the position of your first point.