|
Hello,
I’m looking for the programming syntax for creating a sticky Key function for a tool-button in a custom shelve,,
I searched about everywhere (SDK, Web) for an explanation but couldn’t find it,
So if someone could tell me how to do it, or where to find help on writing keyboard and assigning mouse-button functions for shortcuts, that would be more than great,
Domi
|
|
|
|
If you just want to have your script executed upon the press of a button, the easiest way is to wrap your code in a custom command, which can simply be bound to a hotkey through the Keyboard Mapping UI (File->Keyboard Mapping...)
But as far as real sticky key functionality is concerned: Good question! I was wondering the exat same thing for some time now. Sticky keys are cool, but from what I understand they only work for “tools”. So the more interesting question probably is: How can one create a real tool through the Softimage SDK? The SDK documentation doesn’t tell anything in this regard.The only workaround I can think of is through custom events, but there should be a more elegant or “right way” exposed through the SDK.
My 5 cents,
Stefan
|
|
|