Bake object to certain layer

Hi guys,

I came across a problem when using the latest version of elefront and would be great if I can find help here!
I am trying to bake things with bake object.
However, in the previous version, we got a define attribute component.
In the version 5.1.2 there is only elefront attribute.
I looked at lots of places, but sadly still don’t know how to use it and bake objects to certain layer.

Is it still possible now?

Thanks a lot!

Very much still possible! With elefront attributes component, feed the A output into the A input of the bake objects component.

To set the layer you may need to right click on the Elefront Attributes component and click “Show all parameters” then feed the layer name or name(s) into the the L input. And I believe with 5+ you have to give it the full layer path so as an example if your have sub layers you need to feed it a layer name like: My Main Layer::My Sub Layer Name I want to bake to. The :: denotes a nested/sub layer

One of the bigger changes in 5+ is the addition of pass through components so double check components in question by right clicking and showing all inputs to see what is available as many are hidden by default.

Cheers hope that helps!

Problem solved!!!
Thanks a lot!! :grin:

You’re welcome!

Thank you Michael for the explanation. Can you post a quick example?

Sure Grey,

I can share an example when I have availability next. I’ll keep you posted

Here’s a simple example of the baking logic:

Collapsed Version:

2 Likes

I may be missing something? I can’t seem to get this to work. Elefront is so useful to me & I would like to take advantage of the newest version. Any help appreciated. :pray:t3: :pray:t3:

Hi Keen, Use the Longest list component to create a matching attribute Tree, then graft your inputs into bake objects.

4 Likes

Thanks so much for the astonishingly fast response, now I get it. Worked perfectly.

Hey thank you for this. Has helped me many times

1 Like

You’re welcome! Happy to help!

Hello,

I am trying to bake multiple grasshopper components to a specific existing Rhino Layer using the Elefront bake button. when I try to define a layer in the Elefront Attributes I am getting this error. I am new to Elefront, and I am afraid I can’t fully make sense of either of the pictures above. Or is there an alternative way to easily bake multiple components to an existing Rhino Layer.

Hi Hunter,

We’ll need more information to be able to help.

Rhino SystemInfo (via the command), Elefront version and a file ideally.


Hello! Im new in elefront and was trying to bake multiple geometries to certain layers and was wondering what i was doing wrong

Hi,
You are providing two branches into the component (you can see {0} and {1}), however the BakeToFile component is assuming that each branch creates its own file. Since you only gave one file path, it’s warning you to let you know this, because the way you have it set up, it would create the file once for the first branch, and then overwrite it with the second branch.

This is because if you wanted to bake multiple files at once, you would need to be careful to make sure the right objects are going into the right files. For your simple case here, you could probably flatten/shift your Geometry and Attributes, since you are only create one file.