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

    [REQ] Select ALL by material

    Scheduled Pinned Locked Moved Plugins
    7 Posts 5 Posters 801 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.
    • R Offline
      rspierenburg
      last edited by

      I'm almost positive I've seen this script before but I cant find it anywhere. I'm looking for a script that will allow me to select all faces with a material on it, even if it contained inside a group or component. This will help me, for example, to change the reflectivity for my glass texture in Podium.

      1 Reply Last reply Reply Quote 0
      • GaieusG Offline
        Gaieus
        last edited by

        There is a menu item in the Context menu > Select > "Select with same material" but it only selects faces within the same editing con\text (i.e. not in groups if you are not in them). There is a plugin - GroupByTexture - however that (first explodes then) groups everything by material. It can particularly be useful in such a case (or for exporting into some 3rd party apps) although obviously not exactly that you are after.

        Gai...

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

          This script [ http://www.sketchucation.com/forums/scf/viewtopic.php?p=63629#p63629 : Global_Material_Change.rb ] probably does what you want... BUT there are several built in ways to do this too - like renaming and changing a material's setting so everything using that is changed to match another material in the model.

          My script works on a selection [or if there is no selection it uses all active entities]...

          You can choose any material that's loaded in the model and also choose <Default>, or << ALL >> which will change all materials in the selection to the new one - that's useful if you want to remove all materials from something and go to say the <Default> material...

          TIG

          1 Reply Last reply Reply Quote 0
          • H Offline
            Howard leslie
            last edited by

            Try quick_selection.rb - really good.
            Available on Didier's website:
            http://www.crai.archi.fr/RubyLibraryDepot/Ruby/RUBY_Library_Depot.htm
            ...........
            Hope this helps
            Howard L'

            1 Reply Last reply Reply Quote 0
            • R Offline
              rspierenburg
              last edited by

              I looked at your script Tig, not sure it will do what I need. Yours selects and replaces texture to another texture. I need the faces selected so I can globally change a property on all the faces with a certain texture on it. SU Podium's reflectivity to be exact. Its a property on the face, not the texture.

              1 Reply Last reply Reply Quote 0
              • Chris FullmerC Offline
                Chris Fullmer
                last edited by

                I don't think you have faces inside different component levels selected simulatenously though. So it won't work globally. You could make a script that would take a single face and show its podium properties, then let you adjust those and apply them globally.

                That would probably best be built into the podium script though. But it wouldn't have to be I don't think,

                Chris

                Lately you've been tan, suspicious for the winter.
                All my Plugins I've written

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

                  @rspierenburg said:

                  I looked at your script Tig, not sure it will do what I need. Yours selects and replaces texture to another texture. I need the faces selected so I can globally change a property on all the faces with a certain texture on it. SU Podium's reflectivity to be exact. Its a property on the face, not the texture.

                  OK here's one that does what you want 'Select All Faces by Material'...

                  Usage:

                  1. Select faces / entities.
                    [IF NO selection ALL active entities are used]
                    2. Activate the script from the Plugins Menu.
                    3. Choose Material.
                    << DEFAULT >> = ALL Faces that have NO Materials
                    and then an Alphabetical list of other Materials in the Model.
                    4. Choose the desired Material.
                    To access Materials that are off the visible list type
                    the first letter - e.g. 'W' and use up/down arrow-keys
                    to move to the one you want e.g. 'W'hite...
                    5. All Faces are selected.
                    Note: to also include groups and instances etc put # in front of
                    'and e.typename=="Face"' on line #59...
                    Faces with Materials within groups/instances ARE selected BUT 'default-material' ones painted en mass aren't...

                  Feedback please...


                  SelectAllFacesByMaterial.rb

                  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