How to know Node Selected or not in Python

Hi All,
I’m a new in Python grasshopper.
I’m trying find the way how to know about node was selected or not.
Any ideas ?
Thank you. Have a nice day.

Hi Shank
try this.

a = ghenv.Component.Attributes.Selected
ghenv.Component.ExpireSolution(True)

selected.gh (5.8 KB)

1 Like

Thank you very much.