Rrename branches by name values

Hello,
Could you help me please?
Is it possible to rename branches to values name as shown on scheme.
Since {0} to {20}, {1} to {25} and {2} to {33}

Thanks for advice

Best regards
Olek

obraz

Hi. Use “Tree statistics” in combination with “Replace paths”.

It is ok but this leads to a problem with conversation from parth to curve since the initial data is curves

@PetrVacek code would work, as your naming the paths, so the data your using in those paths in your case curves, his example numbers will remain unchanged.

Its also possible to do this with the Parameter view like so.
Tree statistics component is also a super useful component to know about also mind yo as it also gives you branch lengths and total number of branches.


Rename Paths.gh (12.8 KB)

1 Like