Digital Art Zone

 
     
Keyboard Shortcut Commands?
Posted: 03 August 2012 01:21 PM   [ Ignore ]
Active Member
RankRank
Total Posts:  343
Joined  2011-12-30

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

 Signature 

3D Artist Network.

Profile
 
 
Posted: 03 August 2012 04:18 PM   [ Ignore ]   [ # 1 ]
Addict
Avatar
RankRankRankRank
Total Posts:  6621
Joined  2005-08-15

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

Profile
 
 
Posted: 03 August 2012 04:42 PM   [ Ignore ]   [ # 2 ]
Active Member
RankRank
Total Posts:  343
Joined  2011-12-30

Wonderful!  Thank you so much.

 Signature 

3D Artist Network.

Profile
 
 
Posted: 03 August 2012 07:19 PM   [ Ignore ]   [ # 3 ]
Administrator
Avatar
RankRank
Total Posts:  336
Joined  2003-10-09

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 
0;

// Create a new dialog
var wDlg = new DzBasicDialog;
wDlg.caption "Keyboard Shortcuts";

// Create a listbox
var wListBx = new DzListBoxwDlg );
wDlg.addWidgetwListBx );

// Collect shortcuts
for( 0nActions+= ){
 oAction 
oActionMgr.getAction);
 
sShortcut oAction.shortcut.toString();
 if( !
sShortcut.isEmpty() ){
  aShortcuts
.pushString("%1 = %2").argsShortcut ).argoAction.text.replace("&""" ) ) );
 
}
}

aShortcuts
.sort();

// Populate the listbox
for( 0aShortcuts.length+= ){
 wListBx
.insertItemaShortcuts[ 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

 Signature 

- Documentation Center
- Install Manager
- DAZ Studio 4.x
- DSON Importer
- DSON File Format Specification

Profile
 
 
Posted: 04 August 2012 04:03 AM   [ Ignore ]   [ # 4 ]
Addict
Avatar
RankRankRankRank
Total Posts:  6621
Joined  2005-08-15

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.

Profile
 
 
Posted: 04 August 2012 11:15 PM   [ Ignore ]   [ # 5 ]
Active Member
RankRank
Total Posts:  416
Joined  2008-07-18

thanks - will try this

Profile
 
 
Posted: 25 March 2014 09:24 PM   [ Ignore ]   [ # 6 ]
New Member
Total Posts:  4
Joined  2009-10-22
JimmyC_2009 - 03 August 2012 04:18 PM

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?

 

Profile
 
 
Posted: 25 March 2014 09:38 PM   [ Ignore ]   [ # 7 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  8697
Joined  2007-11-06
bgtbgt - 25 March 2014 09:24 PM
JimmyC_2009 - 03 August 2012 04:18 PM

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

 Signature 

PostgreSQL CMS FAQ

Product Updates: Non-Genesis/G2 DIM Zips starting July 2013
Non-Genesis Items with Metadata
Plugin Version Numbers for DS 4.5
Updated Genesis Products

Profile
 
 
Posted: 26 March 2014 12:50 AM   [ Ignore ]   [ # 8 ]
Member
Avatar
Rank
Total Posts:  46
Joined  2003-10-09

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 
0;

// Create a new dialog
var wDlg = new DzBasicDialog;
wDlg.caption "Keyboard Shortcuts";

// Create a listbox
var wTextBx = new DzTextEditwDlg );
wDlg.addWidgetwTextBx );

// Collect shortcuts
for( 0nActions+= ){
 oAction 
oActionMgr.getAction);
 
sShortcut oAction.shortcut.toString();
 if( !
sShortcut.isEmpty() ){
  aShortcuts
.pushString("%1 = %2").argsShortcut ).argoAction.text.replace("&""" ) ) );
 
}
}

// Collect custom action shortcuts
nActions oActionMgr.getNumCustomActions();
for( 
0nActions+= ){
 oActionName 
oActionMgr.getCustomActionText);
 
sShortcut oActionMgr.getCustomActionShortcut(i);
 if( !
sShortcut.isEmpty() ){
  aShortcuts
.pushString("%1 = %2").argsShortcut ).argoActionName.replace("&""" ) ) );
 
}
}
aShortcuts
.sort();

// Populate the textbox
for( 0aShortcuts.length+= ){
 wTextBx
.appendaShortcuts[ i ] );
}

// Show the dialog
wDlg.exec()
Profile
 
 
Posted: 26 March 2014 04:09 AM   [ Ignore ]   [ # 9 ]
Addict
Avatar
RankRankRankRank
Total Posts:  6621
Joined  2005-08-15


 
That Script works great, thank you very much!

Profile
 
 
Posted: 26 May 2014 09:54 AM   [ Ignore ]   [ # 10 ]
Active Member
Avatar
RankRank
Total Posts:  253
Joined  2007-08-31
fixmypcmike - 25 March 2014 09:38 PM

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

Profile