• Login
sketchucation logo sketchucation
  • Login
🔌 Quick Selection | Try Didier Bur's reworked classic extension that supercharges selections in SketchUp Download

[Plugin] Turn Off Layer in All Scenes

Scheduled Pinned Locked Moved Extensions & Applications Discussions
extensions
5 Posts 5 Posters 8.2k Views 5 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.
  • O Offline
    oregon_cowboy
    last edited by 17 Nov 2016, 19:55

    Hi All - I've been writing small, simple SketchUp plugins for several years for my own use and finally got the courage to share. So forgive me if I am breaking protocol on the best way to submit plugins to this site (please let me know how to do it correctly in the future).

    I am starting with sharing this very simple plugin that turns off a selected layer in all scenes. I have seen a several requests in the past of turning off newly created layers in all scenes but hadn't found a direct way to do it (if I missed something, I apologize). There are some great plugins that allow work arounds including Layer Manager and Auto-Invisible Layer. But these are a bit different/more complex than what I wanted/needed. So I created my own simple plugin and am now sharing it here.

    Without further ado....

    Name : Turn Layer OFF In All Scenes (TOLIAS)

    Description : Turns selected layer off in all scenes

    Usage : Select a layer in the standard layer window (selected, with the dot filled in).

    Activate plugin via Extensions >> TOLIAS. Confirm the layer you are turning off

    and press okay. Layer will be turned off in all existing scenes.

    Its been tested extensively in SketchUp 2015, 2016, and 2017. But please feel free to let me know if you find any bugs.

    Thanks.


    Raw ruby file


    SketchUp installable rbz

    1 Reply Last reply Reply Quote 0
    • 0 Offline
      0nomat0
      last edited by 31 May 2019, 15:09

      Excellent idea -- thank you! Seems to be working in SU 2019, although I haven't tested extensively.

      Also, thanks for sharing the raw RB file, which is nicely commented. I'm looking at it trying to figure out how to make a version that turns ON a layer in all scenes (maybe I could just cut/paste-in-place the layer's contents). I'm quite new to Ruby, and this looks like a nice script to play with.

      Users, note that you must set the target Layer as active -- not just highlight it. Also, using undo doesn't undo the TOLIAS operation -- I suppose because it only undoes the Layers operations, one per undo, without updating each scene again. This is typical SketchUp behavior -- undo doesn't undo Scene updates, unfortunately.

      1 Reply Last reply Reply Quote 0
      • H Offline
        HooCheong
        last edited by 31 Aug 2020, 07:08

        Working well in 2019. Thanks! 😄

        1 Reply Last reply Reply Quote 0
        • S Offline
          Swissmountain
          last edited by 30 Mar 2022, 18:59

          Hi there,

          Thank you for this plug-in, it is very useful and works great in SKP2021

          ...I just wish it would also turn on Layers using the same method!

          Can we hope that you will add this functionality?

          Cogito ergo dum-di-dum

          1 Reply Last reply Reply Quote 0
          • B Offline
            boofredlay
            last edited by 29 Apr 2022, 19:49

            Thanks for this.

            http://www.coroflot.com/boofredlay

            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