magneto Posted December 20, 2012 Share Posted December 20, 2012 (edited) Hi, To do this, do I have to create a shelf button? Is there another way to assign a hotkey to trivial operators like aligning selected nodes in a certain way, or printing the name of the selected nodes to the python console, whenever the python snippet is run? If I have to create a shelf, I don't want it visible anywhere, except invoked via a hotkey. Thanks Edited December 20, 2012 by magneto Quote Link to comment Share on other sites More sharing options...
pclaes Posted December 20, 2012 Share Posted December 20, 2012 I've got a handy one set up for "F4" for incremental filesaving. Since it is python I guess you can do anything you want, or call any custom definition you have defined somewhere (like in your session module or somewhere else). Edit -> aliases/variables Aliases: *)in the bottom left entry field: F4 *)in the bottom right entry field: python -c 'hou.hipFile.saveAndIncrementFileName()'[/CODE] 1 Quote Link to comment Share on other sites More sharing options...
magneto Posted December 21, 2012 Author Share Posted December 21, 2012 Thanks alot Peter, works great For modifier keys, we are supposed to type Ctrl+F4, Alt, Shift, etc? Because it doesn't seem to allow + or spaces. Quote Link to comment Share on other sites More sharing options...
pclaes Posted December 21, 2012 Share Posted December 21, 2012 hmm, I don't know that one. Might be a question for the mailing list. Quote Link to comment Share on other sites More sharing options...
magneto Posted December 21, 2012 Author Share Posted December 21, 2012 Thanks Peter, I looked into it, couldn't find much info but my guess is that the Aliases window only allows for basic function key binding. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.