there is a missing feature in the SDK to make a toolbar button behave like Autokey and others that work. it's a dumb little thing that I have no clue why it wasn't exposed. Internally, all commands can have a "selected" state. this is reflected by having the menues checked or their buttons pushed automatically. This selected state also allows command to detect when the keyboard shortcut is pushed and released, like the all the tool related commands do.
On Monday, December 10, 2012, Gustavo Eggert Boehs wrote: > Thanks for all the help guys, very useful info... sadly I was trying to > setup a button in the interface, much like Autokey, so a menu or a PPG > wouldnt be the best solutions... > > For now I´ll have the a regular button and just log the state of the tool. > But that is just putting to much trust in the hands of animators :p >