to avoid multiples values in the list

hi,

Code:

allSelected = nuke.selectedNodes()
job={}
for n in allSelected:
    job[n]=n.Class()
    print job[n]

# Result: Bezier
Blur
Bezier
Bezier
Blur
Defocus
Defocus
Read
Grain2
Transform
Blur


I would like to avoid multiples values in the list
i want that

Blur
Bezier
Defocus
Read
Grain2
Transform

thanks,:)

No Responses to “to avoid multiples values in the list”

Post a Comment