Python - Execute a script repeatedly, set amount of times?

Hello, thank you for responding!

embarassingly I don’t know how to put it into real terms people actually use
but fresh start in the sense, it’s not looping from within the body of the script somehow, it begins each run afresh with reinitializing variables. new initialization per run maybe, would that be right to say?

this looks useful, would this have to go in the body of my script, or somewhere else in the extension .py?

the .waitForDone() I tried , unacquainted iwth the qApp.processEvents() maybe that’s something I can give a go
I also tried troubleshooting with some info from these threads

maybe I didn’t try hard enough but reoccuring problem is that during script run, .setActiveNode didn’t always activate the layer/node and perform actions I wanted