Coloring multiple pipe with gradient

Hello I’m just student
Lately I solve some problem about coloring pipe
However when I adjust same algorithm to multiple pipeline, that coloring algorithm didn’t work.
I did try to solve this problem all day…
I uploaded algorithm file.
Bunch on top is working algorithm(coloring pipe with gradient)
The bundle below is problem.
Forum Question_Coloring Multiple Pipe With Gradient.gh (29.7 KB)


Hi,

internalize

Internalize Curve Data

Cheers,
BVR

Forum Question_Coloring Multiple Pipe With Gradient2.gh (26.4 KB)
Sorry about my mistake


Are you looking for something like this?

Umm… direction of gradient must coincide with each pipe’s.
But in the image above, it seems that the gradient coloring of the entire pipe is done in one direction.


Forum Question_Coloring Multiple Pipe With Gradient2_re.gh (29.4 KB)