sketchucation logo sketchucation
    • Login
    ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info

    Select Vertical planes - Select Horizontal planes

    Scheduled Pinned Locked Moved SketchUp Discussions
    sketchup
    3 Posts 2 Posters 573 Views 2 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.
    • 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!

      1 Reply Last reply 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

        1 Reply Last reply Reply Quote 0
        • E Offline
          errror404
          last edited by

          THANKS TIG!!!

          that was pretty awesome!

          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