• Login
sketchucation logo sketchucation
  • Login
⚠️ Attention | Having issues with Sketchucation Tools 5? Report Here

Layer Visibility for Multiple Scenes

Scheduled Pinned Locked Moved Plugins
5 Posts 4 Posters 696 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.
  • S Offline
    svzephyr
    last edited by 24 Dec 2012, 14:59

    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
    • T Offline
      TIG Moderator
      last edited by 24 Dec 2012, 18:18

      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 24 Dec 2012, 18:24

        Try this plugin:

        http://sketchuptips.blogspot.com/2007/08/add-hidden-layer.html

        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
        • S Offline
          svzephyr
          last edited by 27 Dec 2012, 23:45

          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
          • T Offline
            thomthom
            last edited by 28 Dec 2012, 15:34

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

            Advertisement