Oops, your profile's looking a bit empty! To help us tailor your experience, please fill in key details like your SketchUp version, skill level, operating system, and more. Update and save your info on your profile page today!
🫛 Lightbeans Update | Metallic and Roughness auto-applied in SketchUp 2025+ Download
Little trick to find out your desired keycode
-
prints the code to the ruby console
class KeysTool def onKeyDown(key, rpt, flags, view) puts "key; " + key.to_s + ", repeat; " + rpt.to_s + ", flags; " + flags.to_s end end Sketchup.active_model.select_tool KeysTool.newpaste the above code into webconsole, execute
after that focus from the webconsole to sketchup and pressing keyboard prints respective codes to the console -
no, sorry for causing confusion. this is only helpful when developing tool plugins and you want to use keyboard to control your tool behavior, you need a code of each key so that you can specify what to look for. these codes are nowhere to be found (su ruby api) so only way I found is to run the key discovery tool posted above and pressing keyboard print respective codes to the ruby console.
Advertisement