• Login
sketchucation logo sketchucation
  • Login
🤑 SketchPlus 1.3 | 44 Tools for $15 until June 20th Buy Now

[REQ] Select ALL by material

Scheduled Pinned Locked Moved Plugins
7 Posts 5 Posters 801 Views
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 22 Apr 2009, 18:47

    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
    • G Offline
      Gaieus
      last edited by 23 Apr 2009, 08:07

      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
      • T Offline
        TIG Moderator
        last edited by 23 Apr 2009, 10:47

        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 23 Apr 2009, 11:46

          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 23 Apr 2009, 13:45

            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
            • C Offline
              Chris Fullmer
              last edited by 23 Apr 2009, 15:40

              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
              • T Offline
                TIG Moderator
                last edited by 23 Apr 2009, 16:38

                @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
                1 / 1
                • First post
                  7/7
                  Last post
                Buy SketchPlus
                Buy SUbD
                Buy WrapR
                Buy eBook
                Buy Modelur
                Buy Vertex Tools
                Buy SketchCuisine
                Buy FormFonts

                Advertisement