Daz Shortcut Keys, Defining using 'GNU emacs style'

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

  • DrunkMonkeyProductionsDrunkMonkeyProductions Posts: 1,014
    edited March 2020

    Thanks for the correction richard

    Edit: Cause i'm just as ignorant as the rest of us sometimes.

    Post edited by DrunkMonkeyProductions on
  • Richard HaseltineRichard Haseltine Posts: 102,418

    If i'm reading that correctly, it's just a comparison of a different software and how DS now functions, not that it is GNU emacs, just similiar in function.

    What this means is that you can now use upto 4 keypresses as opposed to the previous 3 key max.

    Such as i use CTRL+ALT+SHIFT+X to exit DS.

    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).

     

    To change a shortcut, all you need to do is select the particular object in the Customize Daz Studio pane(f3(default), window>Workspace>customize), Right click, select Change Keyboard shortcut and press the keys you want to assign to that action.

    The only limitation is that the 2, 3 or 4 key press does need to include either the CTRL, SHIFT, ALT keys, but they can be in any order.

    There is no need to include a modifier key.

    If you are assigning new short cuts, i'd be sure to make a list of the new shortcuts, untill you get adjusted to them.

    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!

  • Richard HaseltineRichard Haseltine Posts: 102,418
    Windamyre said:

    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.

  • Richard HaseltineRichard Haseltine Posts: 102,418
     

    If you are assigning new short cuts, i'd be sure to make a list of the new shortcuts, untill you get adjusted to them.

    http://docs.daz3d.com/doku.php/public/software/dazstudio/4/referenceguide/scripting/api_reference/samples/actions/action_accelerators/start

    This script has been updated now, by the way.

Sign In or Register to comment.