Gradient surface panel in one(either U or V) direction

I find this definition online about gradient surface panel, but it treats each surface as one list, the gradient is in direction of 1 (refers to image below.) , so what if I only want the gradient in either U or V direction as 2 ( (refers to image below.) )

Q_ how to control surface panel gradient in one direction.gh (8.8 KB)

You would be able to make a data tree over your flat list using Partition List along with Flip Matrix to achieve the desired gradient effect.


Q_ how to control surface panel gradient in one direction_re.gh (10.8 KB)

1 Like

Thank Kim for the quick response, can you explain a little more about how did you create this Value list on at the filter gate. I couldn’t figure out to replicate it.
image

Params -->Input–>Value List (You can double click the param and edit the contents + RMB to select choosing option)

This is so helpful, Thanks so much