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

    [Plugin] ToolbarEditor (1.1.2) – updated 08.06.2014

    Scheduled Pinned Locked Moved Plugins
    122 Posts 40 Posters 57.9k Views 40 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.
    • CadFatherC Offline
      CadFather
      last edited by

      1 - which one?
      2 - click on the icon and drag it slowly on the right panel
      3 - click on the minus sign - top right of your toolbar header

      1 Reply Last reply Reply Quote 0
      • Bob JamesB Offline
        Bob James
        last edited by

        @cadfather said:

        1 - which one?

        Generically so I could modify it for any command

        @cadfather said:

        2 - click on the icon and drag it slowly on the right panel

        Thank you

        @cadfather said:

        3 - click on the minus sign - top right of your toolbar header

        duh 😳

        i7-4930K 3.4Ghz, 2x GTX780 6GB, 32GB DDR3-1600 ECC, OCZ Vertex 4 500GB, WD Black 3TB, 32TB NAS, 4x 27" Monitors, SpaceMouse Pro, X-keys XK-60

        1 Reply Last reply Reply Quote 0
        • A Offline
          Aerilius
          last edited by

          As in the API documentation… http://www.sketchup.com/intl/en/developer/docs/ourdoc/command.php

          
          cmd = UI;;Command.new("name of the command"){
            AuthorModule;;PluginName.name_of_the_main_method()
          }
          cmd.tooltip = "tooltip that describes the command"
          cmd.status_bar_text = "text that tells how to use the command"
          cmd.large_icon = "./path/to/a/icon24px.png"
          cmd.small_icon = "./path/to/a/icon16px.png"
          
          

          It still can only be used with understanding of what it does, and you would have to look up how a certain plugin is started.

          It would probably be sufficient and much easier to edit the plugin's own ruby file, look for "UI::Command.new" and add the icons. The icon path can either be relative to the ruby file or absolute (to the system's root, ie. "C:/" on Windows).

          Some plugins add themself only to the menu without creating a command. That looks like this:

          UI.menu("plugins").add_item("name of the command"){ name_of_the_method }
          

          and can be replaced by a command object (as above) plus

          UI.menu("plugins").add_item(cmd)
          
          1 Reply Last reply Reply Quote 0
          • D Offline
            danb
            last edited by

            Hello, could anyone help. I used this plugin with 2013 but it does not seem to work with 2014. I find it very useful, particularly as I use a mac and you can't stack the toolbars as you do on windows

            many thanks

            Dan

            Macbook Pro
            OSX 10.9
            Sketchup Pro 2014

            Sketchup Pro 2019/20
            OSX 10.15.3
            Macbook Pro

            1 Reply Last reply Reply Quote 0
            • BoxB Online
              Box
              last edited by

              It throws a load error in SU2014


              Load.JPG


              Load1.JPG

              1 Reply Last reply Reply Quote 0
              • A Offline
                Aerilius
                last edited by

                If you are curious, you can have a sneak-peak on the next version 1.1.0 with custom buttons. You will be able to create your own toolbar buttons for Ruby one-liners, code snippets or other things found on the forum.


                fixed LoadError

                1 Reply Last reply Reply Quote 0
                • A Offline
                  Aerilius
                  last edited by

                  Thanks, I fixed the load error.

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

                    @aerilius said:

                    Thanks, I fixed the load error.
                    BUT you haven't published it 😒

                    TIG

                    1 Reply Last reply Reply Quote 0
                    • BoxB Online
                      Box
                      last edited by

                      It's on the previous page Tig, not the first post. It's a teaser/beta and the fix worked for me.

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

                        So the version in that mid-thread post has been updated - it was not clear... 😕

                        TIG

                        1 Reply Last reply Reply Quote 0
                        • F Offline
                          function
                          last edited by

                          I've noticed that this plugin takes a fairly long time to load all the icons at startup. Is there any other negative affects to performance?

                          1 Reply Last reply Reply Quote 0
                          • A Offline
                            Aerilius
                            last edited by

                            It has an arbitrary timeout of five seconds. It's not doing much processing, it just needs to be sure that SketchUp has finished loading all other plugins. I wish SketchUp had (or will have) a proper API method for that. When I come back I'll see if it still works reliably wirh a shorter timeout.

                            1 Reply Last reply Reply Quote 0
                            • F Offline
                              function
                              last edited by

                              its kind of strange for me. i have something like 4 tool bars, they load one icon at a time, and then on the 5th toolbar i made it loads all 6 instantly .. :🤷:

                              1 Reply Last reply Reply Quote 0
                              • A Offline
                                Aerilius
                                last edited by

                                I updated the plugin. It now includes custom buttons.

                                http://sketchucation.com/pluginrepo/image/ae_ToolbarEditor/screenshot2b.png

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

                                  Incredible.

                                  Download the free D'oh Book for SketchUp 📖

                                  1 Reply Last reply Reply Quote 0
                                  • KrisidiousK Offline
                                    Krisidious
                                    last edited by

                                    I can haz all thomthoms in a toolbar?

                                    By: Kristoff Rand
                                    Home DesignerUnique House Plans

                                    1 Reply Last reply Reply Quote 0
                                    • B Offline
                                      Ben Ritter
                                      last edited by

                                      Thank you for sharing this with us.

                                      1 Reply Last reply Reply Quote 0
                                      • KrisidiousK Offline
                                        Krisidious
                                        last edited by

                                        does this mean it's time for the Icon Making Challenge?

                                        By: Kristoff Rand
                                        Home DesignerUnique House Plans

                                        1 Reply Last reply Reply Quote 0
                                        • L Offline
                                          LewisEE
                                          last edited by

                                          I can't enter code for custom (new) buttons using SketchUp Make 2014. Other wise this is a great extension. Thanks

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

                                            how did miss this one, very nice...

                                            just pondering some additional behaviour...

                                            I regularly 'bury' plugins that I use infrequently, but add the tools main icon to a toolbar and use that to 'load' the plugin only when I need it, I tend to do it for plugins that add observers, skp's or materials to my model.

                                            I try to do it on my own plugins as well so the 'command' is the loader...
                                            example

                                                  command2 = UI;;Command.new("Add mac batch Icons"){ load( File.join(File.dirname(__FILE__), "Add_icon_logic_batch_skps.rb") ) }
                                            
                                            

                                            could the 'burying' be an option for this plugin?

                                            so if I add a complex plugin to a toolbar it is moved into a 'Toolbar 1' folder and only a single icon is added to the 'Toolbar 1' toolbar, but if I click on that 'Icon' 'Toolbar 1' is replace by a second 'Toolbar1' that includes any additional toolset buttons at exactly the same position...

                                            I'll see if I can find my simple 2 tool test file, that may clarify what I mean...

                                            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
                                            • 1
                                            • 2
                                            • 3
                                            • 4
                                            • 5
                                            • 6
                                            • 7
                                            • 3 / 7
                                            • First post
                                              Last post
                                            Buy SketchPlus
                                            Buy SUbD
                                            Buy WrapR
                                            Buy eBook
                                            Buy Modelur
                                            Buy Vertex Tools
                                            Buy SketchCuisine
                                            Buy FormFonts

                                            Advertisement