[EleFront] Color By Layer?

Hi people,

I am currently using Elefront to bake some objects with certain attributes. But I can’t find the way for Elefront to create layers with a specific color, instead it assigns the color to the object.

This is my current setup and result: (You can note the color of every layer is black, that is not what I want)

Elefront_ColorByLayer.gh (10.7 KB)

Elefront has a define layer component.

Don’t forget to check the Pluses, too

2 Likes

Ooooh, the freaking (ZUI)… :sweat_smile::joy:

I think it should have C as default at least. Mine came only with N(Name)

Thank you!

I wish more plugins used this instead of cluttering up inputs with lots of “maybe sometimes useful” parameters.

Hello everyone,

I´m confused with baking objects into model using EleFront. Attached is plain 3dm file with two layers and one material, and a simple GH file that creates a single box, and I want the box to be baked into existing layer, using layer´s setup (color, material, etc…). All attributes are already defined in the 3dm file, and I don´t want to define it again in the script. That´s the way Human plug-in works when baking into layers.

Once I hit Bake, the object appears in the model, but layer color is changed to black, material is changed, all is modified to default values. Once I hit Undo in Rhino, the Grasshopper Solution is undone, box disappears, but layer´s attributes remain modified by the script. That drives me crazy.

Is there a way to bake an object using EleFront into specific layer using “ByLayer” values?

Thanks for info.

Best regards,

Pavel

EleFrontBake.3dm (134.8 KB)
EleFrontBake.gh (3.6 KB)

Hi,
Thanks for raising this issue. I’ve taken a look and it is a bug - it should be as easy as you describe. I will fix it in the next few days. Sorry about that.

2 Likes

Hi Pavel, I’m also confused.

I tried your files and replaced the components with the most recent EleFront 5.0.7-beta and also could not get it to work.

I also added two components from EleFront 4.2.2 and it worked as expected there…

@krahimzadeh thank you. Is there a way you could maybe branch these two posts off into a new topic?

EleFrontBake.gh (5.9 KB)
EleFrontBake.3dm (167.0 KB)

2 Likes

Hello guys,

thank you very much for your time and effort.

Best regards,

Pavel

@Pavel2 @martinsiegrist The issues discussed above should be resolved in the latest version of eleFront uploaded today.

Hi Keyan,

thank you very much for your time. Object layers and colors set ByLayer are working perfectly, as expected. Is it possible that predefined layer materials still get erased when baking objects into layers?

Thank you again,

Pavel

This might be a very dumb question. I am trying to set the Print Colour for each baked object. I can’t get it to work either with direct objects or while defining blocks.

I have eleFront 5.1.2 installed

I’m having similar issues with Elefront (5.1.2) overwriting existing layer colors when baking. Am I doing something wrong here, or is this still a bug?

@Pavel2

It’s certainly possible, though in my testing the Layer maintains its material assignment. Maybe you can share an example.

@Fabio_M
Not at all a dumb question - The component was assigning the plot color, but still defaulting to assigning the plot color by layer. I’ve pushed v 5.1.5 to the package manager, and now it has the Plot Colour Source input available so you can specify by object, by layer, etc.

@Brayton_Orchard
I believe that was a bug. I’ve pushed 5.1.5 to the package manager and it should be fixed.

[Edit: Should be v 5.1.5]

Hello Keyan,

yes, element baking works as expected with existing layers defined, there must have been an error between my keyboard and my chair.

Thank you very much,

Pavel

Thank you so much!

Any chance of updating the install from food4rhino? I need to have both old and new eleFront versions and installing them from there was the only way I could get it to work.

@krahimzadeh On Rhino 7, I’m running Elefront 4.2.2, and I don’t have the problem of existing layers getting their colors changed to black when baking, but my co-workers who are running 4.3 are seeing the issue. Is it possible to get a version of 4.3 on food4rhino with the bug fixed? (Or, alternatively, now that Elefront 5 is out of beta, can it run side-by-side with 4.2.2?)

Hi. That is quite strange. The code for 4.3 is exactly the same as 4.2.2, just with different icons and component names (to help distinguish them from v5), so I don’t know why you would see different behavior. v5 and v 4.3 can be installed side by side. My recommendation is to remove 4.2.2 from your system(s), and then install both 4.3 and the latest version of 5 from the Package Manager.

@krahimzadeh, thank you for getting back to me, and sorry for the delay of my reply.

I have removed 4.2.2 and used Package Manager to install 4.3 and 5.1.5. I have confirmed that the layer’s color now gets changed to black.

Layer state before:

image

Then I hit Activate on the Elefront Bake component in this script:

Layer state after:

image

Before, when I had only 4.2.2 installed, the layer’s color would remain red.

I am facing similar problem… Is it resolved?