Line instances - color along length

Is there a way to get my instanced lines to have a gradient along their length?
is there an attribute like uv i can use somehow?

Hi @papsphilip,

You could assign pointcolor to your line before instancing it - I did this with a Point SOP setting the rgb to 1 and the alpha to an expression: me.inputPoint.index/me.inputs[0].numPoints - now when instancing add a color to each instance (Color settings on Instance 2 Page) and select “Multiply” for the Color Mode parameter.

cheers
Markus

thank you! that worked