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

    [Plugin] Shortcutter Beta

    Scheduled Pinned Locked Moved Plugins
    98 Posts 14 Posters 43.4k Views 14 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

      Here's the current situation.

      PCs

      In <=v2014 shortcuts might include 'Plugins/' items.
      If you then export a "Preferences.dat" file those shortcuts will include any 'Plugins/' ones.
      PCs >=v2015, as it installs earlier shortcuts are 'migrated' from say v2014.
      Quite ill-advisedly v2015 has an 'Extensions' menu rather than a 'Plugins' menu.
      If you import an earlier-version "Preferences.dat" file into v2015 you might create some shortcuts looking at 'Plugins/', these are ineffective as that menu item does not exist, it never will.
      BUT when the list of shortcuts is assembled it includes the spurious 'Plugins/' ones too !

      The Shortcutter reports them.
      Gábor on the sever-side MUST include for 'Plugins' AND 'Extensions'.
      If you are on v2015 and it lists ANY items under 'Plugins' you need to reassign them to the equivalent item in the 'Extensions' menu...
      You can do that manually, OR if you have an earlier-version "Preferences.dat" you can always edit it using Notepad[++] and find replace 'Plugins/' with 'Extensions/', save it as "Preferences2015.dat", re-import that into v2015, and when prompted choose to overwrite any 'Plugins/' shortcuts with the equivalent 'Extensions/' one...

      MACs

      The plist contains the shortcuts.
      I think that 'Plugins' are reported differently using arcane codes rather than readable paths, they are listed as 'Other/' in the data sent to the server.
      Copying the plist between versions should replicate the shortcuts.
      I think that Gábor currently translates 'Other' as 'Plugins', so in v2015 they are still reported as 'Plugins' even when they appear under 'Extensions' ?
      IF Gábor can extract the SketchUp version he can decide to use 'Extensions' in >=v2015 ??

      TIG

      1 Reply Last reply Reply Quote 0
      • G Offline
        Gábor
        last edited by

        @TIG: See our PM conversation. 😄

        1 Reply Last reply Reply Quote 0
        • D Offline
          driven
          last edited by

          I see Extensions, what's so arcane? migrated Plugins...

          learn from the mistakes of others, you may not live long enough to make them all yourself...

          1 Reply Last reply Reply Quote 0
          • TIGT Offline
            TIG Moderator
            last edited by

            No issues.
            It turns out that on MACs Gábor keeps 'Other' and also uses 'Plugins' OR 'Extensions' when they are available...
            In the MAC's plist it's difficult to trap where some menu items are, so they go in 'Other' [not used on PCs], and the 'Plugins'/AKA 'Extensions' list is also used if they have entries.
            Reading the MAC's plist into a 'readable' format is the challenge...

            On the PC we need to trap for users who import a dat file from an older version that includes 'Plugins/...' as that is NOT reflected in a corresponding 'Extensions/...' entry...
            At least the report'd show them what's up in v2015 !

            TIG

            1 Reply Last reply Reply Quote 0
            • TIGT Offline
              TIG Moderator
              last edited by

              @pherim said:

              Not really sure what you're trying to say with your last paragraph, but as I said before, I had already changed all Shortcuts to the extensions menu before I even reported this problem here. Still, extensions does not show up at all.

              edit: alright, I finally got it. I had to reset Shortcuts completely and then assign new shortcuts altogether, and now Extensions shows up.
              Not sure what you did 😕

              But for most PC users Extensions DO list properly.
              Have you resized the dialog to see the bottom part ?
              Have you definitely cleared the Internet Explorer cache ?
              The only 'real' PC issue is displaying Extensions AND Plugins in v2015, if the user has imported an older dat file...

              TIG

              1 Reply Last reply Reply Quote 0
              • P Offline
                Pherim
                last edited by

                Not really sure what you're trying to say with your last paragraph, but as I said before, I had already changed all Shortcuts to the extensions menu before I even reported this problem here. Still, extensions does not show up at all.

                edit: alright, I finally got it. I had to reset Shortcuts completely and then assign new shortcuts altogether, and now Extensions has appeared. But importing from SU2013 (probably 2014 as well) doesn't seem to work at all, I tried exporting and re-importing the settings from 2015, but Extensions was gone again, even though there were no shortcuts left that pointed to "Plugins".

                1 Reply Last reply Reply Quote 0
                • Rich O BrienR Offline
                  Rich O Brien Moderator
                  last edited by

                  I did no import of dat files on 2015

                  Download the free D'oh Book for SketchUp 📖

                  1 Reply Last reply Reply Quote 0
                  • P Offline
                    Pherim
                    last edited by

                    And it's gone again... maybe I try to assign a shortcut it doesn't like to a function it doesn't like, but then again it works in SU2013.

                    1 Reply Last reply Reply Quote 0
                    • TIGT Offline
                      TIG Moderator
                      last edited by

                      @rich o brien said:

                      I did no import of dat files on 2015
                      So you ought to have NO 'Plugins/...' entries ?
                      If you use Sketchup.get_shortcuts.grep(/Plugin/) do you get a result ?
                      If so, then it begs the question, "How did 'they' get there?"
                      When v2015 installs and brings over the earlier versions shortcuts does it not make Plugins >>> Extensions, maybe not...

                      At least the "Shortcutter" can show users of v2015 those shortcuts incorrectly pointing at a non-existent Plugins menu !

                      They can then export the v2015 Preferences.dat, use Notepad++ to edit it and replace 'Plugins/' with 'Extensions/' ans save, then import it back in, accepting the overwrite of the incorrect shortcuts.

                      When "Shortcutter" works again there should be no 'Plugins' items listed, as they will have all been moved to be 'Extensions' ?

                      TIG

                      1 Reply Last reply Reply Quote 0
                      • Rich O BrienR Offline
                        Rich O Brien Moderator
                        last edited by

                        I sent you a long rambling email rather than put it here.

                        But, yes, this make no sense whatsoever.

                        Download the free D'oh Book for SketchUp 📖

                        1 Reply Last reply Reply Quote 0
                        • D Offline
                          driven
                          last edited by

                          @tig said:

                          When v2015 installs and brings over the earlier versions shortcuts does it not make Plugins >>> Extensions, maybe not...

                          certainly not on the mac...
                          thats why I wrote the short script I posted earlier...
                          There was also a post in the 'doh' forum that implied you needed to edit the dat on PC...

                          couldn't the search and replace be added to this, for those in need?

                          john

                          learn from the mistakes of others, you may not live long enough to make them all yourself...

                          1 Reply Last reply Reply Quote 0
                          • TIGT Offline
                            TIG Moderator
                            last edited by

                            So Trimble have messed up. 😒
                            They transfer shortcuts from an earlier version, but seem to keep useless Plugins/... entries, because they need to refer to menu Extensions/... - assuming you have the same scripts installed [eventually].

                            Sorry for MAC users - don't know about editing plists etc...

                            So my PC ideas of exporting the "Preferences.dat" from v2015, editing it with Notepad++ to replace Plugins/ with Extensions/, saving, then importing back into v2015, overwriting existing shortcuts...
                            WOULD fix the issue.
                            Meanwhile "Shortcutter" can show up the issue as having 'Plugins' items listed in v2015 means you have NOT go a proper shortcut list set up !

                            TIG

                            1 Reply Last reply Reply Quote 0
                            • D Offline
                              driven
                              last edited by

                              @tig said:

                              Sorry for MAC users - don't know about editing plists etc...

                              that's why I posted the code...
                              it's very easy from ruby...
                              here it is again...

                              require "pathname"
                              target = Pathname(Sketchup.find_support_files("").grep(/User/)[0]).parent
                              shortcuts = Pathname(target + "Shortcuts.plist")           
                              File.write(shortcuts,File.open(shortcuts,&;read).gsub("Plugins","Extensions")) if File.exists?(shortcuts)
                              

                              learn from the mistakes of others, you may not live long enough to make them all yourself...

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

                                FWIW, I just got to my PC. I checked and it was showing "Plugin" under the Shortcutter. I exported Preferences.dat, opened it, edited to replace all instances of 'Plugins' with 'Extensions. Saved, re-imported and checked the Shortcutter again. Now it shows 'Extensions' as TIG described. Easy conversion.

                                Etaoin Shrdlu

                                %

                                (THERE'S NO PLACE LIKE)

                                G28 X0.0 Y0.0 Z0.0

                                M30

                                %

                                1 Reply Last reply Reply Quote 0
                                • D Offline
                                  driven
                                  last edited by

                                  @dave, if you run that snippet in 'Ruby Console' on your mac, it does the equivalent to the plist...

                                  john

                                  learn from the mistakes of others, you may not live long enough to make them all yourself...

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

                                    Thanks John. I'll give that a try when I get back to my Mac. 👍

                                    Etaoin Shrdlu

                                    %

                                    (THERE'S NO PLACE LIKE)

                                    G28 X0.0 Y0.0 Z0.0

                                    M30

                                    %

                                    1 Reply Last reply Reply Quote 0
                                    • P Offline
                                      Pherim
                                      last edited by

                                      Ok, I don't know why, but now it seems to work. I set up all shortcuts by hand again and now I see everything as it should be.

                                      1 Reply Last reply Reply Quote 0
                                      • Rich O BrienR Offline
                                        Rich O Brien Moderator
                                        last edited by

                                        Gabor tweaked some JS code that TIG highlighted.

                                        Download the free D'oh Book for SketchUp 📖

                                        1 Reply Last reply Reply Quote 0
                                        • shake1S Offline
                                          shake1
                                          last edited by

                                          Hi, it is possible?

                                          http://i.imgur.com/DbwVwbz.jpg

                                          1 Reply Last reply Reply Quote 0
                                          • jiminy-billy-bobJ Offline
                                            jiminy-billy-bob
                                            last edited by

                                            It think that could be a feature Fredo could add to his plugins himself. Ask him.

                                            25% off Skatter for SketchUcation Premium Members

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

                                            Advertisement