top of page

Python snippet

Seamless Recovery from Maya Crashes

Python snippet

To open the latest crashed maya file. linux.

import os
import glob

try:
newest = max(glob.iglob("/usr/tmp/*.ma"), key=os.path.getctime)
except IndexError:
os.system("maya &")

bottom of page