• Login
sketchucation logo sketchucation
  • Login
πŸ€‘ SketchPlus 1.3 | 44 Tools for $15 until June 20th Buy Now

Jim's Toolbar example "Option" Not working in 2013

Scheduled Pinned Locked Moved Plugins
26 Posts 7 Posters 827 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.
  • T Offline
    TIG Moderator
    last edited by 22 May 2013, 16:04

    @thomthom said:

    ? I missed that. What changed?
    In v8 when you make a shared toolbar and referenced it across modules and added items to it it worked - provided the additions were done as SketchUp startsup.
    In v2013 the reference to the toolbar seems to get lost unless it is all processed within the same module, then the buttons don't get added... It's as if everything gets loaded asynchronously and the reference is not in place when the next file's module/class loads πŸ˜•
    In v8 my ExtrudeTools setup a global reference [$ yes I know πŸ˜’ ] to a new toolbar - this was made as the first rb in the set loaded, thereafter the other files loaded [using different modules/classes etc] and added the buttons in turn. This fail in v2013.
    The current solution wraps every part of the toolset in a new 'ExtrudeTools' module, givingg it a TOOLBAR constant referencing to a newly made toolbar by the 'loader'.
    The loader then loads the remaining rb files in its subfolder, each of those adds a button onto TOOLBAR as its module loads, referencing the particular tool class in each rb file's module...
    Anyway whatever the cause is the new way works and the old way doesn't...

    TIG

    1 Reply Last reply Reply Quote 0
    • T Offline
      thomthom
      last edited by 22 May 2013, 22:58

      That's mighty peculiar. I wonder if my ThomThom menu has broken...

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

      1 Reply Last reply Reply Quote 0
      • T Offline
        TIG Moderator
        last edited by 23 May 2013, 07:44

        This works in v8, BUT NOT in v13:

        All of these scripts are in the '.../Plugins' folder...
        a.rb makes an empty toolbar, referenced 'globally' as '$my_little_toolbar'.
        b.rb which loads next [i.e. alphanumeric order] and adds its button to $my_little_toolbar.
        c.rb which loads next [i.e. alphanumeric order] and adds its button to $my_little_toolbar.
        ...

        Result: v8 - Toolbar with two+ buttons.
        In v13 either NO Toolbar at all OR a toolbar that is 'listed' and can be checked/unchecked but cannot be seen on screen, OR a toolbar that has no buttons at all. It's as if the later scripts load while the first is still being resolved, the only thing controlling their load order is their names and SketchUp's auto-loading code... however, the working example shown below deliberately creates 'the parts' in distinct steps, each one loaded in order by a former one...

        This works in v8 AND v13:

        The first script is in the '.../Plugins' folder and the rest within its subfolder '.../Plugins/a'
        a.rb makes an empty toolbar, referenced as 'My_little_toolbar' across a module.
        it also loads the scripts from its subfolder 'a'...
        a/b.rb which is in the same module and adds its button to My_little_toolbar.
        a/c.rb which is in the same module and adds its button to My_little_toolbar.
        ...

        Result: v8 and v13 Toolbar with two+ buttons.

        TIG

        1 Reply Last reply Reply Quote 0
        • T Offline
          thomthom
          last edited by 23 May 2013, 07:56

          That's very odd. :s

          Have you filed a bug report for that?

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

          1 Reply Last reply Reply Quote 0
          • T Offline
            TIG Moderator
            last edited by 23 May 2013, 07:59

            I left it with Chris Fullmer...
            It was reported on EEby... very early on in the beta, and then again more recently when issues with other toolbars came up...
            'They are looking at it'...

            TIG

            1 Reply Last reply Reply Quote 0
            • K Offline
              Krisidious
              last edited by 23 May 2013, 14:10

              So is there anyway I can build a toolbar that has commands like this in it? They are native commands but I don't see a way to get them on to a custom toolbar.

              toggleHidden
              hideSelected
              unhideSelected

              toggleAxes
              toggleGuides
              toggleColorByLayer
              toggleShadows
              toggleFog

              hideRest
              hideSimilar

              centerSelection
              zoomExtents
              togglePerspective

              ungroup

              By: Kristoff Rand
              Home DesignerUnique House Plans

              1 Reply Last reply Reply Quote 0
              • K Offline
                Krisidious
                last edited by 29 May 2013, 06:54

                anyone had any luck getting this to work?

                By: Kristoff Rand
                Home DesignerUnique House Plans

                1 Reply Last reply Reply Quote 0
                • K Offline
                  Krisidious
                  last edited by 29 May 2013, 06:56

                  @dan rathbun said:

                  Basically it's is a very OLD plugin.

                  Aerilius' toolbar editor should work better than Jim's old editor.

                  I tired it today and as far as I can tell it's not capable of using commands like this one is. All I could get was current plugins that already have toolbars with them.

                  By: Kristoff Rand
                  Home DesignerUnique House Plans

                  1 Reply Last reply Reply Quote 0
                  • BurkhardB Offline
                    Burkhard
                    last edited by 29 May 2013, 07:27

                    It worked for me. I have set a bunch of scripts into the Toolbar but I have also toggle hidden and hide rest. Some of the Icons are not show up - just a smily button - but the function is Ok. Your scripts are all the native scripts from Jim?

                    [http://www.ia-plus.de(http://www.ia-plus.de)]

                    1 Reply Last reply Reply Quote 0
                    • K Offline
                      Krisidious
                      last edited by 29 May 2013, 07:42

                      yes all native...

                      By: Kristoff Rand
                      Home DesignerUnique House Plans

                      1 Reply Last reply Reply Quote 0
                      • BurkhardB Offline
                        Burkhard
                        last edited by 29 May 2013, 08:38

                        I will try this out and report

                        [http://www.ia-plus.de(http://www.ia-plus.de)]

                        1 Reply Last reply Reply Quote 0
                        • BurkhardB Offline
                          Burkhard
                          last edited by 29 May 2013, 08:48

                          Works, except two Icons.
                          Maybe dumb, but have you checked the preference>extension>custom toolbars
                          (I meant the last two, just saw one of my own is also in there. - name conflict πŸ˜„ )


                          view.png

                          [http://www.ia-plus.de(http://www.ia-plus.de)]

                          1 Reply Last reply Reply Quote 0
                          • BurkhardB Offline
                            Burkhard
                            last edited by 29 May 2013, 09:03

                            Because of the Aerilius Plugins. It is a very usefull tool. But I use a lot of single scripts, one liners and and extra functions ( like open second Sketchup instance or paste in place ) as buttons, to create some workflow improvements or special workflows, where I have a set of tools which help me in this case.
                            If there is an automatic commandbuilder for single scripts and a bunch of icon samplers ( like Cadfathers) Aerilius or Ricks Toolbar Builder are unbeatable πŸ˜‰

                            [http://www.ia-plus.de(http://www.ia-plus.de)]

                            1 Reply Last reply Reply Quote 0
                            • K Offline
                              Krisidious
                              last edited by 29 May 2013, 09:03

                              yeah I have it set.

                              Capturetoolbars.JPG

                              By: Kristoff Rand
                              Home DesignerUnique House Plans

                              1 Reply Last reply Reply Quote 0
                              • K Offline
                                Krisidious
                                last edited by 29 May 2013, 13:32

                                Ok... thanks to Burkard we have a fix. replace your loader.rb file located here \SketchUp\SketchUp 2013\Plugins\Toolbars\Files with this one.

                                loader.rb

                                By: Kristoff Rand
                                Home DesignerUnique House Plans

                                1 Reply Last reply Reply Quote 0
                                • J Offline
                                  JuanV.Soler
                                  last edited by 29 May 2013, 22:14

                                  @krisidious said:

                                  Ok... thanks to Burkard we have a fix. replace your loader.rb file located here \SketchUp\SketchUp 2013\Plugins\Toolbars\Files with this one.

                                  [attachment=0:2nhe1o07]<!-- ia0 -->loader.rb<!-- ia0 -->[/attachment:2nhe1o07]

                                  Thanks both , it worked Β‘ πŸ‘

                                  ,))),

                                  1 Reply Last reply Reply Quote 0
                                  • K Offline
                                    Krisidious
                                    last edited by 30 May 2013, 04:13

                                    Good to hear Juan... I use this toolbar constantly. Had to have it.

                                    By: Kristoff Rand
                                    Home DesignerUnique House Plans

                                    1 Reply Last reply Reply Quote 0
                                    • Bob JamesB Offline
                                      Bob James
                                      last edited by 9 Jun 2013, 04:23

                                      Many, many thanks πŸ‘

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

                                      Advertisement