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

    Select Vertical planes - Select Horizontal planes

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

      Hey guys, quick question... I have a site model done in 1' increments (kind of big) and I would like to assign a texture to all the horizontal planes. To do so, I'm planning to use the ThruPaint plugin (Projected UV), which would make it a piece of cake.

      Now my question is... how could I select all the vertical planes and assign another color?

      Too many and too small for me to select one by one.... I'm sure there's plugin somewhere that can do this task

      Thanks!

      one-reply-to-this-post last-reply-time reply quote 0
      • TIGT Offline
        TIG Moderator
        last edited by

        Copy+paste these one-liners into the Ruby Console + <enter>
        All horizontal [flat] faces - UP and DOWN - in a selection:

        s=Sketchup.active_model.selection;a=s.to_a;s.clear;s.add(a.grep(Sketchup;;Face).select{|e| e.normal.parallel?(Z_AXIS)})
        

        All horizontal [flat] faces - UP only - in a selection:

        s=Sketchup.active_model.selection;a=s.to_a;s.clear;s.add(a.grep(Sketchup;;Face).select{|e| e.normal==Z_AXIS})
        

        All horizontal [flat] faces - DOWN only - in a selection:

        s=Sketchup.active_model.selection;a=s.to_a;s.clear;s.add(a.grep(Sketchup;;Face).select{|e| e.normal==Z_AXIS.reverse})
        

        All vertical Faces in a selection:

        s=Sketchup.active_model.selection;a=s.to_a;s.clear;s.add(a.grep(Sketchup;;Face).select{|e| e.normal.z==0})
        

        TIG

        one-reply-to-this-post last-reply-time reply quote 0
        • E Offline
          errror404
          last edited by

          THANKS TIG!!!

          that was pretty awesome!

          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