MEL Script: trigger an event when a file is updated


#1

Hello,

I’ve been asked to write a script in MEL(thanks Maya LT), just so you know I come from a C++/C#/Python background. I would like watch an xml file in MEL script, and when updated call a function. I’m assuming scriptJob is the way to go, but cannot find an event to correspond with a non maya file change.

Any insight anyone?

Thanks!


#2

Maya has a commandPort to remotely control the app. So you could use system events of your OS (at XML file change) to trigger commands into maya.