• Login
sketchucation logo sketchucation
  • Login
🤑 30% Off | Artisan 2 on sale until April 30th Buy Now

[Plugin] LordOfTheToolbars - v2.9c - 20 Dec 24

Scheduled Pinned Locked Moved Plugins
449 Posts 87 Posters 314.0k Views
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.
  • F Offline
    fredo6
    last edited by 29 Nov 2022, 13:12

    NEW RELEASE: LordOfTheToolbars v2.4a - 29 Nov 22

    Requirements

    • LibFredo6: v13.6a or above
    • Sketchup version: SU2017 and above

    LordOfTheToolbars 2.4a includes

    • Bug fixing about the selection context menu

    DO NOT FORGET TO UPGRADE TO LibFredo6 v13.6a or above

    Home Page of LordOfTheToolbars for information and Download.

    Main post of this LordOfTheToolbars thread.

    1 Reply Last reply Reply Quote 0
    • U Offline
      uwesketch
      last edited by 30 Dec 2022, 10:43

      Hi Fredo,
      this is a perfect tool to organize and combine the toolbar buttons. Thanks.
      I have a plugin DL light that comes itself with a dozen tool bars and each toolbar has more than 10 buttons. To not get too many entries in the vignette stripe, I put them all in one palette.
      But then it is difficult to distinguish them.
      Is there a possibility to add a text separator in a palette?
      Like this I could add a short name (e.g. original toolbar name) at the beginning of each line of buttons in the palette.
      Or instead putting an empty line between two rows of buttons, have some text.
      Kind Regards Uwe

      1 Reply Last reply Reply Quote 0
      • F Offline
        fredo6
        last edited by 30 Dec 2022, 14:33

        You can put line breaks and separators, but not a text. You can also enlarge the size of the palette to make the icons more distinguishable.

        You could also create custom commands with a specific icon (doing nothing special by themselves) and use them at the beginning of a line break to indicate the family of icons of the DL Light toolbars.

        Last possibility: ask the author of DL Light to make icons more distinguishable at reasonable pixel size.

        1 Reply Last reply Reply Quote 0
        • U Offline
          uwesketch
          last edited by 30 Dec 2022, 23:40

          Ok, clear: Palettes may only contain buttons with icons by design.

          What I like, is that if a plugin is deactivated/disabled in EM, that then the Icons in the palettes are still visible.
          Therefor I wonder, if it would be possible, that in case a Plugin is disabled, you would add an option in the context menu of the button in the palette that allows me to activate the related plugin (either temporary or permanent).
          Like this I could deactivate most plugins and activate them only when needed - right from the LOTT palette with a single click.

          While playing around, I figured, that when activating any Fredo Plugin in the EM, I get an error:
          Error when activating a Fredo Plugin

          1 Reply Last reply Reply Quote 0
          • F Offline
            fredo6
            last edited by 31 Dec 2022, 08:06

            If a plugin is deactivated in the Plugin Manager, it may require a restart of Sketchup to be loaded. This is the case of some of my plugins, because of menus and dependencies with LibFredo6 (hence the message).

            However, there is no hurt in loading plugins, whether used or not. My plugins just loads the minimum to appear in menu and toolbars. The rest of the code is loaded on the fly at first utilisation.

            1 Reply Last reply Reply Quote 0
            • U Offline
              uwesketch
              last edited by 31 Dec 2022, 12:04

              These messages are not really user friendly, but also not a killer.

              Using LOTT, it means for me, I do not need additional toolbars in Sketchup. Only LOTT palettes.
              As the plugin buttons are already „registered“ in the palettes, I do not need the sketchup toolbars to be loaded, when enabling a plugin.
              LOTT should just enable the greyed out button in the palette as soon as a plugin gets enabled.

              For example, when enabling the plugin „Eneroth Reference manager“, the Sketchup toolbar and menu entries get created without restating Sketchup. But the buttons in the palette stay greyed out. This is not nice.

              The reason why I do not enable all installed plugins is that Sketchup starts much quicker without.

              1 Reply Last reply Reply Quote 0
              • R Offline
                rv1974
                last edited by 16 Feb 2023, 21:40

                Thanks to LOTT transition to 2023 took seconds 👍
                BTW at last 2023 contains users shortcuts in the search

                1 Reply Last reply Reply Quote 0
                • L Offline
                  laurent002
                  last edited by 21 Feb 2023, 07:51

                  Bonjour,
                  Je viens d'essayer sketchup 2023, mais il semble que l'on ne peut avoir accès dans master toolbar manager aux menus, ce qui empêche de créer les icons et les toolbar.

                  Merci
                  Bonne journée à vous

                  1 Reply Last reply Reply Quote 0
                  • F Offline
                    fredo6
                    last edited by 21 Feb 2023, 21:53

                    @laurent002 said:

                    Je viens d'essayer sketchup 2023, mais il semble que l'on ne peut avoir accès dans master toolbar manager aux menus, ce qui empêche de créer les icons et les toolbar.

                    Yes. For the Windows version, I had to remove everything related to Menus, as well as the Clean Screen feature... This is due to the new GUI framework that comes with SU2023.

                    1 Reply Last reply Reply Quote 0
                    • G Offline
                      Gordon McLaren
                      last edited by 22 Feb 2023, 11:39

                      Hi Fredo,
                      Thank you for all the fantastic work you do.
                      I use the "Personal Command Menu" often and would definitely like to see it working again. Are you able to re-write the part of your script that references the "GUI framework"?
                      This would be very much appreciated.
                      Kind regards,
                      Gordon

                      1 Reply Last reply Reply Quote 0
                      • F Offline
                        fredo6
                        last edited by 22 Feb 2023, 13:17

                        @gordon mclaren said:

                        Are you able to re-write the part of your script that references the "GUI framework"?

                        Nope. The new GUI framework precisely allows no access to menus any longer, even with hacking.

                        1 Reply Last reply Reply Quote 0
                        • panixiaP Offline
                          panixia
                          last edited by 22 Feb 2023, 17:13

                          @gordon mclaren said:

                          I use the "Personal Command Menu" often and would definitely like to see it working again.

                          I have a workaround for this.
                          Assign some weird shortcut to your menu item (I say "weird" because maybe you don't want to waste some available handy keyboard shortcut for this).
                          Then create a ruby script button and type in the following:

                          shell = WIN32OLE;;new("WScript.Shell")
                          shell.SendKeys "InsertYourWeirdSendkeyShortcutHere"
                          
                          

                          Insert your shortcut between quotes using the "Microsoft sendkeys" syntax, you can find the reference at this link:

                          Link Preview Image
                          SendKeys statement (VBA)

                          Office VBA reference topic

                          favicon

                          (learn.microsoft.com)

                          Here's an example.. this one would be equivalent to press "Ctrl+Shift+ALt+F11" each time you push hit the toolbar button.

                          SendKeysShortchut.JPG

                          1 Reply Last reply Reply Quote 0
                          • K Offline
                            kaas
                            last edited by 22 Feb 2023, 18:17

                            @panixia said:

                            ..I have a workaround for this....

                            shell = WIN32OLE;;new("WScript.Shell")
                            > shell.SendKeys "InsertYourWeirdSendkeyShortcutHere"
                            > 
                            

                            Just be aware that this fix won't last forever. I'm using it in one of my plugins and SU2022 is already warning me it will be deprecated in a next version of Ruby.

                            1 Reply Last reply Reply Quote 0
                            • panixiaP Offline
                              panixia
                              last edited by 22 Feb 2023, 19:18

                              @kaas said:

                              Just be aware that this fix won't last forever. I'm using it in one of my plugins and SU2022 is already warning me it will be deprecated in a next version of Ruby.

                              Well, I'm not a developer so I don't know a lot about this.. I've just found this snippet long ago to make it work with the old "Toolbar Editor" plugin.
                              Actually I don't need this that much right now, because I still use 2021 with classic perpetual license and LOTT works like a charm in SU21.
                              By the way I tested this in 2023 and it works 100% for now.
                              Maybe in future Ruby version this will be replaced with some different syntax to handle Sendkeys ❓

                              1 Reply Last reply Reply Quote 0
                              • G Offline
                                Gordon McLaren
                                last edited by 22 Feb 2023, 19:42

                                Thanks for all the suggestions/workarounds, I will give them a try.

                                1 Reply Last reply Reply Quote 0
                                • R Offline
                                  rv1974
                                  last edited by 23 Feb 2023, 05:21

                                  @Fredo is implementing of multiple key shortcuts is possible via plugin? A-la Revit, for example - EP for 'edit profile builder's path'?

                                  1 Reply Last reply Reply Quote 0
                                  • G Offline
                                    Gordon McLaren
                                    last edited by 24 Feb 2023, 06:20

                                    @Panixia - Thanks once again for the work-around, I have implemented it and it works like a charm.

                                    1 Reply Last reply Reply Quote 0
                                    • panixiaP Offline
                                      panixia
                                      last edited by 24 Feb 2023, 07:06

                                      Glad that it helped 😄

                                      1 Reply Last reply Reply Quote 0
                                      • A Offline
                                        AISmebel
                                        last edited by 2 Mar 2023, 07:13

                                        @panixia said:

                                        @gordon mclaren said:

                                        I use the "Personal Command Menu" often and would definitely like to see it working again.

                                        I have a workaround for this.
                                        Assign some weird shortcut to your menu item (I say "weird" because maybe you don't want to waste some available handy keyboard shortcut for this).
                                        Then create a ruby script button and type in the following:

                                        shell = WIN32OLE;;new("WScript.Shell")
                                        > shell.SendKeys "InsertYourWeirdSendkeyShortcutHere"
                                        > 
                                        

                                        Insert your shortcut between quotes using the "Microsoft sendkeys" syntax, you can find the reference at this link:

                                        Link Preview Image
                                        SendKeys statement (VBA)

                                        Office VBA reference topic

                                        favicon

                                        (learn.microsoft.com)

                                        Here's an example.. this one would be equivalent to press "Ctrl+Shift+Alt+F11" each time you hit the toolbar button.

                                        [attachment=0:16wbl6tz]<!-- ia0 -->SendKeysShortchut.JPG<!-- ia0 -->[/attachment:16wbl6tz]

                                        Hi. I could not figure out your instructions on how to restore the tools from the "Menu" ((
                                        Maybe write in more detail? Thank you in advance.

                                        1 Reply Last reply Reply Quote 0
                                        • panixiaP Offline
                                          panixia
                                          last edited by 2 Mar 2023, 15:58

                                          @aismebel said:

                                          Hi. I could not figure out your instructions on how to restore the tools from the "Menu" ((
                                          Maybe write in more detail? Thank you in advance.

                                          I wrote exactly the more detailed description I can think of.
                                          Is actually the "step by step" explaination and I also added the code you need and the reference page for the syntax you should use to recall your shortcuts from SendKeys.

                                          Please notice that this DOES NOT restore the "menu button" functionality of LOTT in SU23.
                                          This is just a workaround to create a ruby script button in LOTT that can mimic the missing "menu button" feature.
                                          The ruby script just invokes a shortcut when you hit the toolbar button.
                                          You need to assign that shortcut (to the menu item you want to create a button for) before creating the button itself.

                                          1 Reply Last reply Reply Quote 0
                                          • 1
                                          • 2
                                          • 12
                                          • 13
                                          • 14
                                          • 15
                                          • 16
                                          • 22
                                          • 23
                                          • 14 / 23
                                          • First post
                                            Last post
                                          Buy SketchPlus
                                          Buy SUbD
                                          Buy WrapR
                                          Buy eBook
                                          Buy Modelur
                                          Buy Vertex Tools
                                          Buy SketchCuisine
                                          Buy FormFonts

                                          Advertisement