Baking geometry by colours for material editing

Hi there!

I’m having trouble figuring out how to bake the colours from the script onto different layers so I can then edit materials in rhino. Thanks!

Brick wall gradient working file.3dm (659.7 KB)

Brick wall gradeint.gh (64.8 KB)

try eleFront?

https://www.food4rhino.com/en/app/elefront

Thank you for your reply!

I’ve downloaded the elefront plug-in but am having trouble with figuring out which components connect where, the bake component is showing as red

Brick Wall Gradient_With Elefront.gh (69.7 KB)

There are a couple things going on here:

  1. You can assign a color to objects in a few different ways:
  • Assign the color to the layer, and have the object show the color of its layer (default)
  • Use the color of the material that has been applied
  • Assign a color to an object directly
  • Use the “parent” color (this generally applies to blocks)

You choose which of these modes, using the Color Source. To achieve what you are after, you want to set the Color Source to By Object (option 3 above), and then provide the color itself into the Object Colour.

If you want to do this in eleFront, you do that here:

  1. When looking at the Bake Objects component you’ll want to make sure the tree of your Attributes matches the tree of your geometry (this should be hinted at in the red error message)

Some more info:
https://elefront.via.inc/docs/eleFront%20Primer/Attributes
https://elefront.via.inc/docs/eleFront%20Primer/Bake#bake-with-attributes