Scale instances along a spline

Here’s what I have so far. I’m a total freshy when it comes to geo nodes, so followed a tutorial that had flowers scattered on top-facing geometry but I wanted thorns which get smaller near the end of the spline.
In my example using the position nodes, you get some size change but it’s really not ideal. Would be good to use a curve to control the size of the thorns.
Spent hours on this, any help appreciated.
(spline parameter into float curve doens’t work)

Here’s the file: https://www.filemail.com/d/cxobovsjsihulol

Capture your attribute from the spline like this maybe.

Hope that helps the frustration!

Thanks for the help!
I don’t think this is going to work in a quick fix. I’ve tried so many things for hours now. I don’t know where to get the capture data from as the main shape consists of so many nodes. It’s like one set of nodes for the main spline, then a bunch of nodes for the extra splines that wrap around the main one. I’ve tried plugging a few in to the capture attribute but all the map range does is make the thorns uniformly bigger/smaller.

If you want someone to help you more, then I suggest you upload/share the file.

The idea is you capture the attribute right at after making the curve, there are other methods but without seeing what you have done, nobody can guess.

Hint

One of those ‘other’ methods would be to make use of shortest path/edge path to selection to make a path out of the mesh version of the branch, convert to a curve and use that as factor to scale the thorns.

Hope that helps.

Hi, I updated the original post with a link a blend file (again, note that it’s 4.3).
What I have found is that I may actually need to take the scale of the thorns from the overall size/diameter (not exactly sure which) of the branch at the given point where the thorn sits.

To clarify/simplify - the branch is comprised of multiple generated splines with varying widths and without making the thorns appropriately sized, you can end up with a huge thorn on a thin branch:

Just a heads up: the example file is a few splines. To really see what it’s doing, best isolate one spline and draw it out in a simple line. Thanks!

brambles- SCALE FROM FACTOR .blend (279.2 KB)

Ok, heres a method.

hope that helps.

Thanks so much for going to the trouble. I can’t use it though. Firstly, I’m using 4.3 and secondly, this breaks my original set up and just to reiterate, I know NOTHING about geometry nodes, so I can’t just adapt/incorporate this method into mine.
But again, appreciate the effort. I think I’ll just have to abandon this project as I’m in over my head.