Replace paths Bug

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)

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

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.

Got it. :neutral_face: 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”.

tree_branch

Thank you, but if i do this, i’m lost branches names that i need in future =(