Triggered Capture - please move to Scripting forum
Re: Triggered Capture - please move to Scripting forum
Thanks Robin. The error on interrupt is cosmetic. I can live with it.
- admin
- Site Admin
- Posts: 17342
- Joined: Sat Feb 11, 2017 3:52 pm
- Location: Vale of the White Horse, UK
- Contact:
Re: Triggered Capture - please move to Scripting forum
Hi Mike,
I ended up asking Google Gemini if there was a neater way to cancel IronPython scripts and it came up with a cunning mechanism that (mis-)uses the tracing system built into the interpreter to be able to cancel the script in a cleaner way. I guess someone has posted about this somewhere online so it is in the training data, but having searched previously I never found it... AI can be handy sometimes. Anyway, I will be looking to implement this improved mechanism in the next update if I get time - it was one of those things where I had never been 100% comfortable with the way it works right now, so having both a concrete example of it not working right and a better alternative is enough to take some action.
cheers,
Robin
I ended up asking Google Gemini if there was a neater way to cancel IronPython scripts and it came up with a cunning mechanism that (mis-)uses the tracing system built into the interpreter to be able to cancel the script in a cleaner way. I guess someone has posted about this somewhere online so it is in the training data, but having searched previously I never found it... AI can be handy sometimes. Anyway, I will be looking to implement this improved mechanism in the next update if I get time - it was one of those things where I had never been 100% comfortable with the way it works right now, so having both a concrete example of it not working right and a better alternative is enough to take some action.
cheers,
Robin
Re: Triggered Capture - please move to Scripting forum
That's great. Glad my pestering has been productive. ;O)