Daz Shortcut Keys, Defining using 'GNU emacs style'
![bshugs@hotmail.com](https://farnsworth-prod.uc.r.appspot.com/forums/uploads/userpics/999/nLQWG6JY42NOS.png)
I ran across a line in the recent update that seems to indicate we can create keyboard shortcuts beyond the typical [Modifiers] + [Key], such as [CTRL] + [R] used for rendering or [CTRL]+[SHIFT]+[Y], which is undefined by default. It mentions the GNU Emacs text editor which allows for a sequence of keys to be used for shortcuts. The line is quoted below and was taken from here at the bottom. My question is: How do we assign these? Every time I try using the Customize Daz Studio dialog, I'm stumped. Can anyone help me out?
General Interface - Shortcuts
- Added support for defining multiple key sequences (up to 4) when assigning a shortcut to an action in the Customize dialog
- The main window now respects up to 4 key sequences (GNU Emacs style) assigned as action shortcuts
- Key sequences consist of successive key codes entered within an allotted amount of time - where time is based on the maximum number of key codes in all sequences that start with the first in the sequence
- Widgets that implement their own (common) shortcuts (e.g., line-edits, text-edits, etc) can cause interference if the cursor is positioned over them when the shortcut is entered
- This is not a new behavior, but it can become more apparent as more sequences that include overlapping key codes are used
Comments
Thanks for the correction richard
Edit: Cause i'm just as ignorant as the rest of us sometimes.
No, it's always been possible to sue all threee modifiers plus a kye as far as I recall, and certainly is in 4.12.0.86. The Public Build allows you to enter a sequence (one after another) of keys - for example I just assigned m, t to Map Transfer in 4.12.1.76 and it works while t, m doesn't. (I didn't manage to enter more than two keystrokes, butt hat may be because I didn't have any other multi-key sequences starting with M).
There is no need to include a modifier key.
http://docs.daz3d.com/doku.php/public/software/dazstudio/4/referenceguide/scripting/api_reference/samples/actions/action_accelerators/start
Thank you both for the feedback. I was reading too much into the whole 'Emacs Style'. I've always used a mix of modifier keys ({CTLR],[ALT] and [Shift]) with another 'typing' key for custom Shortcuts. The thing that threw me was that in Emacs you might actually use two 'Shortcuts' to get to an action. That is, you might use [CTRL] + X followed by [CTRL] + F to open a file, where as [CTRL] + X followed by [CTRL] + S would save the file. In those cases, the inital [CTRL] + X does not actually perform any function except to open up a 'sub-menu' of keyboard shortcuts. So, I had this idea of mapping all the weird keyboard shortcuts I want under something like [ALT] + Y followd by various other combinations.
Fortunately there are a large number of Shortcuts available when you when you take in the number of ways you can combine the three Modifier Keys.
And that script you mentioned Richard is a great one. I had stumbled upon something similar a while back but I think I like the layout of this one better as it includes the viewport modifiers at the top, while still allowing you to copy/paste the list into a text editor.
Again, my thanks!
No, you were not reading too much nto it. As I noted above, you are now able to use a sequence of keys (spread in time, one after the other) as a short cut.
This script has been updated now, by the way.