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

    [REQ] repeat last layer assignment

    Scheduled Pinned Locked Moved Plugins
    6 Posts 2 Posters 183 Views 2 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.
    • R Offline
      rv1974
      last edited by

      Say I manually put some object on hidden layer (Jim's hidden layer),
      then the new script would do the same to the objects I hit.
      Thanks in advance

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

        Why not select them all, then use the drop-down layer list from the docked layer-manager to assign the hidden-layer to them - or any other layer you desire for that matter...

        TIG

        1 Reply Last reply Reply Quote 0
        • R Offline
          rv1974
          last edited by

          it's tedious, especially if there are hundreds layers in drop down list and one have to scroll
          and try to catch THE layer.
          Simple shortcut hit after the desired objects are selected would be so helpful.

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

            What's the name of the hidden layer ?
            Is it always the same ?

            TIG

            1 Reply Last reply Reply Quote 0
            • R Offline
              rv1974
              last edited by

              no, the hidden layer name is not constant (in that case I'd use existing uncomfortable put on layer.rb). So repeating the last manual layer assignment would be rather flexible. BTW moving to hiddenlayer is just a local case, I gave it for example.

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

                So you want an "assign last used layer to selection" tool...

                The problem is how do you find what the last layer that was assigned...
                If the tool itself has assigned a layer then it's an easy set/get, but if you use the native tools or another script then how do we know ? Even a layers-observer would be ineffective as that spots changes to layers, we need to watch entities.
                An entities-observer that spots changes to each and every entity in the model... and looks to see if their layer has altered, and if so it takes that as the last-assigned layer... might do it, but it seems very cumbersome...
                Perhaps a tool in two parts, one to assign a layer [and remember it] and the other to apply that remembered layer to other selected objects...
                Sometimes a simple sounding idea is far more complex and convoluted that you at first imagine... 😒

                TIG

                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