• Login
sketchucation logo sketchucation
  • Login
⚠️ Libfredo 15.4b | Minor release with bugfixes and improvements Update

[REQ] Make custom toolbar script

Scheduled Pinned Locked Moved Plugins
9 Posts 5 Posters 1.2k 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.
  • P Offline
    Pixero
    last edited by 28 May 2009, 17:13

    After removing all script from the plugin folder for "debugging" which script caused SU to always quit with an error (it was PlayUp, game exporter by the way) I have struggled for almost an hour to place the toolbar icons the way I had them but no matter what I do they WONT STICK. 😠 Aaaaarrrggggh!

    Then I thought, couldn´t someone make a script that combined my plugins of choice to one single long toolbar.
    Maybe through drag and drop? I know someone put together a custom toolbar but I'm thinking personal custom toolbars.
    Possible?

    1 Reply Last reply Reply Quote 0
    • T Offline
      thomthom
      last edited by 28 May 2009, 18:23

      Have you tried Organizer? (Plugins must be compatible though...)

      (Also, have you tried Chris' suggestion in regard to the toolbar issue, ensure that the un-maximised size of the SU window is nearly as large as the maximised size?)

      Thomas Thomassen — SketchUp Monkey & Coding addict
      List of my plugins and link to the CookieWare fund

      1 Reply Last reply Reply Quote 0
      • A Offline
        Aerilius
        last edited by 28 May 2009, 18:28

        Hello!
        I just downloaded Jim Foltz's toolbar script yesterday and it's great.

        Link Preview Image
        SketchUp Custom Toolbars

        2010-09 * Updated for small bug in placement in SketchUp 8. toolbars-2010-09.zip This is an update to Custom Toolbars plugin with t...

        favicon

        (sketchuptips.blogspot.com)

        There you can arrange the icons you want on your own toolbar. But currently, this is only possible by editing a text file and for integration of other plugins, you need to work a little bit.
        My strategy was to create one long toolbar for each row, so Sketchup has not the slightest chance to mess them up again.

        1 Reply Last reply Reply Quote 0
        • P Offline
          Pixero
          last edited by 29 May 2009, 06:02

          I didn't know Jims plugin made Toolbars.
          I thought it would look like in the picture on his blog, a gigantic tool window. 😲
          Have to try this.

          1 Reply Last reply Reply Quote 0
          • G Offline
            Gaieus
            last edited by 29 May 2009, 11:37

            It makes a gigantic window actually but that's a toolbar window you can attach to your SU window like any toolbars (or detach and let it float aside).

            It would be cool to get it to work with plugin tools, too, not only "native" SU tools.

            Gai...

            1 Reply Last reply Reply Quote 0
            • J Offline
              Jim
              last edited by 29 May 2009, 15:37

              @pixero said:

              I didn't know Jims plugin made Toolbars.

              @gaieus said:

              It makes a gigantic window actually but that's a toolbar window you can attach to your SU window like any toolbars (or detach and let it float aside).

              You can have multiple toolbars, of any size - they are the same as any of the built-in toolbars except you set the order of the buttons.

              One strategy is to create 2 or 3 wide toolbars so when SU does hiccup, it is easy to put them back.

              Hi

              1 Reply Last reply Reply Quote 0
              • A Offline
                Aerilius
                last edited by 29 May 2009, 20:48

                I integrated a couple of plugins in the toolbar on my pc. (How to do this, see Jim's read-me file) But it's really hard to find out the function that has to be called when clicking the buttons. Especially, when the ruby is encrypted like -->> Kerkythea <<-- 😢 .

                For further releases, I would like

                • automatically scanning the toolbars of other plugins
                • right click -> customize and arrange the icons by drag and drop

                If I have time and have some more plugins integrated, I can submit it here.

                1 Reply Last reply Reply Quote 0
                • P Offline
                  Pixero
                  last edited by 30 May 2009, 05:44

                  @gaieus said:

                  It would be cool to get it to work with plugin tools, too, not only "native" SU tools.

                  Does or doesn't it work with 3rd party plugins?

                  1 Reply Last reply Reply Quote 0
                  • A Offline
                    Aerilius
                    last edited by 30 May 2009, 19:55

                    I copy here the comment inside of Jim's example toolbars:

                    Example Toolbar File

                    A toolbar file is simply a text file containing a list of commands you want

                    to appear on your toolbar. The # symbol denotes a comment and is skipped by the toolbar maker.

                    The Toolbar filename must end in .txt. The name of the .txt file is used

                    as the Toolbar name.

                    Toolbar separators can be created using 3 dashes (---) on a line by themselves.

                    You can create any reasonable number of custom toolbars, just create another .txt file

                    in the same folder as this one. All available toolbars will be loaded.

                    Commands are not case sensitive, but capitals can be used to help readability. For example,

                    the following commands are identical:

                    fileNew

                    filenew

                    FileNew

                    Filenew

                    FILENEW

                    In the toolbar folder, there's a html file that contains the commands that you can insert in your custom toolbar. When you search a bit, you find that they refer to ruby scripts (for each single command) in the files/sketchup/commands subfolder.
                    So I dublicated such a ruby, edited it and put the icon in the images folder. For example freeScale.rb:

                    cmd = UI::Command.new("FreeScale") { FreeScale.launch false, true }
                    cmd.small_icon = "../images/freeScale_sm.png"
                    cmd.large_icon = "../images/freeScale_lg.png"
                    cmd.tooltip = "Scale with orientation of scaling box"
                    cmd.status_bar_text = "Scale with orientation of scaling box"
                    cmd.menu_text = "Scale with orientation of scaling box"
                    cmd.set_validation_proc { tool_validation_proc"FreeScale.launch") }
                    @cmd = cmd

                    The bold phrases need to be edited to make it work. The most difficult thing is to find how the function of a plugin is called. I opened the plugins, searched for 'UI.menu' which creates the toolbar buttons of the original plugin. I don't know what the underlined phrase is for.

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

                    Advertisement