Inside Sabertooth
Learn how Sabertooth uses 3ds Max to create 3D interactive projects, including HBO Go’s Game of Thrones interactive experience
  • 1/3
You are here: Forum Home / Autodesk® Softimage® / XSI SDK / Custom 'Sticky' Key ??
  RSS 2.0 ATOM  

Custom 'Sticky' Key ??
Rate this thread
 
30170
 
Permlink of this thread  
avatar
  • Total Posts: 7
  • Joined: 16 January 2009 05:57 PM

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



Replies: 0
avatar

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



Replies: 0