I am trying to set up some personal keyboard shortcuts. I am encountering two problems.
Aside from the very basic shortcuts given in the Quick Reference Card I have been unable to find a proper comprehensive listing anywhere. This means I don’t know what combos to avoid because they are already assigned. I found a Ruby one liner (puts Sketchup::get_shortcuts) which should display them but I haven’t a clue how to use this as I have never touched on Ruby or the console.
When I try in the Preferences keyboard shortcuts dialogue to enter my own shortcuts, no matter what combos I try, no matter how ordinary or how multiply modifier obscure, I always unfailingly receive the message “Key cannot be used as shortcut”. I haven’t been able find a single combo available to me. Not one! Everything I can think of is rejected.
Clearly I am doing something wrong here. Is there a set of coherent rules or principles that one must follow to find acceptable key combos? Am I missing something blindingly obvious here ?
If I remember correctly on a mac you don’t hit enter after typing the key you want, just click somewhere else. I think from memory it thinks you want to use the Enter Key and you obviously can’t do that.
Edit: simultaneous post. Oh, Snap. I guess I did remember correctly.
I just knew this was going to be something mortifyingly and embarrassingly obvious because I have assigned shortcuts in the past without difficulties. I just could’t remember what it was different I had been doing. :o(
Yes. Click elsewhere does the trick. Problem solved thanks.
to clarify something I touched on in the other thread…
you can set Ctrl + Alt + key shortcuts, but it isn’t obvious because the ⌃ is hidden until you release all the keys…
I also said that ‘generally’ input boxes require a ‘Return’ and/or ‘clicking out’, I should have clarified the this is an ‘or’ situation, as ‘Return’ clears the input…
Well, let’s teach ya’ something now. Open the Ruby console from the Window menu.
Type the command
puts Sketchup::get_shortcuts
in the input bar at the bottom and hit ENTER.
A listing of all shortcuts (as set) will be output. You can hilight select the list and copy it to some text editor if you’d like to save it (make your own Reference card, etc.)
def format(ary)
first = []
second = []
ary.each do |sc|
pair = sc.split("\t")
first << pair[1].gsub(/(.+\/)/, '')
second << pair[0]
end
[first.join("\n"),second.join("\n")]
end
note = format(Sketchup::get_shortcuts)
Sketchup.active_model.add_note(note[1],0.22,0.02)
Sketchup.active_model.add_note(note[0],0.02,0.02)
you could save a second Template just for practicing…
First, thanks for the lesson. My first baby steps … :o)
It does produce a list but a very short and very incomplete one. Trolling through the menus there are dozens of shortcuts there that this Ruby function does not list. All the shortcuts prefaced with the Cmd Key for example.
I can’t help feeling that this isn’t terribly well implemented or documented in Sketchup. In researching this subject before I posted my query I found a surprising number of posts from people unable to find a listing. I would have thought this was something that Sketchup should publish in an easily accessible form. I do think there should be a better way of discovering the shortcuts than going the menus and sub menus one by one and writing them down. It seems to me such a basic requirement.
I also discovered that the menu items offered in the customisation menu are incomplete. For example I can use a standard Sketchup shortcut to create groups. I would like a complimentary shortcut to explode them when needed. So I went into the shortcut dialogue in Preferences to create one. It’s not on offer to create. I can’t. I don’t understand why Sketchup offers the possibility to create shortcuts to some menu items but not others.
I now have most of my desired personal shortcuts happily set up and this a very minor moan, but it all feels as if it could be far better implemented.
Yes very neat John. Thanks for the suggestion. But see my reply to Dan above. The list is way from complete. Its a great idea but with such an incomplete listing not terribly useful …
There’s no need for me John. I now have found all the ones I need.
EDIT: the other missing ones in SU Prefs need a selection before you see them in there…
so select a group and all the missing group options show up…
Ah. Thank you for that! I will go play. Strangely that underlines a little bit my earlier comments about implementation. It’s a pity that Sketchup’s knowledge base article on creating shortcuts makes no mention of this at all. It really would be helpful. It took you exactly two short sentences to explain. It shouldn’t be too onerous to include them in the official instructions.
Sorry if I sound churlish. I really don’t mean to. I love this app and have used it almost since it’s very inception at a surface level and, many years ago, introduced my architect to it. I now have a project where I am really having to get to grips with it in far more depth and as always it is the tiny, tiny avoidable niggles that are the most annoying. :o))
On OS X, the shortcuts that appear in the base menus are compiled into the app when its GUI is made. They do not appear on the user-editable preferences list and cannot be modified without hacking the GUI. Also, you can’t assign any user-provided shortcuts that start with the command key. John found a way to include them in the list with the others, but because of these limitations they are on the list for info only.
The link you provide points to precisely the Knowledge Base article I was referring to. Unless I am mistaken It makes no mention of the fact that certain shortcuts require an image selection to be made before become visible and can be edited. I really don’t want to be negative or unappreciative of a great app. But we all have our weaknesses and I think in this particular instance this article is a fails to properly explain the basics of how to use one of Sketchup’s features.
I seem inadvertently to be stirring a hornets nest. I really don’t want to. I was simply seeking clarification.
Thanks for that explanation. That’s extremely clear.
Truth is I didn’t want to change existing shortcuts neither did I necessarily want to create shortcuts prefaced by the Cmd key. I simply wanted to know what are the limitations and requirements for the creation on of custom keys since, in my opinion, this is poorly documented and, despite careful research of other forum topics, I was unable to find an answer without posing the question here.
Thanks to posts like yours, and John’s and Dan’s a clear picture is emerging.
Now I am simply asking should that be necessary if shortcuts were a little more adequately documented in the first place.
Once again my apologies if I am grasping the wrong end of the stick here.