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)

