Hi,
I have a custom scripted behaviour to work in network view. However now I would like to somehow assign a key shortcut to it. So besically “press S” > “run my script”…
Is it possible to set this up in Houdini? Or do I have to make some hacker workaround?
Run custom python script on pressed shortbut key
3393 2 0- JJ_FX
- Member
- 30 posts
- Joined: Nov. 2010
- Offline
- jordibares
- Member
- 655 posts
- Joined: Feb. 2006
- Offline
You can map a shortcut to a tool inside a HDA..
https://www.sidefx.com/forum/topic/20561/?page=1#post-96583 [www.sidefx.com]
or you can use the Aliases approach
http://forums.odforce.net/topic/16761-is-it-possible-to-assign-hotkeys-to-python-scriptscommands/ [forums.odforce.net]
Not great, I hope those customisation things are starting to be incorporated as Houdini becomes central to modern pipelines…
I hope it helps
https://www.sidefx.com/forum/topic/20561/?page=1#post-96583 [www.sidefx.com]
or you can use the Aliases approach
http://forums.odforce.net/topic/16761-is-it-possible-to-assign-hotkeys-to-python-scriptscommands/ [forums.odforce.net]
Not great, I hope those customisation things are starting to be incorporated as Houdini becomes central to modern pipelines…
I hope it helps
- JJ_FX
- Member
- 30 posts
- Joined: Nov. 2010
- Offline
Thanks jordibares!
However the tools Im working on is the navigation in network view, based on cursor position. Very handy and speeding the workflow. And need just to work with pressed key. Im surprised this is so hard to set up…
I have found that once you drop a tool on a shelve, you can edit a script there, and add a shortcut. However they work only for a current session. Once you close houdini the keys are back to default. I think this is because of this:
However the tools Im working on is the navigation in network view, based on cursor position. Very handy and speeding the workflow. And need just to work with pressed key. Im surprised this is so hard to set up…
I have found that once you drop a tool on a shelve, you can edit a script there, and add a shortcut. However they work only for a current session. Once you close houdini the keys are back to default. I think this is because of this:
Edited by JJ_FX - Feb. 21, 2018 00:49:09
-
- Quick Links