delayed / timed / threaded script ?
Posted: September 26th, 2008, 4:55 pm
hello guys
I've written a quick maya mel file that outputs the coordinates of the camera every 1 second or so to a text file, and I'm trying to fetch the data of the text file in AE. I can read it in no problem, but my question is, can I do it with a kind of 'threading'.
Can I have a script that checks the contents of the file every x seconds and updates the AE camera coordinates as needed ?
I'm clueless as to how I can implement some kind of 'wait' function so my script doesn't just endlessly loop (kind of like 'setTimeout()').
I've written a quick maya mel file that outputs the coordinates of the camera every 1 second or so to a text file, and I'm trying to fetch the data of the text file in AE. I can read it in no problem, but my question is, can I do it with a kind of 'threading'.
Can I have a script that checks the contents of the file every x seconds and updates the AE camera coordinates as needed ?
I'm clueless as to how I can implement some kind of 'wait' function so my script doesn't just endlessly loop (kind of like 'setTimeout()').