sketchucation logo sketchucation
    • Login
    ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info

    Shortcuts Plugin Possible?

    Scheduled Pinned Locked Moved Developers' Forum
    19 Posts 5 Posters 8.9k Views 5 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • TIGT Offline
      TIG Moderator
      last edited by

      There are already some threads about this...
      Dead link

      On a PC there is a Registry entry for the shortcuts - run Regedit to see it.

      MyComputer...
      HKEY_CURRENT_USER\Software\Google\SketchUp6\Settings

      Num_Shortcuts >>> contains number of short-cuts as a 'number' e.g. '999' (not sure if it's in decimal or hex ?)
      named thus:
      Shortcut_1 to Shortcut_999 etc...

      each contains the shortcut entered thus:
      "0 0 0 A selectArcTool:"
      where the first three are the three modifier keys Ctrl:Alt:Shift [on:off=1:0], the next is the key itself [ABC etc] and then the action...

      If it's not a built in SUp action then the path to the Menu item shows thus:
      "1 0 1 S Plugins/Steel Sections"

      With some ingenuity you could script something that'd re-write this using the built in:

      Sketchup.write_defaults("section","variable","value")

      (there is also a read_defaults method to find what's already set)...

      TIG

      1 Reply Last reply Reply Quote 0
      • S Offline
        Shaun Tennant
        last edited by

        TIG,
        I'm very glad you are here! - you guys are amazing. I get so tired of not having "a" as my add scene shortcut, and having to re-do the prefs or re-load my shortcut file.. Arrrgghhh. I don't know how many times i asked Google to fix this... Thanks for the tips on the registry though kindly appreciated!

        [Shaun Tennant]

        Whether they find a life there or not, I think Jupiter should be called an enemy planet.

        • Jack Handey
        1 Reply Last reply Reply Quote 0
        • Dave RD Offline
          Dave R
          last edited by

          Thanks. I saw cadfather's post just before leaving work. I copied the registry file after I had made the shortcut for adding scenes. It appears in the registry but I haven't found the secret to getting the shortcut activated from that saved file. I get messages asking me if I want to add that info to the correct registry but there's no change in SU. I've tried it before opening SU and after. So what am I doing wrong?

          Edited to add: the shortcut shows in the registry but doesn't show as set when I go to Window>Preferences>Shortcuts

          By the way, it's that Scene Add thing I'm after.

          Etaoin Shrdlu

          %

          (THERE'S NO PLACE LIKE)

          G28 X0.0 Y0.0 Z0.0

          M30

          %

          1 Reply Last reply Reply Quote 0
          • CadFatherC Offline
            CadFather
            last edited by

            on my computer it was quite simple - everything worked, toolbars layouts and keyboard shortcuts.
            (which differ much from google)

            i'm attaching 2 files cleaner and master. first back up the key (has to be this key and all inside) [HKEY_CURRENT_USER\SOFTWARE\Google\SketchUp6] on your pc. (ex. dave.reg)

            you can keep regedit open at the key > run cleaner.reg and you will see the key disappear.
            if you open SU now you will see the interface go back to default..

            and...there is a new key in the registry called.. guess what? [Sketchup6]

            now close SU and run cleaner.reg again > double click on the dave.reg key you saved before
            and start SU.......


            REGS.zip


            step.jpg

            1 Reply Last reply Reply Quote 0
            • Dave RD Offline
              Dave R
              last edited by

              The two files in the zip file are SU_Clearer and SU_Training. Is that right?

              For some reason, after looking at the registry and attempting the moves from your other thread I am now getting Bug Splats upon closing SU. I was going to uninstall it all and reinstall but now I wonder if your cleaner should be run instead.

              Etaoin Shrdlu

              %

              (THERE'S NO PLACE LIKE)

              G28 X0.0 Y0.0 Z0.0

              M30

              %

              1 Reply Last reply Reply Quote 0
              • Dave RD Offline
                Dave R
                last edited by

                Actually, I ran your cleaner and then went back and reset SU manually. that got rid of the bug splat.

                Etaoin Shrdlu

                %

                (THERE'S NO PLACE LIKE)

                G28 X0.0 Y0.0 Z0.0

                M30

                %

                1 Reply Last reply Reply Quote 0
                • CadFatherC Offline
                  CadFather
                  last edited by

                  ..fantastic - i just went and tried it on a 'new' pc - it all worked..

                  and on my daughter's laptop! all my settings, cuts, rubys... everything........my sketchup portable

                  πŸ’š

                  1 Reply Last reply Reply Quote 0
                  • Dave RD Offline
                    Dave R
                    last edited by

                    So, let me see if I understand this. If I open SU and set the shortcut I want to add scenes and then export the entire SketchUp registry [HKEY_CURRENT_USER\SOFTWARE\Google\SketchUp6] and save it as dave.reg, I should be able to double click on dave.reg and then open SU to find that shortcut is still active?

                    What confuses me is that with SU closed the the Registry, under Settings shows there is a shorcut set for Pageadd: but when I open SU the shortcut doesn't work.

                    Etaoin Shrdlu

                    %

                    (THERE'S NO PLACE LIKE)

                    G28 X0.0 Y0.0 Z0.0

                    M30

                    %

                    1 Reply Last reply Reply Quote 0
                    • CadFatherC Offline
                      CadFather
                      last edited by

                      that's strange because it does on mine...i mean all the others..let me try with add scenes..

                      who knows maybe a bug

                      wow, just tried (twice) the add scene doen't work 😲
                      mine is F12 i will try a different key

                      1 Reply Last reply Reply Quote 0
                      • Dave RD Offline
                        Dave R
                        last edited by

                        The SketchUp folks acknowledged awhile ago that there were a few user set shorcuts that don't stick after setting. Add scenes was one.

                        That is why I was hoping for a Ruby script that would run at SU startup (like the one that calls the Select tool instead of the Pencil) and set the shortcuts by reading the preferences.dat file that is generated when you click Export in the Shortcuts setting dialog box.

                        I use Alt+A to add a scene but it won't stick ether.

                        Etaoin Shrdlu

                        %

                        (THERE'S NO PLACE LIKE)

                        G28 X0.0 Y0.0 Z0.0

                        M30

                        %

                        1 Reply Last reply Reply Quote 0
                        • CadFatherC Offline
                          CadFather
                          last edited by

                          got it - the problem is that it saves the key as 'add page'
                          instead we need it under 'View/Animation/Add Scene'

                          i have added it to the registry manually (saved the key) now it works

                          what key do you normally use?

                          1 Reply Last reply Reply Quote 0
                          • Dave RD Offline
                            Dave R
                            last edited by

                            Hmm. So how does that look in the Registry. In other words, what would I type to add that to mine?

                            The curious thing is that I have U set to updatescenes and it shows in the Registry as pageUpdate: and no reference to scene.

                            Etaoin Shrdlu

                            %

                            (THERE'S NO PLACE LIKE)

                            G28 X0.0 Y0.0 Z0.0

                            M30

                            %

                            1 Reply Last reply Reply Quote 0
                            • Dave RD Offline
                              Dave R
                              last edited by

                              Ha! I got it! I edited the entry changing it from pageAdd: to View/Animation/Add Scene and now I have a shortcut.

                              Woo hoo! Thank you sir. Now we need to tell the world.

                              Etaoin Shrdlu

                              %

                              (THERE'S NO PLACE LIKE)

                              G28 X0.0 Y0.0 Z0.0

                              M30

                              %

                              1 Reply Last reply Reply Quote 0
                              • CadFatherC Offline
                                CadFather
                                last edited by

                                that's right, @last folks must have forgotten to let google people know..

                                here's a ruby script that will tell you the proper name, you just have to write that over the unusable one.
                                πŸ€“


                                SHORTCUTS.zip

                                1 Reply Last reply Reply Quote 0
                                • Dave RD Offline
                                  Dave R
                                  last edited by

                                  I think I have that one. I need to look.

                                  Thanks again.

                                  Etaoin Shrdlu

                                  %

                                  (THERE'S NO PLACE LIKE)

                                  G28 X0.0 Y0.0 Z0.0

                                  M30

                                  %

                                  1 Reply Last reply Reply Quote 0
                                  • CadFatherC Offline
                                    CadFather
                                    last edited by

                                    the CadFather strikes again! πŸ’š

                                    EDIT: one more bug, if you go and enter a new (or the same) key for 'add scenes', 'update scenes' etc
                                    it will overwrite your tweak - however it will work as long as once you have set it you leave it alone.

                                    and that is the end for tonight

                                    1 Reply Last reply Reply Quote 0
                                    • 1 / 1
                                    • First post
                                      Last post
                                    Buy SketchPlus
                                    Buy SUbD
                                    Buy WrapR
                                    Buy eBook
                                    Buy Modelur
                                    Buy Vertex Tools
                                    Buy SketchCuisine
                                    Buy FormFonts

                                    Advertisement