Jump to content

Is it possible to assign hotkeys to python scripts/commands?


magneto

Recommended Posts

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 by magneto
Link to comment
Share on other sites

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]

  • Like 1
Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...