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

    [Plugin] TIG-LayerWatcher

    Scheduled Pinned Locked Moved Plugins
    43 Posts 15 Posters 22.7k Views 15 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.
    • TIGT Offline
      TIG Moderator
      last edited by

      Having slept on it, the answer is now, 'maybe'...

      Imagine this [new] tool...
      It has TWO menu entries:

      • 'Reassign Layer'
      • 'Repeat Reassign Layer'
        They can each have their own shortcuts set up...

      The first tool reassigns Selected Containers to a Layer picked from a dropdown list in a dialog.

      The second tool is the same, but this time does it not ask for you to chose a Layer from a dialog - it remembers the last chosen Layer name - unless of course the tool has not been used this session or the previous Layer no longer exists - in which case it does ask you to choose...

      PS: I'll PM you an example...

      TIG

      1 Reply Last reply Reply Quote 0
      • mariochaM Offline
        mariocha
        last edited by

        Hi TiG, indeed a great piece of code this is.

        I had repeated SU crashes on selecting a component and then changing my mind and picking another one in the Component pane before dropping the first one.
        Disabled all my plugins and finally tracked the bug down to LayerWatcher (v9.1 or maybe before). It being the only one left in the Plugins folder (but for the SU ones).
        No crash when LayerWatcher is removed.
        SU 2016, OS El Capitan.
        It can easily be reproduced.
        Has anybody else experienced that ?

        %(#008000)[Mario C.
        Every rule has exceptions, but some.]

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

          Do you have the latest version of the Extension.
          It was changed following similar reports...
          It's now at v9.1
          http://sketchucation.com/pluginstore?pln=TIG_LayerWatcher
          If you still have problems please report back...

          TIG

          1 Reply Last reply Reply Quote 0
          • mariochaM Offline
            mariocha
            last edited by

            Sorry I thought I mentioned that it is indeed 9.1
            It says
            9.1 20160312 "Explode-To-Layer0" now works on all Containers, even those .... "

            %(#008000)[Mario C.
            Every rule has exceptions, but some.]

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

              I have tried the steps you outlined with changing selected [external] components in the browser on a PC and there is no problem.
              But I can replicate it on a MAC...

              This has not been reported like this before.
              The LayerWatcher adds an observer on the entities collection in the model and also the entities collections for all definition's in the model - so it can see if faces or edges are being drawn on a Layer that's not Layer0 and reassign to it.

              Looks like MAC's SketchUp deals with the temporary external-component-add differently from a PC.
              On a PC it seems that although the selected external-component appears on the cursor you can choose to NOT place it [ESC or pick another component or tool], and that external-component is still added to the model's components.
              On a MAC is is shown in the model's components list, but it is removed if it's not placed.
              I can also trigger this [inconsistently] on a MAC if I select an existing model component to add and while it's on the cursor waiting to be placed I select another external-component to add instead...

              After some testing I find I can now prevent it happening on a MAC by using a begin..rescue and a start_timer when adding the observer etc...

              Version 10.0 is in the pipeline, watch for updates...

              TIG

              1 Reply Last reply Reply Quote 0
              • mariochaM Offline
                mariocha
                last edited by

                Great. ! 😄
                Pretty useful for me to have all entities of an exploded group back on Layer 0.

                %(#008000)[Mario C.
                Every rule has exceptions, but some.]

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

                  Here's v10.0
                  http://sketchucation.com/pluginstore?pln=TIG_LayerWatcher
                  Observers to assign new geometry to Layer0 now trapped to avoid MAC BugSplat if multiple external-components picked, but not then added to model.

                  TIG

                  1 Reply Last reply Reply Quote 0
                  • mariochaM Offline
                    mariocha
                    last edited by

                    As a way of saying thanks. Here is a "LanguageHandlered" version of it.
                    French strings included.


                    TIG-LayerWatcher 10-LH.rbz

                    %(#008000)[Mario C.
                    Every rule has exceptions, but some.]

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

                      Here's v11.0 which is re-signed for full compatibility with newer SketchUp versions.
                      https://sketchucation.com/pluginstore?pln=TIG_LayerWatcher

                      TIG

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

                        Here's v12.0...
                        https://sketchucation.com/pluginstore?pln=TIG_LayerWatcher
                        It reworked for compatibility with the latest SketchUp v2020, where 'Layer[s]' >> 'Tag[s]' and 'Layer0' >> 'Untagged'.
                        The Extension is also renamed 'TIG-TagWatcher' in v2020, although the RB code/operation etc is otherwise unchanged.
                        It is also signed for compatibility with all currently supported SketchUp versions...

                        TIG

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

                        Advertisement