I am trying to get a grip on working with Elefront and I have a ‘basics’ question I think:
Is it possible to reference and add attributes to Grasshopper geometry, or does the geometry first need to be (baked as) Rhino geometry?
Do you have access to Rhino 8? If so, you don’t really need EleFront.
No matter if you use the new Grasshopper Rhino components or another approach, attributes are baked with the geometry so I don’t think there is a way to add attributes to an object which exists only in Grasshopper.
I still have Rhino 7 at the moment. I have made a sample to see if it could work in my GHdefinition, but like you say it only works when I use referenced Rhino geometry, see sample files (if you have time :))
That would be a pity since the geometry in the larger definition exists only in Grasshopper.
What I am actually looking for besides baking objects to their specific layer, is to add geometry (like a circle) to a specific point after unrolling the surface (and before baking). Any idea in which direction to look for this?
Yeah something like that, but the circle only applied to the point ‘type B’. I tried using Elefront’s Filter by Layer but I’m clearly missing something
I believe that after Unroll the points lose the connection with the Layer attribute.
The selection must be made before Unoll.
Try this. sample elefront_20250411 c.gh (16.1 KB)
Thanks again @leopoldomonzani, this works. Still I have the issue Elefront works only with referenced objects, so I have to find a workaround. But thanks for your help
I haven’t used elefront, but you can add attributes to an object that only exists in grasshopper. You can create a model object from any geometry and then use the ‘user text component’ to add key value attributes.
You’re right, from a Grasshopper perspective the attributes can be attached to a model object.
But in the end the attributes are saved with the Rhino object.
I don’t see a way to internalise a model object and right clicking a model object component / Set one model object prompts you to select an object in Rhino.
You cannot internalize a model object but you can instantiate a model object in grasshopper. This will allow you to save values on an object. If you open this file you can see a model point with a usertext attribute without an associated rhino file. This is can be to used store any data you want on your objects (even lists and trees by serializing them)
Also, the way to differentiate between a model object in rhino v/s one that has been instantiated in grasshopper is to see if it has a GUID when you attach a panel to it. When you push this model object into rhino it has a rhino GUID attached and it now depends on a rhino file.