The issue with that script is that it didn’t color the geometries as one element. If i use explode brep and list the surfaces, it only works partially, by coloring them all as one color. My main issue is trying to understand how to list all of the highlighted geometries and assign to every one of them one color, maybe coming from some sort of color series script.
It’s like for every vertical element, grasshopper would just fill one, goes to the next vertical element and then shifts values of the previous color by a certain number (if we use RGB for example).
I don’t really see where is the problem in doing what you want. It could be useful to have more details and a script with the list of objetcs you want to color
Something like that
I have n objects I want to put n differents colors
I have n objects i want to color with m colours and i dont want 2 same asjacent colours
Other questions
Colors from a palette a gradiant … ?
I am sure we could find a solution
My ncolor deconstruct a brep just to have a topology. In your case the topology is just pile n is linked to n-1 and n+1
So here an example,
so let say I have Brep, but it could be whatever object you want. Objects are ordered on a circle, they have a number 0, 1 … to 49. Object 0 is connected to 49 and 1
It works great! i would like to thank you again for sharing your explanation. I’m trying to take this one step further to randomly color one face of every rectangle. Deconstructing brep then defining the faces as an item list doesn’t seem to do the trick. Maybe its a matter of volume (i.e. depth) of the object or perhaps it’s something else.
It is just a matter of topology, my tool just work with integers. So you number all faces with an unique integer then you do the topology. It is up to you to decide which object is related to others objects
See on green panel
Branch {0} relate to the object n° 0 related to object 1 and 49
Branch {1} relate to the object n° 1 related to object 0 and 2
…
I was trying to assign the surfaces but I don’t know how. I am not an expert in Grasshopper. My surfaces remain as N=1 after i desconstruct brep to list the surfaces i need to be colored. In the end they end up as one color which is frustrating me. Any tips on how to assign unique numbers to series of surfaces?
Many errors => use panel to follow the data
List length count the number in a list, if data is grafted (in datatree) there is just one element in each branch.