sketchucation logo sketchucation
    • Login
    🛣️ Road Profile Builder | Generate roads, curbs and pavements easily Download

    HIDDEN LAYERS in copied scenes

    scheduled pinned locked moved SketchUp Discussions
    sketchup
    4 Posts 3 Posters 757 Views 3 Watching
    loading-more-posts
    • oldest-to-newest
    • newest-to-oldest
    • most-votes
    reply
    • reply-as-topic
    guest-login-reply
    deleted-message
    • P Offline
      pipingguy
      last edited by

      If a scene is created that contains hidden layers, and then a new scene is created as a copy, the hidden layers need to be re-activated. Is there a way to avoid this? The hidden layers were generated by a plugin.

      one-reply-to-this-post last-reply-time reply quote 0
      • oceanembersO Offline
        oceanembers
        last edited by

        Run this in the ruby console to set all layers to default behavior

        Sketchup.active_model.layers.each{|layer| layer.page_behavior=0}
        

        edit:

        if you only want to change the behavior of one layer, run this and substitute NAME for your layer name

        Sketchup.active_model.layers.each {|layer| if layer.name=="NAME";layer.page_behavior=0;end}
        
        one-reply-to-this-post last-reply-time reply quote 0
        • P Offline
          pipingguy
          last edited by

          Thanks! And it seems to be permanent....vs. lasting only for one session.

          one-reply-to-this-post last-reply-time reply quote 0
          • S Offline
            slbaumgartner
            last edited by

            @pipingguy said:

            Thanks! And it seems to be permanent....vs. lasting only for one session.

            Yes - provided you save the model. Page behavior is a property of each Layer and is saved within the model.

            one-reply-to-this-post last-reply-time 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