How to offset points randomly along a curve in Geonode?

Hello everyone! :slight_smile: what a nice website
I’m wondering how we can randomly offset points we scattered along a curve

(for example with the curve to point node)
image

I want to create some sort of slider that randomly offset my scattered points following the curve (offsetting them backward or forward along the curve), I don’t understand how to do that.

It’s even more tricky than I think because I want the tangent/normal/radius attribute of the points to still be accurate to the curve even after the offset…

Does anyone smart know the solution :slight_smile:
Thanks Guys

Hi All Can a geometry node expect please help me? :slight_smile:

I want to achieve something like that, move the points in following the curve, behind or forward, at a random distance (blue arrow)

How can I achieve that?

I think that even if I manage to offset the points along the curve, the attributes related to the curve won’t be accurate anymore :frowning:

Hey,

You can use setup like this:

For the attributes from curve you can get them from Sample Curve node (value)

5 Likes

A question, what does the resample node do in evaluated mode and why did you put it right after object info?

Evaluated just converts in this case Bezier curve to regular poly curve.
Its just with evaluated you will get more even results that won’t depend on Bezier curve handles.

2 Likes

Is there not a suitably named node that does this instead of relying on an undocumented (because who reads the manual) side effect?

the set spline type node maybe?

That’s interesting, I thought the curve to points node in count mode already created the points equidistantly

The result is different, since setting spline type won’t change the number of points.

Resampling in Evaluated mode is like converting the geometry created by a spline into polyspline(?) Taking into account the resolution and all.
The points of such spline are not “equidistant”, but more numerous (in a more optimal way than with Count Mode), and it makes some operations on such spline more… precise?

1 Like

I still say it’s all “eye of newt” -ish.

Woah, thank you so much for that help guys :slight_smile:

1 Like