sagmam
07-02-2004, 08:12 PM
Hi all,
I'm writing a mel script that adds some influence objects to my model. I call the following command in a loop:
skinClusterInfluence 1 "-ug -dr 4 -ps 10 -ns 10";
This function takes a long time to do and all of Maya almost stops responding during that time, so I wanted to display a progress window. Anyway, after the first iteration, the progressWindow stopped updating. Only the trace message that I put in the script continue to show progess.
Basically, my loop is something like this:
1. show trace message
2. add influence object
3. update the progress window (-e -status $msg -pr $progress)
4. pause for 1 sec
If I COMMENT OUT #2, then the progress window updates - no problem. How do I make the progressWindow update in this case? What's the point of a progressWindow if I can't use it especially when Maya performs heavy operations??? Is there some kind of command that FORCES Maya to update its GUI?? Maybe I can use it here...
thanks.
I'm writing a mel script that adds some influence objects to my model. I call the following command in a loop:
skinClusterInfluence 1 "-ug -dr 4 -ps 10 -ns 10";
This function takes a long time to do and all of Maya almost stops responding during that time, so I wanted to display a progress window. Anyway, after the first iteration, the progressWindow stopped updating. Only the trace message that I put in the script continue to show progess.
Basically, my loop is something like this:
1. show trace message
2. add influence object
3. update the progress window (-e -status $msg -pr $progress)
4. pause for 1 sec
If I COMMENT OUT #2, then the progress window updates - no problem. How do I make the progressWindow update in this case? What's the point of a progressWindow if I can't use it especially when Maya performs heavy operations??? Is there some kind of command that FORCES Maya to update its GUI?? Maybe I can use it here...
thanks.
