MTimer?

36 views
Skip to first unread message

João Victor

unread,
Jul 14, 2022, 10:21:42 PM7/14/22
to Python Programming for Autodesk Maya
Hi,

Sorry for the simple question, but I am trying to find a way to make it work without success.
How I can run a function every x seconds when an UI cmds.window is open, and stop running the same function when this window is closed?

thanks in advance!

Marcus Ottosson

unread,
Jul 15, 2022, 2:13:39 AM7/15/22
to python_in...@googlegroups.com
Have a look at PySide2.QtCore.QTimer. Once destroyed, it will stop calling your function.

--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_m...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/5cb517fb-b3b2-4cce-90af-ba5cd3f1ec9dn%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages