How to cancel a long running python script?

How to cancel a long running python script?

tgradwellLRRHB
Community Visitor Community Visitor
329 Views
0 Replies
Message 1 of 1

How to cancel a long running python script?

tgradwellLRRHB
Community Visitor
Community Visitor

I have some python which exports lots of data from Motion Builder 2020, which can take a long time, but sometimes our artists accidentally run the script on the wrong data, and then have to wait a long time before the script terminates before they can run it again. They would like to be able to cancel the script, e.g. with the Escape key on the keyboard. Or a nice UI cancel button.

I think I need to do multi-threaded python with motion builder to achieve this, but my multi thread python commands don't seem to work in motion builder.

I've spent quite a while searching but not really found the answer.

Can anyone advise please? TY!

0 Likes
330 Views
0 Replies
Replies (0)