Make Names Unique

Hi All,

I have a list of names which are not unique and that I would like to append indices to for those that are not:


Make Names Unique.gh (12.2 KB)

I’m tired and my brain’s mush getting lost in Create Set and Member Index. If someone could help me out that’d be great.

Hi

Make Names Unique_NL.gh (9.6 KB)

Thanks. I solved it pretty much the moment you replied. I’ll post my solution. It doesn’t require Pufferfish, though neither does yours really.


Make Names Unique VR 01.gh (20.6 KB)

Oops, I didn’t actually do what you were looking for. You can have this alternate version too :slight_smile:

Make Names Unique_NL.gh (11.4 KB)

Neither of your solutions, or mine for that matter, hold up to a tree of data:

:slight_smile:

Not quite. I would be looking for uniqueness within each branch. :grimacing:

Make Names Unique_NL_Tree.gh (13.9 KB)

:grinning_face:

Sorry. I’ve just become careful about implementing seemingly working snippets in larger contexts where I would assume regular tree function.

Understandable.
And before you come at me with more complex tree structure. You can have this too :laughing:

Make Names Unique_NL_Complex_Tree.gh (12.1 KB)

Flying Shapes