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

Cannot select objects while running semi-modal ETO dialogs

$
0
0

When running semi-modal ETO dialogs from the script editor in Rhino8, selecting objects while the dialog is running is possible. When running the script directly, it is not possible. In Rhino7, selecting objects while the dialog is running is not possible whether the script was started from the editor or not.

Below is a simple dialog that allows you to select objects and move them 10 units along the Y axis. If I run it from the editor, I can select objects and press the button OR I can press the button and select the objects. However, if I run the script directly, I can only select objects after pressing the button.

It’s not a huge deal as all my scripts still work, you just can’t select anything while they are running (until you push a button that runs rs.GetObjects or something similar). I would prefer to allow selection while the eto window is running, but it’s not 100% necessary.

Am I overlooking something? Am I doing something wrong in the script? Or is selection not supposed to be possible and it’s actually a bug that running the script from the Rhino8 editor allows it?

selection_demo.py (1.2 KB)
system_info.txt (2.3 KB)

3 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 5938

Trending Articles