Hi,
I am trying to bake the color gradient of the berp to Rhino with different layer based on the color.
Can someone please help.
2022-RT-41_.gh (42.5 KB)
Hi,
I am trying to bake the color gradient of the berp to Rhino with different layer based on the color.
Can someone please help.
Hello
I think you almost had it, you can use the output of the gradients as a color.
I made the change but I 'm not using the same Elefront version as you.
You can bake the color as an object property, or as a Layer property, but if you choose to do that you’ll end up with a lot of different layers. Maybe reduce the number of possible colors by rounding the input parameters ?
Also, I took the liberty of changing the way your hexagons are calculated because the Region Difference components took way too much time for what is needed here.
2022-RT-41_.gh (37.3 KB)
Hi Magicteddy,
Thank you. I am still trying to understand what you have done in lieu of region difference.
is there any way I can bake the Brep with material reflecting the layer colour?
What I did is basically to avoid the region difference by splitting the lists of hexagons instead of subtracting the curves after.
In your file, using SubLists, you ended up with three lists : one containing all groups (ABC), one containing the first (A) and one containing the first two groups (AB).
So to retrieve B and C, you had to do (ABC)-(AB) and (AB)-(A), which is overkill.
I used Split list to directly get A, B and C. SubList would work as well, is you define a Start in the domains instead of 0. That’s just a matter of preference.
Also, to avoid calculating curves and then surfaces again, I used Surface Split to directly split the entire wall in hexagons. By doing so, I had to remove the surface between the hexagons, which happens to be te largest one.
For your last question, I’m not sure to understand what you need exactly in Rhino.
With Elefront you have two options :
Apply the color to the object and bake then in a single Layer “Breps”
Bake several layers and apply the color to the Layer. The objects in it will have color property “By Layer”. The main problem being in that case that you end up with a LOT of layers.
If what you need are Render Materials, you have to load them first in Rhino, and then you can give them as a text in the Material Input. But now you have to create some sort of cast between the color and the material, which may not be easy considering the amount of colors you have.
Thank you so much for explaining this and you have been very helpful! Appreciated.