[Closed] Assign_Vertex_Colors – check is finished
I creating script for automaticly generate vertex shadows.
I have problem. I starting Assign_Vertex_Colors and assinging to selected.
I wish to know when assinger finishes his work. I need to do some things after assign vc (clean lights, remove radiosity…).
But I don know how to do it. I tried checking is Vertex Paint modifier aply for objects, but it is done before finish of assigning…
Maybe there is way to check for time from last scene updates, or monitoring system usage?
Anybody have an idea?
You could try the #postModifierAdded callback if you don’t have the vertexcolor modifier already applied. Otherwise, it’s going to be a bit more difficult I think.
-Johan
you can write your code to clean after this line AssignVertexColors.ApplyNodes $, the rest of the code will be executed only after the vertex color assignment has finished. Just try it…
I solved all my problems with it.
You can’t easy access to it becouse of it’s a utility, and there is no functions to use it with maxscript.
I used AutoIt aplication. It’s preety helpfull if you can’t do something using script, but you can do it yourself (using mouse\keyboard).
My script for AutoIt first is chosing properties on Assign Vertex Colors utiliti and pressing assign to selection button. After that it checking are progress dialogs displaying, if not then it clicks secret button on my rollout.
That I start and know the assigning is finished.