Self referencing TextFields in Rhino 8.10

in 8.10 @Trav added more self referencing Textfields. This means you do not have to pass the object id.
See attached example.
self-referencing.3dm (115.6 KB)


These are added:

%<ObjectPageName("")>%
%<ObjectPageNumber("")>%
%<PointCoordinate("","XYZ")>%
%<ObjectName("")>%
%<Volume("")>%
%<Area("")>%
%<CurveLength("")>%

This makes it easy for example to perform mass calculations on a bunch of objects by simply matching the same key/value pairs of many objects to a reference:
calculate_total_weight.py (1.6 KB)

6 Likes

where can i download 8.10?

@ivan.galik 8.10 RC candidates will be available once 8.9 is released, but I can always send you a build of the day if you want to try this out by pm

make sure this works for block instances so i can use this for elevation dims. where point coordinate will be self referenced from blockinstance insertion point.

It’s unclear to me what you mean by that. But self referencing will only work on the object itself. For example, if I want to make a leader and have the text read out the point coordinates, I will still need to provide the point’s ID.

How do you get the result out of a field expression in Grasshopper?

thanks, looks like self referencing in gh doesn’t work (yet)

RH-82745 Self referencing text fields in Grasshopper

1 Like