Announcements

Between mid-October and November, the content on AREA will be relocated to the Autodesk Community M&E Hub and the Autodesk Community Gallery. Learn more HERE.

Is it possible to record the time that while MAYA is running?

Is it possible to record the time that while MAYA is running?

as154neko
Community Visitor Community Visitor
262 Views
1 Reply
Message 1 of 2

Is it possible to record the time that while MAYA is running?

as154neko
Community Visitor
Community Visitor

I often forget to record my production time.
So I'm investigating if I can make MEL that automatically records the time while MAYA is running.
Is it possible to make the above automatic timer?
I would like you to tell me. thank you.

263 Views
1 Reply
Reply (1)
Message 2 of 2

tkaap2
Autodesk
Autodesk

It's possible to do add a call into your userSetup.mel or userSetup.py to write to a text or csv log file when a Maya session starts, and add a scriptJob listening to the quitApplication event that will log when a session closes.  But there are some ways that system could fail -- like if Maya crashed, or if you ran multiple sessions at the same time.

 

A more resilient solution would be to use one of the ways that the operating system itself can log when a process is running.  On windows for instance, you can set a policy to log events whenever a process starts and finishes, then use the Event Viewer to read that information.  Similar things are possible on Mac and linux.  With that level of tracking, you will always have the information even if you forget to log when you start or finish.

0 Likes