custom short keys

Discuss ideas for new features with other users. To submit feature requests to Smith Micro, please visit support.smithmicro.com

Moderators: Víctor Paredes, Belgarath, slowtiger

User avatar
rylleman
Posts: 750
Joined: Tue Feb 15, 2005 5:22 pm
Location: sweden
Contact:

custom short keys

Post by rylleman »

It would be sweet if you could set your own short keys for not just tools but everything else as well. There are menucommands and stuff I use all the time and being able to assign short keys for these would be a great help when working.
Some sort of settings dialog that lists all menu items, display quality onionskinning and whatnot along with their short keys and where you can change/add/delete shorts to optimize Moho for your workflow.

::edit-add::
You could even take it further and add project specific short keys, assigning keys to different layers and bones...
::
User avatar
Lost Marble
Site Admin
Posts: 2354
Joined: Tue Aug 03, 2004 6:02 pm
Location: Scotts Valley, California, USA
Contact:

Post by Lost Marble »

You can change the shortcuts for menu items, it's just not a super-friendly process. To do this, you first need to download the Moho strings file - this is a text file that contains all the menu commands, dialog controls, etc. You can download it in English, or the language of your choice:

http://www.lostmarble.com/moho/extras/t ... ions.shtml

Then, copy this file (Moho.5.2.strings) to the Moho program folder. Now open the file in a text editor like Notepad and look for the menu commands - they're near the top of the file, starting with the number 3000. Here's an example entry:

3001 "NewN"

The menu command is "New", and the shortcut key is 'N'. You can change the shortcut to anything you want, save the file, and start up Moho to get the new shortcut.

Commands that don't have a shortcut look like this:

3006 "Project Settings... "

Instead of a shortcut key at the end of the command, there is a space. To make a shortcut for this command, you would replace the space with a letter of your choice.

This isn't as friendly as a dialog box that lets you change menu shortcut keys, but it is possible if you really want to.
User avatar
rylleman
Posts: 750
Joined: Tue Feb 15, 2005 5:22 pm
Location: sweden
Contact:

Post by rylleman »

Cool! I didn't know that.
Then it would be possible to make some script for this?
I have to learn lua...
User avatar
Lost Marble
Site Admin
Posts: 2354
Joined: Tue Aug 03, 2004 6:02 pm
Location: Scotts Valley, California, USA
Contact:

Post by Lost Marble »

Yes, I suppose a script could make changes to this string file. You would then need to restart Moho to make it re-load the file.
User avatar
mooncaine
Posts: 206
Joined: Wed May 04, 2005 9:31 pm
Location: atlanta, ga, usa

I'd like to request this as a feature

Post by mooncaine »

I'd like to request that a future version of Moho incorporate custom shortcut key assignments into the interface. The programs I like working with usually allow me to go to Preferences [or Options, whatever], go to a Keyboard Shortcuts tab, and choose from a list of commands and tools. There's a place where I can click to change a command's shortcut, and then the program asks me to type the shortcut I want instead. I just "do the shortcut", and the program records it. Ideally, I can click a button there that will export my shortcut settings to an external file, like the one you described. That way I could save my own without overwriting the defaults, or I could use different setups for different kinds of Moho work -- and users could share shortcut sets.

As Moho matures, more users would appreciate being able to do this, I bet -- animation takes a lot of time, and being able to streamline our workflow like this would be much appreciated, I'm sure. I know I'd like it. Thanks in advance for considering it.
User avatar
mooncaine
Posts: 206
Joined: Wed May 04, 2005 9:31 pm
Location: atlanta, ga, usa

Questions about editing the .strings file

Post by mooncaine »

I'm going to take a crack at making some shortcuts. Thanks for telling us about that .strings file. I'm making a backup of the original that I downloaded before I even try using an edited version.

1. Is there a way to make shortcuts that use other modifier keys, like Shift, Alt, or Ctrl [I'm on a Mac, & I see only CMD shortcuts in the menus of Moho].

2. What will happen if I accidentally assign the same shortcut key twice? Will Moho crash on opening, or will it do something else [like crash only when I try to use that shortcut]?

3. When I save the .strings file, what kind of line endings and carriage returns should I use? DOS, UNIX or Mac? Or something else?

4. My text editor for this, SubEthaEdit, offers me a choice of "Encoding" for text files, such as "UTF-8" Unicode. What should I use on this .strings file?

Thanks in advance, and please take your time -- I'm not in a hurry on this.
User avatar
Lost Marble
Site Admin
Posts: 2354
Joined: Tue Aug 03, 2004 6:02 pm
Location: Scotts Valley, California, USA
Contact:

Post by Lost Marble »

1. No, the shortcuts can only use Ctrl (Windows) or Cmd (Mac).
2. The shortcut that appears earlier in the menu layout will be activated, and the later one ignored.
3. Doesn't matter.
4. Just save it as a plain ASCII text file.
User avatar
mooncaine
Posts: 206
Joined: Wed May 04, 2005 9:31 pm
Location: atlanta, ga, usa

Post by mooncaine »

Great, thanks! :)
User avatar
mooncaine
Posts: 206
Joined: Wed May 04, 2005 9:31 pm
Location: atlanta, ga, usa

Can we set custom shortcuts in ASP? How? Old method broken?

Post by mooncaine »

I tried these same steps with the "Anime Studio.5.4.strings" file, but ASP isn't seeing the changes.

Is there a different way to make my own custom keyboard shortcuts for Anime Studio Pro? It would really help me if I could set shortcuts for "Select Connected" and "Select None", for example. I'd like to change the "Save" shortcut to "Save As...".

I used TextEdit in Mac OSX to save the "Anime Studio.5.4.strings" with my changes, but ASP doesn't seem to take the changes. All the keyboard shortcuts look the same on the menus, and they act the same. Here are two example lines from that file. They *should* have assigned keyboard shortcuts, but they didn't:

Code: Select all

### Main Window

1501	"Save AsS"

3040	"Select Connected/"
I also tried using TextWrangler, started with a fresh copy of "Anime Studio.5.4.strings", made a few changes, and saved as UTF-8 text file. Still don't see the custom keys, and they don't work.
User avatar
Rasheed
Posts: 2008
Joined: Tue May 17, 2005 8:30 am
Location: The Netherlands

Post by Rasheed »

I think the shortcut keys have been integrated in the program itself. Unfortunately, they can't be changed anymore. It would be great if there were a Preference menu to change the shortcut keys from within the program itself.
User avatar
mooncaine
Posts: 206
Joined: Wed May 04, 2005 9:31 pm
Location: atlanta, ga, usa

Post by mooncaine »

Very unfortunate, indeed. Thanks.
User avatar
Rai López
Posts: 2289
Joined: Sun Aug 08, 2004 1:41 pm
Location: Spain
Contact:

Post by Rai López »

...
User avatar
Rasheed
Posts: 2008
Joined: Tue May 17, 2005 8:30 am
Location: The Netherlands

Post by Rasheed »

Ah, I was mistaken. Thanks, Ramón.
User avatar
mooncaine
Posts: 206
Joined: Wed May 04, 2005 9:31 pm
Location: atlanta, ga, usa

Post by mooncaine »

Looks like good news! Yay! I can't wait to get back to work and try it! My hands will be so grateful.
HassleHead
Posts: 59
Joined: Sat Jan 06, 2007 12:37 am
Location: NYC
Contact:

Yeah, no

Post by HassleHead »

I changed my .strings file and the shortcut showed up in the interface but it didn't work. What I hoped to do was create a shortcut for "select connected" which seems like a particularly useful shortcut, moreso than some of the others.
Post Reply