Danniil_N
(Danniil N)
October 1, 2025, 5:09pm
1
Does anyone know if there’s an easier way to replace tree branches? Maybe there’s a special node?
Japhy
(Japhy)
October 1, 2025, 5:10pm
2
Replace Paths is probably what you are looking for, Tree Branch can also be set to Renumber..
Danniil_N
(Danniil N)
October 1, 2025, 5:13pm
3
Does anyone know if there’s an easier way to replace tree branches? Maybe there’s a special node?
inno
October 1, 2025, 5:45pm
4
I think the one you have shown in the screenshot is the most viable method
We use Replace Path to do this stuff so it’s kind of the most convenient way
Adam_M
(Adam Mounsey)
October 1, 2025, 7:23pm
6
If Python in an option for you, you could do something like this:
from Grasshopper.Kernel.Data import GH_Path
for p, i in zip(tr2.Paths, br):
np = GH_Path(int(i))
tr1.RemovePath(np)
tr1.AddRange(tr2.Branch(p), np)
a = tr1
Danniil_N
(Danniil N)
October 1, 2025, 7:48pm
7
Good work man! So simple, strange that there is no preinstalled node for this for people who doesnt know phyton
Seems a little strange to me that you need the capability at all.