Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import clr
- clr.AddReference('ProtoGeometry')
- from Autodesk.DesignScript.Geometry import *
- #The inputs to this node will be stored as a list in the IN variables.
- dataEnteringNode = IN
- people = ["joe","jim","mike","tony","jim","jim"]
- dudes = []
- outtage = []
- done = []
- unique_names = []
- for person in people:
- new_name = person
- counter = 1
- while new_name in unique_names:
- counter += 1
- new_name = new_name + " " + str(counter)
- unique_names.append(new_name)
- #Assign your output to the OUT variable.
- OUT = unique_names
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement