Here is the problem :
I created a mel script for exporting very lot of objects at the same time.
But I need to edit each Collada file and to replace the content of some line...
Problem is after exported the object I added a function for opening the exported file one more time and edit some lines after parsing of the content...
But...
Sometime the exporter doesn't have time to create the exported file and my script is already trying to edit the file content -__-...
Does someone knows how to freeze the script while one second or more when exporting an object...
or... how to detect the current object have been exported and I can edit it....
I did a research with "delay" "time" "wait" words in the Mel Scirpt documentation, but I didn't found anything for that...
This is strange because 3 years ago on a script I found something like that in the documentation...
I'm on Maya 2009.
Thank a lot for help.....
Replies
Oh and try:
pause -sec NUMBEROFSECONDS;
But strange it seems to stop the process...
Maybe I need to do that once all objects are exported and it could delete some conflicts....
raaaaa... not funny
And I finally keep the lsit of the all file exported in the process....
Then I create a last function it's editing all files one by one... but at the end!
Now collada is clean... this is crazy all the informations nobody mather there are in this export -___-...
About the Pause function it's seems to be a real pause of the script. and Maya is "sleeping" a little time...
This is funny, can follow your most crazy scripts with slow speed!:D