I want to force save my project file every x minutes, is there a maya function to add timed events?
The workaround that I’ve found is to create an extra thread and put a while loop into it and then use executeDeferred
class Test(threading.Thread):
def __init__(self):
threading.Thread__init__(self)
def run(self):
while True:
maya.utils.executeDeferred(maya.cmds.file, s=True)
time.sleep(300)
Thanks