Using Branches as the Parameter in Gradient Component

Hi All,

I’m trying to export curves that are grouped by branch in Grasshopper. In automatically create the layers using LunchBox components create layers component I want to auto assign colours to these layers using gradient.

I do always struggle to understand gradient in a normal scenario but in this scenario, I want to use branches as the parameter. Gradient takes a double value so I really don’t know how to associate branch levels with the gradient component.

I used tree statistics to get the branch numbers, but I’m not too sure what to do next and chatGPT just makes up stuff.

Thank you

Scott

I got it working using flatten and then using the indices.

I just need to find an alternative to the Lunchbox Create Layers component that allows updates. And then I need to figure out how to get the curves to the layer. I’m sure I’ll get there.

Using Rhino 8?

yes.

Look at the Rhino tab in grasshopper. These are the components to reference geometry or attributes and bake

2 Likes
1 Like

This is great, I actually had only previously skimmed the surface of these tools. Thanks @martinsiegrist and @11159

2 Likes