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

Rhino ScriptEditor: Rhino.RhinoApp.EscapeKeyPressed wrongly True

$
0
0

Hi,

I have a python script running directly in Rhino using the new ScriptEditor.

In a for loop i added the below

for i, element in enumerate(elements):

            if Rhino.RhinoApp.EscapeKeyPressed:
                    print("Cancelled by user.")
                    break

However it’s breaking also without pressing escape. Seems like a python bug to me. Usually works fine in C# in my compiled plugins.

4 posts - 3 participants

Read full topic


Viewing all articles
Browse latest Browse all 5938

Trending Articles