Reference and bake Rhino groups

Hi

Problem 1: Is there a way to reference a Rhino group, as opposed to the objects from that group?

Problem 2: Is there a way to use the Cache component to bake groups?

Background: I am trying to create a dynamic spot elevation that consists of a leader showing the z-value. However, for Rhino to reference a Point Coordinate in a Text Field, it must reference a Point object. It cannot be a Leader (i.e. self-referential). As a workaround, I’ve discovered that if I group a point and a leader (with the leader referencing the point), and I copy the group, the Text field reference of the leader updates automatically to the point in the new group instance. So it works manually.

In Grasshopper, when I query model objects by group name, it returns separate objects rather than the group. I believe this is because a group is just metadata within individual objects, not an actual object. So that is the first issue. I can duplicate content and create new groups, but then the issue is Cache doesn’t work with groups.

The other issue is that a text field must already have the Rhino point created (baked). So the script needs to be in two parts: 1 to create the groups, and 2 to update the leader’s text field. But when I try this, it creates new groups rather than updating the existing ones.

Any ideas on how to resolve these issues? I’m sure there must be an easier way.

Spot_Elevation.3dm (135.5 KB)

260122 Sport elevation_2.gh (44.0 KB)

Anyone?

Hi Paul, That’s slated for 9.x, but not in the wip yet.

Thanks @Japhy. Of course, the easiest solution would be for PointCoordinate text field to work with leaders, not just points. Could this be implemented?

In the meantime, I can use RMB to bake. But is there a way for me to update the existing groups (Part 2), without creating duplicates?

Blocks?

I’ve tried this, but when blocks are created, the PointCoordinate text field reference doesn’t work.

It should. See this thread for details and an example.

There’s also this topic here… Self referencing TextFields in Rhino 8.10 - #12 by Gijs

A new feature added back in October. No UI functionality yet, but great that this has been added. Thanks @Japhy

RH-68819 is fixed in Rhino WIP