3
$\begingroup$

I started with this:

enter image description here

... And I was able to deform it to the curve with correct rotation like that below - but the points are all in the same position. How do I offset them individually on the curve by the original distances?

enter image description here


PS: The indexes of the points are not in order of X axis position (I don't know if that's important?). It's made of 3 mesh lines, each one corresponds to a place on the repeating pattern. The indexes have this kind of order:

enter image description here


All tutorials, posts I found were using Curve to Points (which are even distances), or complex Curve Deform nodes that deform meshes (works but is overkill for this case). I just wanted to "map" a simple straight offset of points along a curve with the correspondent offset.

Could anybody help me please?

Thanks

$\endgroup$

1 Answer 1

7
$\begingroup$

You can map the $x$ coordinate to the curve factor:

As the OP already figured, the setup requires a slight adjustment if you don't want to "fill" the curve and instead want to maintain the original distances:

$\endgroup$
3
  • 3
    $\begingroup$ I think the OP wants the length instead of the factor. $\endgroup$
    – lemon
    Feb 13 at 10:03
  • $\begingroup$ Hey! Thanks for the help. This one stretches the distances to fit the curve tho. How do I make the distances along the curve the same as the original ones? Edit: Yes @lemon I tried changing the sample curve to length earlier but it didn't work as what's before is done for factor. i don't know what to change. $\endgroup$ Feb 13 at 10:22
  • 2
    $\begingroup$ Oh, I think I got it. I changed it to "length", deleted the Attribute Statistic and Map Range nodes and connected the X value directly to the "length" on the Sample Curve. And to offset it i added an Add math node before connecting the X onto length! $\endgroup$ Feb 13 at 10:29

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .