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

    [Plugin] Layers Panel 1.2.1

    Scheduled Pinned Locked Moved Plugins
    672 Posts 109 Posters 155.2k Views 109 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.
    • Bob JamesB Offline
      Bob James
      last edited by

      @jiminy-billy-bob said:

      New version 0.7 beta !

      Changelog :

      • Added a dark bar at the top to minimize/maximize the dialog
      • Added CTRL+G : Group selected layers
      • Added CTRL+SHIFT+G : Ungroup layers
      • Added CTRL+A : Select all
      • Added CTRL+E : Merge selected layers
      • Added different color for groups
      • Layer0 is now selectable
      • Fix bug with sorted groups
      • Potential fix for IE version bug

      Super improvements - have made a donation

      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
      • jiminy-billy-bobJ Offline
        jiminy-billy-bob
        last edited by

        @huckrorick said:

        any progress on not updating scenes and changing layers activated in a scene?

        Did you miss version 0.6 ? πŸ˜‰

        @jiminy-billy-bob said:

        New version 0.6 beta !

        • Fix scene auto-update (This is now an option)

        @monmonred said:

        just thank you. jiminy-billy-bob! are you working on the option to hide/show multiple layers at a time? can this also have a hotkey?

        If was trying to find a good way to do this. Hotkeys are a good idea, thanks.


        @bob james said:

        Super improvements - have made a donation

        Thanks a lot Bob !

        25% off Skatter for SketchUcation Premium Members

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

          Hi Thomas,

          I get this consistently in SU8...

          Image 1.png

          ...not on SU2013

          Download the free D'oh Book for SketchUp πŸ“–

          1 Reply Last reply Reply Quote 0
          • jiminy-billy-bobJ Offline
            jiminy-billy-bob
            last edited by

            I had this as well when trying to update it from the pluginstore inside SU8.
            (I use SU8 to check everything is right after an update)
            I deleted Layers Panel in the plugin folder and installed it again from the PS. Works fine... I thought it was a permission issue, but maybe the fact that you have it proves it's something else ?
            I already had this kind of problem in the past, with files not being properly replaced during an update with the PS.

            25% off Skatter for SketchUcation Premium Members

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

              If you have changed a script file etc then it might be advisable to popup a warning to tell the user to restart SketchUp to effect the changes - depends on how the menus/toolbars etc are written.
              BUT if you have a file that is still loading that shouldn't be - e.g. you have replaced it with a new file [with a different name] BUT that older now-not-needed legacy-file is left behind and is loaded/going-to-load-next-time, then your code really needs to do its own tidying up and delete these legacy-files as it itself loads; AND if so; then warn the user to restart SketchUp to effect all of the changes...

              TIG

              1 Reply Last reply Reply Quote 0
              • jiminy-billy-bobJ Offline
                jiminy-billy-bob
                last edited by

                Nope, no new file, just updated ones. And restarting SU does not solve this...

                25% off Skatter for SketchUcation Premium Members

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

                  YEs, I restarted 6 times and still error occured.

                  I needed to remove and install fresh.

                  But there is something funky going on with Layers Panel for me for a while. It needs gets listed as needing an update in My Plugins and I could never figure out why.

                  Great plugin BTW. I ain't knocking it just doing some investigation while I have some time

                  Download the free D'oh Book for SketchUp πŸ“–

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

                    If you manually remove all of the plugin's subfolder-of-support files and the lone loader .rb... then re-auto-install it is there still the error ?

                    If so something is wrong in the files/archives - the error message tells you that some js code is adrift ??

                    Your newly install script needs to tidy up after itself IF there are file changes...

                    πŸ’­
                    As a 'trusted author'... Are you really sure that you are properly making the two files needed for inclusion in the PluginStore database - the RBZ for the page and then the 'second-format' needed for the in-SketchUp dialog etc ??
                    What ZIP program are you using to make the ZIP you are renaming as RBZ ?
                    Are you using definitely v8 to process the RBZ into the 'second-format' and NOT v2013 ? OR if it has to be made in v2013 are you remembering to do a Save_as to v8, to keep it compatible with earlier versions...

                    I suspect this might be the core issue - i.e. archives from an author who fails to provide the dialog-version in the required v8 compatible format ! The server-side database built-in version-checker for the 'second-format' ought to trap this, so it is disallowed... but it might be failing ??
                    GΓ‘bor πŸ˜’
                    Comments need asap - an author should NOT be able to upload incorrectly versioned 'second-format' archives to the PluginStore - they must all be v8.

                    Please all reread the Author's Guide sticky in the special forum if you are in any doubt as to what you must do...

                    TIG

                    1 Reply Last reply Reply Quote 0
                    • jiminy-billy-bobJ Offline
                      jiminy-billy-bob
                      last edited by

                      @tig said:

                      If you manually remove all of the plugin's subfolder-of-support files and the lone loader .rb... then re-auto-install it is there still the error ?

                      Nope, no error after a clean install.

                      @tig said:

                      js code is adrift ??

                      In this case it's JS, but some time ago I had the same issue with the main CSS file.

                      @tig said:

                      Your newly install script needs to tidy up after itself IF there are file changes...

                      How can I detect it has been updated ?

                      @tig said:

                      As a 'trusted author'... Are you really sure that you are properly making the two files needed for inclusion in the PluginStore database - the RBZ for the page and then the 'second-format' needed for the in-SketchUp dialog etc ??

                      Yes

                      @tig said:

                      What ZIP program are you using to make the ZIP you are renaming as RBZ ?

                      Windows Explorer

                      @tig said:

                      Are you using definitely v8 to process the RBZ into the 'second-format' and NOT v2013 ?

                      Yes

                      25% off Skatter for SketchUcation Premium Members

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

                        You don't need to detect if a file has been updated.
                        All files in the RBZ or second-format are extract and overwrite any preexisting files.

                        The problem comes if you have some files from an older version that are not included in the newest installation.
                        Now they a left behind in the subfolder and might still load if you globally 'require' or 'load' files, or the html etc is still referring to them [you might have removed them but the user hasn't] - iin that case adjust the current code too.

                        If you know that some files are obsolete then your loader rb file' code needs to check for their existence - make an array of their subfolder_location/names: then use:
                        File.exist?(obsolete_file)
                        If it does then
                        File.delete(obsolete_file)
                        AND increment a counter.
                        If the counter!=0 then you need to popup a message that old-legacy files have been deleted and SketchUp needs to restart to complete the new installation. Otherwise the older files code is still loaded and will often break your new installation OR SketchUp itself...

                        TIG

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

                          I had the same problem(s). Turns out that the new version is called jb_layers_panel and jb_layers_panel.rb whereas the previous version did not have the "jb".
                          I unloaded the new version, deleted the old version, and restarted SU.
                          SU immediately crashed 😲
                          Restarted SU and loaded in a model.
                          Worked okay except

                          1. The saved options where not in effect.
                          2. Still got the unexpected ')' error and had to click four times "yes" before it went away. When I did that the saved options took effect.

                          I tried it the other way around: loaded SU (no error), then opened a model. The Layers Panel filled out but the options were wrong and I got the error message and had to click yes four times to make it go away.

                          It clearly has something to do with the options.

                          I could implement all of the new functions.

                          I can resize the dialog, but "Added a dark bar at the top to minimize/maximize the dialog" is not there


                          Layer 2013-11-02.PNG


                          Layer Panel  2013-11-02.PNG

                          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
                          • Bob JamesB Offline
                            Bob James
                            last edited by

                            If you click Ctrl-Z while in the panel you get the same error

                            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
                            • TIGT Offline
                              TIG Moderator
                              last edited by

                              In that case == BIG mess up.

                              If you have 'layer_panel' as your plugin name and others have installed it before then issuing a new version called 'jbb_layer_panel' is regarded as another tool.
                              ALL of the legacy files for the old version continue to load their old code in tandem with you new version - causing inevitable clashes when similar module/methods are called...
                              When you decide to rename a plugin it cannot be entered into lightly.
                              Your new version must find and delete all earlier versions that are using the older name, these will NOT get overwritten by an auto-install and load and mess things up...
                              Also consider that an .rb file in the Plugins folder might have been 'managed' or 'uninstalled' so you need to look for say layer_panel.rb and layer_panel.rb! and layer_panel.rbx files in case they exist !!!
                              The files in the 'layer_panel' subfolder need deleting and then the folder removing, you cannot [easily] delete a folder that currently contains files...

                              If this is the cause of this issue I suggest you immediately 'unpublish' the plugin and we agree a strategy for a new version to correct the legacy issue files/folder, and advise current users to at least disable ALL versions they have installed. πŸ˜’

                              TIG

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

                                @unknownuser said:

                                Added different color for groups

                                Thank you! But the difference in the light grays is not very discernible.

                                If you move a group with all the layers showing, after moving the layers are no longer showing, but the arrow is still down. You have to click on the down arrow (which opens up the layers) and then click the arrow again to collapse the layers.

                                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
                                • Bob JamesB Offline
                                  Bob James
                                  last edited by

                                  Aha!! I found the "dark bar": I thought it was just part of the outline.

                                  A little wider might help. It's okay once you know it, but not too obvious to begin with.

                                  Please accept these comments as critique of a GREAT plugin, not criticism. πŸ˜„


                                  Dark Bar.PNG

                                  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
                                  • jiminy-billy-bobJ Offline
                                    jiminy-billy-bob
                                    last edited by

                                    There are no obsolete files. And the plugin already takes care of the old versions with different names. What can remain are the old folders, but that's not a problem since no rb file access these folders. It's been a while since that, and nobody never had any issue.

                                    Bob , you actually have a different issue than Rich. I'll look into that.

                                    25% off Skatter for SketchUcation Premium Members

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

                                      The folder version called "layers_panel" was downloaded on 14 Oct 2013.
                                      I also had a "jbb_layers_panel" folder with the same download date.

                                      The "layers_panel" version started out:

                                      %(#FF0040)[#-----------------------------------------------------------------------------
                                      require 'sketchup.rb'
                                      require 'jbb_layers_panel/Win32API.so'
                                      #-----------------------------------------------------------------------------

                                      Sketchup.send_action(CMD_RUBY_CONSOLE)

                                      module JBB_LayersPanel]

                                      and the rb was dated 9 Sep 2013

                                      In the "jbb_layers_panel" version the rb is dated 16 Sep 2013
                                      UPDATE
                                      As jiminy said, in both cases the rb was called "layers_panel.rb". It was only the folder names that were different

                                      I'm verysorry if my ignorance caused a problem 😞

                                      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
                                      • H Offline
                                        huckrorick
                                        last edited by

                                        I downloaded version .7
                                        As soon as I clicked on the Layer Panel I get an error message. (see attachment)
                                        When I try to add a layer with Layer Panel it doesn't respond.
                                        When I add with the Layers window I get an error message.
                                        What am I doing wrong?


                                        LayersPanelProblem.jpg

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

                                          @jbb

                                          I notice that your html files do not define 'scripts' in the 'header' but at the end of the 'body'... is this an issue?
                                          Also your main html file doesn't include:
                                          <script src="./js/jquery.min.js"></script>
                                          Is this likely to cause an issue ?
                                          After all the error relates to JQuery...

                                          TIG

                                          1 Reply Last reply Reply Quote 0
                                          • jiminy-billy-bobJ Offline
                                            jiminy-billy-bob
                                            last edited by

                                            Maybe you mods/admins guys could move these posts to a new thread in the devs forum ? πŸ˜„


                                            @bob james said:

                                            As jiminy said, in both cases the rb was called "layers_panel.rb". It was only the folder names that were different

                                            Let's sum it up.

                                            Alpha version until 0.02, May 15th 2013 :

                                            Plugins/Layers Panel.rb
                                            Plugins/Layers Panel/...
                                            

                                            From Alpha version 0.03 to Beta version 0.3.1, Sept 9th 2013 :

                                            Plugins/layers_panel.rb
                                            Plugins/layers_panel/...
                                            

                                            Since Beta version 0.3.2, Sept 16th 2013 : (For compatibility with the Extension Warhouse)

                                            Plugins/jbb_layers_panel.rb
                                            Plugins/jbb_layers_panel/...
                                            

                                            When this one loads, it automatically deletes Layers Panel.rb and layers_panel.rb
                                            "J" being loaded before "L", the two old files never get loaded before they are deleted.


                                            Ok so, I can reproduce the issue by reverting back to 0.6 and trying to update through the PS or the default rbz installer inside SU. Both fail to update the "js" folder, in both SU8 and SU13. Therefore, some new JS files don't get added, and we get the JS error.
                                            This. Is. Weird.
                                            Actually, the "css" folder is not updated either...
                                            The two sub-folders of Plugins/jbb_layers_panel/

                                            Here is version 0.6 if you want to test :
                                            Layers Panel 0.6 beta (Obsolete)


                                            @tig said:

                                            I notice that your html files do not define 'scripts' in the 'header' but at the end of the 'body'... is this an issue?
                                            Also your main html file doesn't include:
                                            <script src="./js/jquery.min.js"></script>
                                            Is this likely to cause an issue ?
                                            After all the error relates to JQuery...

                                            No, the fact that the scripts are at the bottom shouldn't cause any issue. It certainly didn't in the past.
                                            0.7 doesn't include jquery.min.js because it includes jquery.js, which is not added due to the "js" folder not being updated...

                                            25% off Skatter for SketchUcation Premium Members

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

                                            Advertisement