Give color according to branch

You can edit the clusters to see how they work or just use them, as I do all the time.

ColorB assigns colors by branch (as you want for this thread), ColorJ assigns colors to each list item where each branch is considered a separate list. The optional ‘Jitter’ input (0 to 1) makes it easier to see adjacent geometry that have similar colors. The ‘Alpha’ input (also 0 to 1) makes the colors transparent, so less harsh.

The code is actually here:

2 Likes