Jump to content

Hotkeys to Actions, that are not in the Hotkey Manager


Recommended Posts

Please. For example, can I have a hotkey to rename the selected node in the Network view?
Or is it possible to assign a hotkey to the “New Folder” button somehow?
How do you "Cancel" dialogs, please? ESC works only at certain dialogs.

Maybe by using something from here?
http://www.sidefx.com/docs/hdk15.0/_h_d_k__u_i_intro.html

Btw is it possible to use the default system (windows) Save/Open dialog? I am running windows 8.1 and Houdini Version 15.0.244.16

Link to comment
Share on other sites

  • 7 months later...

There is a lack of a hotkeys doing this at the moment. I was bugged down by the fact, that I keep renaming nodes all the time and so it becomes time consuming moving mouse, double clicking on the name, typing, then hitting enter.
Are you familiar with AutoHotKey? If you install it, and put an startup.ahk file in your Windows Startup folder (C:\Users\[You]\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup), then it will run automatically on restart.
Here is the code, that makes the F2 button into a rename nodes button:

#IfWinActive, ahk_exe hindie.exe
    renaming := false
    $F2:: ; // A toggle for renaming with F2 button
      renaming := true
      send +T
      sleep 10
      send {Enter}
    return
  $Enter:: ; // Hitting the Enter key while in renaming mode, will trigger you to go back with Shift T hotkey
         if(renaming) {
            send {Enter}
            sleep 10
            send +T
            renaming := false
            return
        } else {
            send {Enter}
            return
        }

#IfWinActive

Basically, when you hit F2 and have a node selected, the script switches you into the List View with the hotkey Shift + T and hits enter. That puts you into "renaming" mode, witch switches the functionality of the Enter key.
When in this mode, the Enter key also sends Shift + T to get you out of List view and out of the "renaming" mode, so the Enter key functions normally again.

Enjoy! :-D

Edited by Fake Pilot
  • 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...