Neon sign - color ramp for colors on curve
Hi all,
Hoping to get some help on curves, nodes and attributes.
I’m trying to make a neon sign with a spline, but I’m getting stuck.
What I did so far:
I’ve made a sign by repeatedly extruding a single vertex, then converting the result to a curve (one object). I then beveled the curve in order to give it thickness. I then made a material where a color ramp gives color to the various parts of the curve, or that at least is the intention.
What I thought would work:
I thought and still think it should be possible to store the spline’s factor into a named attribute and use that attribute in the shader editor to drive the fac of the color ramp.
So here’s my geo node group:
And the shader nodes:
As you can see, the whole curve is now blue, while I want only the first bit to be blue, then switch to red for the glass and finally yellow for the lemon slice (positions of the sliders on the ramp will be decided one the idea works).
Obviously I’m doing something wrong, I’m just not sure how all this is supposed to work. Any help is appreciated! I attached a light version of the blend file, made in V4.5.2.
neon.blend