sketchucation logo sketchucation
    • Login
    โ„น๏ธ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info

    Layer Visibility for Multiple Scenes

    Scheduled Pinned Locked Moved Plugins
    5 Posts 4 Posters 684 Views 4 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.
    • svzephyrS Offline
      svzephyr
      last edited by

      Is there a plugin to quickly set a layer's visibility in all the scenes in a model?

      I typically create a model with many scenes. But, if I add a layer that might only need to be visible on 1 or 2 scenes it's tedious to go through each scene, set the layer visibility, then update the scene.

      I haven't used layers very much; I normally just use the scenes and the plugin HideInOtherScenes to control visibility. This works fine for groups and components, since I can use the Outliner to temporarily unhide items, but finding text, dimensions, etc. can be challenging.

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

        This one-liner copy+pasted into the Ruby Console + <enter> will make the named layer visible in all scenes... Edit the n="xxx" to suit the layer's name you wish to make visible...

        n="MyLayerName";m=Sketchup.active_model;la=m.layers[n];m.pages.each{|p|p.set_visibility(la,true)}
        

        Changing the vivibility option from 'true' to 'false' makes that named layer 'NOT visible' in all scenes, thus:

        n="MyOtherLayerName";m=Sketchup.active_model;la=m.layers[n];m.pages.each{|p|p.set_visibility(la,false)}
        

        TIG

        1 Reply Last reply Reply Quote 0
        • C Offline
          caronte01
          last edited by

          Try this plugin:

          Link Preview Image
          Plugin: Add Hidden Layer

          Update Apr 2014 - Version 1.0.1 Add a Layer to your SketchUp model and control its visibility on existing and new Scenes. Use Activa...

          favicon

          (sketchuptips.blogspot.com)

          or this one, seems to be an evolution on the first plugin

          http://sketchucation.com/forums/viewtopic.php?f=10&t=36583&p=322249&hilit=+add+hidden+layer+#p322249

          1 Reply Last reply Reply Quote 0
          • svzephyrS Offline
            svzephyr
            last edited by

            Thanks, all - I've tested Add_Scene_Layer.rb and I think it will do the trick for me nicely. Maybe I'll even get to liking layers ๐Ÿ˜„

            1 Reply Last reply Reply Quote 0
            • thomthomT Offline
              thomthom
              last edited by

              http://www.srww.com/blog/?p=1205
              Layers Management Ruby Script For SketchUp

              http://www.srww.com/blog/wp-content/uploads/2010/05/layerstoolbar.png

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

              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