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

    Toolbar for Toolbars

    Scheduled Pinned Locked Moved Newbie Forum
    sketchup
    20 Posts 8 Posters 1.0k Views 8 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.
    • GaieusG Offline
      Gaieus
      last edited by

      Well, LayOut (for SU Pro) also works similarly - i.e. there are butons to trigger the "rest" of a toolbar - and I have also wished several times SU toolbars (could) work a similar way.

      Gai...

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

        @reidk02 said:

        Hi All,
        Also on MAC there is no option to + / - like in windows so I only have the option to reset all

        not, quite true, while there is no +/- option-box, you can choose any single item, and hit delete to remove the shortcut, or overtype to change it...

        @unknownuser said:

        I will try the Preferences.dat idea as I think this may work. I will let you know.

        User/Library/Preferences/com.google.sketchuppro8.plist can be edited.

        @unknownuser said:

        Driven - The toolbar "trigger" button sounds PERFECT! If you could write a tutorial that would be greatly appreciated!

        been meaning to for a while, I'll see what I can do...

        @TIG, in the prefs list you have for example <key>SketchUp.Toolbars.Construction Line Tool.Visible</key>
        how could that be called from Ruby Console? or can't it.

        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
        • J Offline
          Jim
          last edited by

          UI.toolbar("Construction Line Tool").show
          UI.toolbar("Construction Line Tool").hide

          But even if the plugin is not installed, this method creates a toolbar entry in the View > Toolbars menu.

          So the problem for a script is knowing which toolbars are in use. You can get a list of native Toolbar names ( UI.toolbar_names) but there is not a good way to get a list of Ruby toolbars.

          I have a dialog that uses a text file to create a list of installed toolbars and toggle them on/off, but I'm still working on a good way to identify the Ruby toolbar names.


          0115.png

          Hi

          1 Reply Last reply Reply Quote 0
          • T Offline
            thirdleft
            last edited by

            @driven

            Looking at Shortcuts.plist now but with no luck. It actually seems like they are all jumbled up compared to what my normal shortcuts are. I am contemplating starting from scratch but it really is a pain to redo all of your settings. 👊 Sketchup should have a save as a copy setting for shortcuts 😉

            I look forward to seeing the tutorial driven!

            keith

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

              Open the .plist in Text Wrangler.app [it's free]
              and look for <key>SketchUp.Toolbars.the one I want_example<key>
              the next entry is the [<string>] 1 is visible and 0 is not. You can change those values here and save, but it doesn't list the ShortCut keys any where obvious.

              @Jim couldn't the 'ruby' just use this list for any with toolbars...

              	<key>SketchUp.Toolbars.2D Tools.Visible</key>
              	<string>0</string>
              	<key>SketchUp.Toolbars.2dTls.Visible</key>
              	<string>1</string>
              	<key>SketchUp.Toolbars.Advanced Camera Tools.Visible</key>
              	<string>0</string>
              	<key>SketchUp.Toolbars.BZ__Toolbar.Visible</key>
              	<string>0</string>
              	<key>SketchUp.Toolbars.Construction Line Tool.Visible</key>
              	<string>0</string>
              	<key>SketchUp.Toolbars.Curve Maker.Visible</key>
              	<string>0</string>
              	<key>SketchUp.Toolbars.Curviloft.Visible</key>
              	<string>1</string>
              	<key>SketchUp.Toolbars.Dynamic Components.Visible</key>
              	<string>0</string>
              	<key>SketchUp.Toolbars.Edge Tools².Visible</key>
              	<string>0</string>
              	<key>SketchUp.Toolbars.Extrusion Tools.Visible</key>
              	<string>1</string>
              	<key>SketchUp.Toolbars.Fredo Scale.Visible</key>
              	<string>1</string>
              	<key>SketchUp.Toolbars.Fredo6 Tools.Visible</key>
              	<string>1</string>
              	<key>SketchUp.Toolbars.Free Rotate.Visible</key>
              	<string>0</string>
              	<key>SketchUp.Toolbars.Hatchfaces.Visible</key>
              	<string>1</string>
              	<key>SketchUp.Toolbars.Homer.Visible</key>
              	<string>1</string>
              	<key>SketchUp.Toolbars.Joint Push Pull.Visible</key>
              	<string>1</string>
              	<key>SketchUp.Toolbars.LSS Chronolux Toolbar.Visible</key>
              	<string>1</string>
              	<key>SketchUp.Toolbars.LightUp.Visible</key>
              	<string>1</string>
              	<key>SketchUp.Toolbars.Pen Tool +.Visible</key>
              	<string>0</string>
              	<key>SketchUp.Toolbars.QuadFace Tools.Visible</key>
              	<string>1</string>
              	<key>SketchUp.Toolbars.Round Corner.Visible</key>
              	<string>1</string>
              	<key>SketchUp.Toolbars.Ruby Code Editor.Visible</key>
              	<string>0</string>
              	<key>SketchUp.Toolbars.Sandbox.Visible</key>
              	<string>1</string>
              	<key>SketchUp.Toolbars.Selection Toys.Visible</key>
              	<string>0</string>
              	<key>SketchUp.Toolbars.Shadow Strings Fix.Visible</key>
              	<string>0</string>
              	<key>SketchUp.Toolbars.Shape Bender.Visible</key>
              	<string>0</string>
              	<key>SketchUp.Toolbars.SketchUp.Visible</key>
              	<string>1</string>
              	<key>SketchUp.Toolbars.Solar North.Visible</key>
              	<string>1</string>
              	<key>SketchUp.Toolbars.Super Drape.Visible</key>
              	<string>0</string>
              	<key>SketchUp.Toolbars.Taper Maker.Visible</key>
              	<string>0</string>
              	<key>SketchUp.Toolbars.Tools on Surface.Visible</key>
              	<string>1</string>
              	<key>SketchUp.Toolbars.WorkPlane Tools.Visible</key>
              	<string>1</string>
              

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

              1 Reply Last reply Reply Quote 0
              • T Offline
                thirdleft
                last edited by

                @driven

                Thanks for the tip. I assume this is how you ensure that a toolbar opens upon launch or not. Would that be correct?

                As for the shortcut keys they are located under Home\Library\Application Support\Google Sketchup 8\Sketchup\Shortcuts.plist and can be edited using textedit or textwrangler from here.

                The issue is as soon as I write a shortcut it wipes it off when I relaunch Sketchup. All of my other shortcuts work fine just the ruby toolbars that I cant seem to assign shortcuts to.

                Keith

                1 Reply Last reply Reply Quote 0
                • wind-borneW Offline
                  wind-borne
                  last edited by

                  With Snow Leopard you can still toggle toolbars by setting up in System Preferences and shortcuts show on menu.
                  Customize toolbar lets you choose individual tools to drag into top toolbar.

                  There are a few problems with authors that use the same exact name for menu and plugin/tool.
                  http://forums.sketchucation.com/viewtopic.php?f=323&t=35416


                  SketchUp1.png


                  SketchUp-1.png

                  "To read between the lines was easier than to follow the text."OSX 10.11.6

                  %(#BF80BF)[SU 8 pro

                  1 Reply Last reply Reply Quote 0
                  • T Offline
                    thirdleft
                    last edited by

                    @Jim

                    @jim said:

                    UI.toolbar("Construction Line Tool").show
                    UI.toolbar("Construction Line Tool").hide
                    I have a dialog that uses a text file to create a list of installed toolbars and toggle them on/off, but I'm still working on a good way to identify the Ruby toolbar names.

                    Hi Jim the post you showed before that had a window allowing you to check / close all/ show all toolbars. How does that work? it seems that this could almost be used as a side bar that allows direct access to the different toolbars. Is this correct?

                    Cheers
                    Keith

                    1 Reply Last reply Reply Quote 0
                    • T Offline
                      thirdleft
                      last edited by

                      @wind-borne

                      @unknownuser said:

                      by wind-borne on Mon Oct 24, 2011 10:15 am

                      With Snow Leopard you can still toggle toolbars by setting up in System Preferences and shortcuts show on menu.

                      Thanks for the tip! This worked a treat! Now I can toggle any Toolbars on and off through commands. Works I am surprised that more users have not posted this issue :S

                      Sure do hope for some tabbed toolbars though 😉

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

                        @driven said:

                        I use to have some of those set up in System Prefs as SU shortcuts, but you can't do that either anymore, needs some investigation...

                        Had a look and you can still do it as Windborne shows, my bad...

                        I forgot that you have to navigate via 'other' at the bottom of the add application [in System Prefs] because SU is in a folder it doesn't show up in the 'normal' add app list.

                        To get a copy/pastable list to use with 'system Shortcuts' you can use ObjectSpace.each_object(UI::Toolbar) {|t| puts t.name} (... nicked off Chris) in Ruby Console for a list. Three of the google ones are missing, but the rest are there.

                        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
                        • R Offline
                          raineysky
                          last edited by

                          @jim said:

                          UI.toolbar("Construction Line Tool").show
                          UI.toolbar("Construction Line Tool").hide

                          But even if the plugin is not installed, this method creates a toolbar entry in the View > Toolbars menu.

                          So the problem for a script is knowing which toolbars are in use. You can get a list of native Toolbar names ( UI.toolbar_names) but there is not a good way to get a list of Ruby toolbars.

                          I have a dialog that uses a text file to create a list of installed toolbars and toggle them on/off, but I'm still working on a good way to identify the Ruby toolbar names.

                          Jim,

                          Was wondering if you made any progress with this. It would be great to have a custom toolbar for rubies. For example the BZ Toolbar contains many tools and I only use one of them. It takes up a lot of real estate. Thanks

                          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