Reference GH geometry?

Hi all,

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?

Thanks!

Wilco

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.

Hi Martin, thanks.

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?

Many thanks

sample elefront_20250411.gh (14.4 KB)
sample elefront_20250411.3dm (56 KB)

I can’t look at these files.

Is this using dendro? Or what else is the component with the green icon?

It’s from Wombat (Unroll Brep). I would have to look for some other unrolling tool to replace it with, is there any you use?

I’m using a script but it’s using the Rhino 8 script editor. The original version is somewhere in the forum.

Maybe so, if I understand correctly.
sample elefront_20250411 a.gh (14.1 KB)

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 :sweat_smile:

Thanks

sample elefront_20250411 b.gh (15.7 KB)

Ah but then the circle is applied to all 3 points. It should only go to point ‘type B’..

Those unrolled points are not baked Rhino geometry. I guess that’s why I can’t Filter by Layer because they’re not in a layer.

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 for your reply. I can’t check it right now but I will have a look later today :ok_hand:

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 :raising_hands:

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.

1 Like

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.


instantiated model object.gh (13.0 KB)

1 Like