Stop multisave from popping up after each file closes

Just put everything which exits in a separate thread and delay that. This way the solution will be finished when the exit command gets called. If you run the exits process in the GH/UI thread then its obvious why!

Hey TomTom,

Thanks for your reply. I made an example with separate threads and a simple python script


(thread #1) which displays some sample text in a panel. And another standalone thread with a basic python script with a sleep delay (thread #2):

time.sleep(30)

while True:
###########
ghenv.Component.OnPingDocument().IsModified = False
###########
rs.application.Exit()

When I run this i still get a break point from the first thread.

I’m don’t think I am running the second thread outside of the GH/UI thread as you suggested. How could I achieve this? Thanks again for your assistance. I really appreciate it.

Best,
Kevin

seperate threads example.gh (3.9 KB)