ui

 From:  Michael Gibson
1551.6 In reply to 1551.5 
Hi lyes,

> hi michael the lines off the command in commandset
> xml file in command folder

I see - that does almost work, but kind of by chance. By removing those lines it means that MoI doesn't know which commands are supposed to be part of that command set, so it doesn't know which one to launch when the command set is triggered.


> may be if you can tell me how to triger a button with a script

There isn't any way to do that right now either.

Actually even if there was it wouldn't help - commands don't run synchronously in response to a button click they get queued up and run after all the script processing for the UI has exited. This helps to prevent problems with re-entrancy and commands running while inside other commands in unexpected ways.

To do what you want with some extra script, you would need to be able to supply a script handler for some kind of "OnCommandExit" event that was fired when a command ended. But that does not exist right now.

- Michael