How to replace text?

The text after “RADIUS”: in each branch in the left panel should b replaced by the corresponding text in each branch in the right panel.

How to achieve that? Thanks.


1.gh (11.0 KB)

I will suggest to First Copy the Data, then enable Multiline Data from the panel, paste, then each one of the data will be on each line. Then you can “Find” what you are looking for, then Replace with what you want to replace with by index. After that you can make a new Tree or another method to return to the initial state. This what I did, everything is replaced.
1.gh (19.0 KB)

1 Like

Since the input data looks like JSON it is easiest to do this with a Python script

Replace_radii.gh (13.2 KB)

4 Likes