Quantcast
Channel: Scripting - McNeel Forum
Viewing all articles
Browse latest Browse all 5938

How to press Escape key in the script

$
0
0

Is there a “utility” command like “_Enter”, “Pause”, but for the escape key (e.g. “_Escape”). I’m trying to get this script to work, but in the last line “-NamedCplane” command still waits for input after the script runs and ideally it would exit (what happens when user presses Escape key).

If there’s another way to accomplish this, please let me know as well.

import rhinoscriptsyntax as rs

named_cplanes = rs.NamedCPlanes()
new_name = rs.ComboListBox(named_cplanes)
rs.Command("-NamedCplane Delete " + chr(34) + new_name + chr(34))

2 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 5938

Trending Articles