Accepting Esc in GetObject()?

I’m looking for a way to accept the Esc key in Rhino.Input.Custom.GetObject()
I’d like to be able to make the script behave like regular Rhino commands (e.g. Move):
when you are asked to select the objects, you cat hit the Esc key and the command exits.
Thanks (2.6 KB)

Hi emilio
Check the attached file.
I hope this helps,

It helps indeed ! :smiley:
I had to check CommandResult()
Thanks a lot !