osuire
March 7, 2019, 10:22am
1
The “Replace Paths” doesn’t like it when the paths to be replaced and the paths to replace them with are the same, only shuffled.
It can be illustrated with this definithion which is supposed to order the lists of curves so that they are sorted by descending “Y” coordinate.
Replace Path fail.gh (30.2 KB)
osuire
March 7, 2019, 10:36am
2
OOPS.
Never mind, I just needed to reverse the ( S )earch and ( R )eplace inputs.
Makes sense.
I’ll leave this post here in case there’s another dummy like me.
2 Likes
sahasg552
(Sahasg552)
June 29, 2021, 11:38am
3
Maybe it’s not that topic, sorry. But i can’t understand why replaced paths became sorted by alphabetical order? I want to replace paths in the same order as i input them.
Gh datatree is always ordered, its paths are sorted from lower multi index to higher.
sahasg552
(Sahasg552)
June 29, 2021, 11:51am
5
Got it. Maybe you can help me, how to sort branches in order i input in first place? Thank you!
Right-click the Tree Branch and uncheck “Maintain Paths”.
sahasg552
(Sahasg552)
June 29, 2021, 2:35pm
7
Thank you, but if i do this, i’m lost branches names that i need in future =(