See if this gets you any closer:
- Spline Mesh Component creation & Dynamic Material Instance assignment at the top
- updating parameters of an array of Dynamic Material Instances at the bottom
The material:
And the result:
To summarise, each SMC has its own material instance and we update how its gradient is distributed over the length of that particular spline segment. The offset is optional, depending on how the end result is supposed to behave.
Hope it helps a little.