Page 1 of 1

UITimer Guidance

PostPosted: Mon May 31, 2021 5:38 pm
by ambustion
I know this is still in the process of being fully implemented, but does anyone have any guidance on using the UITimer function within resolve scripting to trigger events in a resolve script. Specifically, I want to have a timer fire off every time the clip on the edit or color page changes, but even a loop every second using the timer would suffice for me just to check this and change elements of a GUI.

I see with qt you can use timeout.connect to link a function to a QTimer but I have only been succesful in getting a single event to trigger, even with SingleShot=False.

I also thought about a custom event, but I can't figure out any events that work outside of the fusion Tab. I have also tried threading but I think I'm misunderstanding something about qt/fusion gui's that prevents me from passing back and forth data between threads.

Any guidance would be much appreciated.