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

    Select by colour - ruby?

    Scheduled Pinned Locked Moved Newbie Forum
    sketchup
    3 Posts 3 Posters 67 Views 3 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.
    • artmusicstudioA Offline
      artmusicstudio
      last edited by

      hello,
      i use the SELECTOR for selection by geometry

      does anybody know a ruby for SELECTION BY COLOUR ?

      thanx stan

      1 Reply Last reply Reply Quote 0
      • cottyC Offline
        cotty
        last edited by

        You can rightclick on a color in the material browser to get a select option...

        my SketchUp gallery

        1 Reply Last reply Reply Quote 0
        • TIGT Offline
          TIG Moderator
          last edited by

          It's built into the Materials Browser context-menus, but that only selects faces in the current active context that use the chosen material, ignoring any groups, instances, edges, text etc using the material.

          This one-liner copy/pasted+<enter> in the Ruby Console will select everything using the material specified by name - edit the 'mname=' to suit the material you seek...

          mname="Material1";m=Sketchup.active_model;s=m.selection;s.clear;m.active_entities.each{|e|s.add(e)if e.respond_to?(;material) && e.material && e.material.display_name==mname}
          

          TIG

          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