Keyboard Shortcut Commands?

KimberSueKimberSue Posts: 351
edited December 1969 in Daz Studio Discussion

Anyone know of a list of keyboard Shortcut Commands or how to set them up?

Comments

  • JimmyC_2009JimmyC_2009 Posts: 8,891
    edited December 1969

    If you go into Edit > Customize > Actions, they are all listed there, and you can change them by using the right-click menu.

  • KimberSueKimberSue Posts: 351
    edited December 1969

    Wonderful! Thank you so much.

  • rbtwhizrbtwhiz Posts: 945
    edited December 1969

    Here is a quick script to start from...

    var oActionMgr = MainWindow.getActionMgr();
    var nActions = oActionMgr.getNumActions();
    var oAction = undefined;
    var sShortcut = undefined;
    var aShortcuts = [];
    var i = 0;
    
    // Create a new dialog
    var wDlg = new DzBasicDialog;
    wDlg.caption = "Keyboard Shortcuts";
    
    // Create a listbox
    var wListBx = new DzListBox( wDlg );
    wDlg.addWidget( wListBx );
    
    // Collect shortcuts
    for( i = 0; i < nActions; i += 1 ){
     oAction = oActionMgr.getAction( i );
     sShortcut = oAction.shortcut.toString();
     if( !sShortcut.isEmpty() ){
      aShortcuts.push( String("%1 = %2").arg( sShortcut ).arg( oAction.text.replace("&", "" ) ) );
     }
    }
    
    aShortcuts.sort();
    
    // Populate the listbox
    for( i = 0; i < aShortcuts.length; i += 1 ){
     wListBx.insertItem( aShortcuts[ i ] );
    }
    
    // Show the dialog
    wDlg.exec();

    Just copy the contents of the code block above, paste it into a new text document in your favorite text editor and save it to a file named "Keyboard Shortcuts.dsa". Then, depending on where you save it, you can launch the script via drag-n-drop onto the viewport, double click from within the Content Library pane, a Custom Action in the Main Menu Bar or a Toolbar, etc.

    -Rob

  • JimmyC_2009JimmyC_2009 Posts: 8,891
    edited December 1969

    Thanks Rob, that is a very useful script. I put it in my Scripts folder in Documents, and it works great.

    It is a very handy way to learn new shortcuts too, many thanks.

  • Mosk the ScribeMosk the Scribe Posts: 493
    edited December 1969

    thanks - will try this

  • edited December 1969

    If you go into Edit > Customize > Actions, they are all listed there, and you can change them by using the right-click menu.

    aNY IDEA HOW THAT WORKS WITH 4.6?

  • FixmypcmikeFixmypcmike Posts: 15,446
    edited December 1969

    bgtbgt said:
    If you go into Edit > Customize > Actions, they are all listed there, and you can change them by using the right-click menu.

    aNY IDEA HOW THAT WORKS WITH 4.6?

    It's now in Window > Workspace > Customize

  • msorrelsmsorrels Posts: 44
    edited December 1969

    Rob's script doesn't show keyboard accelerators assigned to user made custom commands. Here's a version that does. It also changes from a listbox to an edit box so you can copy the text out.

    
    // DAZ Studio version 4.6.2.118 filetype DAZ Script
    
    var oActionMgr = MainWindow.getActionMgr();
    var nActions = oActionMgr.getNumActions();
    var oAction = undefined;
    var oActionName = undefined;
    var sShortcut = undefined;
    var aShortcuts = [];
    var i = 0;
    
    // Create a new dialog
    var wDlg = new DzBasicDialog;
    wDlg.caption = "Keyboard Shortcuts";
    
    // Create a listbox
    var wTextBx = new DzTextEdit( wDlg );
    wDlg.addWidget( wTextBx );
    
    // Collect shortcuts
    for( i = 0; i < nActions; i += 1 ){
     oAction = oActionMgr.getAction( i );
     sShortcut = oAction.shortcut.toString();
     if( !sShortcut.isEmpty() ){
      aShortcuts.push( String("%1 = %2").arg( sShortcut ).arg( oAction.text.replace("&", "" ) ) );
     }
    }
    
    // Collect custom action shortcuts
    nActions = oActionMgr.getNumCustomActions();
    for( i = 0; i < nActions; i += 1 ){
     oActionName = oActionMgr.getCustomActionText( i );
     sShortcut = oActionMgr.getCustomActionShortcut(i);
     if( !sShortcut.isEmpty() ){
      aShortcuts.push( String("%1 = %2").arg( sShortcut ).arg( oActionName.replace("&", "" ) ) );
     }
    }
    aShortcuts.sort();
    
    // Populate the textbox
    for( i = 0; i < aShortcuts.length; i += 1 ){
     wTextBx.append( aShortcuts[ i ] );
    }
    
    // Show the dialog
    wDlg.exec();  
    
  • JimmyC_2009JimmyC_2009 Posts: 8,891
    edited December 1969

    That Script works great, thank you very much!

  • RottenhamRottenham Posts: 254
    edited May 2014


    It's now in Window > Workspace > Customize

    Ah, so it is. I've been looking for this.

    By chance, has anyone made an actual list of these keyboard shortcuts, such as could be printed out on paper?

    Thanks.
    ...

    (edit)

    OK, now I get it. I ran the excellent script above, and came up with a list. Thanks. :-)

    Post edited by Rottenham on
  • MirageMirage Posts: 2
    edited December 2014

    I made this table of keyboard shortcuts. Hope it helps.

    keyboard_shortcuts.png
    666 x 863 - 61K
    Post edited by Mirage on
  • marco95marco95 Posts: 26

    Thank's to msorrels for the script  ;o)

     

Sign In or Register to comment.
Rocket Fuel