• Login
sketchucation logo sketchucation
  • Login
πŸ€‘ SketchPlus 1.3 | 44 Tools for $15 until June 20th Buy Now

[Plugin] Select by Material, and Hide All Unselected

Scheduled Pinned Locked Moved Plugins
31 Posts 15 Posters 47.3k 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.
  • K Offline
    kwalkerman
    last edited by 1 Oct 2010, 18:19

    This is my first plugin, so go easy on me.

    It has 3 basic functions:

    1. It will select all entities within the active workspace that are painted with the current material. If the current material is the default, it will select all basic entities (but not groups or component instances). For now, the plugin doesn't look at UV, just material. Unlike the built-in SU tool, it also looks in sub-groups.

    2. Hides all unselected items. This is handy if you only want to look at the items that are painted with a specific material.

    Let me know how it works for you!

    --
    Karen


    material_selection.rb

    1 Reply Last reply Reply Quote 0
    • E Offline
      EarthMover
      last edited by 1 Oct 2010, 19:37

      Nice work. Thanks Karen! πŸ‘

      3D Artist at Clearstory 3D Imaging
      Guide Tool at Winning With Sketchup
      Content Creator at Skapeup

      1 Reply Last reply Reply Quote 0
      • C Offline
        CadFather
        last edited by 2 Oct 2010, 08:03

        Thank you Karen, funny how one's first plugin is often simple and so good. πŸ‘

        one suggestion.. have you thought of a way of 'getting' the material under the cursor?

        1 Reply Last reply Reply Quote 0
        • B Offline
          Bob James
          last edited by 2 Oct 2010, 09:05

          This is exactly the tool I've been looking for πŸ‘

          BUT: I selected a material (clicked on it to make it the current material), clicked on "Material Selection" in the Plugins drop-down list....but nothing happens 😲
          The material I selected was within a group: is that the problem?

          i7-4930K 3.4Ghz, 2x GTX780 6GB, 32GB DDR3-1600 ECC, OCZ Vertex 4 500GB, WD Black 3TB, 32TB NAS, 4x 27" Monitors, SpaceMouse Pro, X-keys XK-60

          1 Reply Last reply Reply Quote 0
          • C Offline
            CadFather
            last edited by 2 Oct 2010, 09:35

            Bob, make the material active in the material browser

            1 Reply Last reply Reply Quote 0
            • G Offline
              Gaieus
              last edited by 2 Oct 2010, 09:38

              πŸ‘
              It can be ver useful when someone is modelling for GE for instance, too (like in this topic ).
              Models sometimes get rejected for "incomplete texturing" when the modeller misses to texture a face or two somewhere in the model.

              Gai...

              1 Reply Last reply Reply Quote 0
              • K Offline
                kwalkerman
                last edited by 2 Oct 2010, 13:01

                Thanks for all the positive feedback.

                Bob - the tool should work to select materials within groups. However, if you are currently in component or group edit mode, it will only look at entities within the current workspace. Try exiting all components and running the plugin again. If this doesn't work, try it on a simple model... and let me know how it goes.

                CadFather - I can add something like this... Just give me a few days. Weekends are for construction.

                --
                Karen

                1 Reply Last reply Reply Quote 0
                • C Offline
                  CadFather
                  last edited by 2 Oct 2010, 13:48

                  thanks Karen and take your time..

                  1 Reply Last reply Reply Quote 0
                  • B Offline
                    Bob James
                    last edited by 2 Oct 2010, 22:57

                    In the attached picture I have:

                    1. Clicked on the tile material in the model
                    2. Noted that there are 46 faces with this material
                    3. Clicked on the tile material in the Material Editor
                    4. Clicked on Material Selection in the Plug-ins

                    Nothing selected-nothing hidden ❓


                    Material Selection.png

                    i7-4930K 3.4Ghz, 2x GTX780 6GB, 32GB DDR3-1600 ECC, OCZ Vertex 4 500GB, WD Black 3TB, 32TB NAS, 4x 27" Monitors, SpaceMouse Pro, X-keys XK-60

                    1 Reply Last reply Reply Quote 0
                    • C Offline
                      CadFather
                      last edited by 3 Oct 2010, 08:29

                      there are 2 menus in the plugins, one to select and one to hide - they don't work together at once

                      but it all works fine on my SU8, WinXP

                      1 Reply Last reply Reply Quote 0
                      • K Offline
                        kwalkerman
                        last edited by 3 Oct 2010, 21:59

                        The more I think about the option to 'get' the material under the cursor, the less it makes sense to me to add it into the plugin. I really like the fact that you can choose a material from the materials browser for selection. This way, you can choose to select something that you don't want in your model (or can't find), such as unpainted surfaces.

                        If you left the current functionality, and added the ability to get the material under the cursor, this would add a step to the process, which makes it no better than doing the following:

                        1. Pick a material with the built-in SU picker
                        2. Select materials

                        Let me know what you think.

                        --
                        Karen

                        1 Reply Last reply Reply Quote 0
                        • C Offline
                          CadFather
                          last edited by 3 Oct 2010, 22:22

                          Hi Karen, i was thinking it could be fast right-clicking and select by material - though this way works just fine

                          1 Reply Last reply Reply Quote 0
                          • K Offline
                            kwalkerman
                            last edited by 4 Oct 2010, 14:34

                            Bob - I sent you a PM, asking to see the model you are having difficulty with. Did you get everything figured out?

                            --
                            Karen

                            1 Reply Last reply Reply Quote 0
                            • B Offline
                              Ben Ritter
                              last edited by 4 Oct 2010, 15:19

                              Karen, thank you. Great!

                              1 Reply Last reply Reply Quote 0
                              • B Offline
                                Ben Ritter
                                last edited by 4 Oct 2010, 15:41

                                Karen,

                                I have the same problem as Bob. Other materials are not hiding. I'm using version 8. I tried it with the default entity Susan. Ben

                                1 Reply Last reply Reply Quote 0
                                • B Offline
                                  Bob James
                                  last edited by 5 Oct 2010, 05:34

                                  Karen,
                                  Thanks for the offer to look at my model, but I think I have it now:
                                  So the sequence is to make the material active, use "Material Selection" and then use "Hide All Un-selected".

                                  CadFather: I did not see the other entry in the plugin list: "Hide All Un-selected".

                                  That's sort of an unusual approach. I would suggest that the "Material Selection" entry have a fly-out menu for the Hide option.


                                  Plugins-Material Selection.png


                                  Plugins-Material Selection.png

                                  i7-4930K 3.4Ghz, 2x GTX780 6GB, 32GB DDR3-1600 ECC, OCZ Vertex 4 500GB, WD Black 3TB, 32TB NAS, 4x 27" Monitors, SpaceMouse Pro, X-keys XK-60

                                  1 Reply Last reply Reply Quote 0
                                  • K Offline
                                    kwalkerman
                                    last edited by 6 Oct 2010, 12:45

                                    Bob (and CadFather),

                                    I wanted to leave them separate because I thought 'hide all unselected' could be useful for other applications... But I think I can figure out a fly-out.

                                    --
                                    Karen

                                    1 Reply Last reply Reply Quote 0
                                    • C Offline
                                      CadFather
                                      last edited by 6 Oct 2010, 15:22

                                      i for one prefer them separate

                                      1 Reply Last reply Reply Quote 0
                                      • McGyverM Offline
                                        McGyver
                                        last edited by 7 Oct 2010, 04:21

                                        You rock!! I'm finishing up a huge model and just this morning I was thinking I wonder if there is anything that could... well, do what this ruby does!! THANK YOU!!

                                        [Visit My ShareCG Freebie Gallery](http://www.ShareCG.com/pf/full_uploads.php?pf_user_name)

                                        1 Reply Last reply Reply Quote 0
                                        • B Offline
                                          Bob James
                                          last edited by 7 Oct 2010, 04:38

                                          @cadfather said:

                                          i for one prefer them separate

                                          I yield to the power πŸ˜„ (As long as they stay together in the plugin list)

                                          i7-4930K 3.4Ghz, 2x GTX780 6GB, 32GB DDR3-1600 ECC, OCZ Vertex 4 500GB, WD Black 3TB, 32TB NAS, 4x 27" Monitors, SpaceMouse Pro, X-keys XK-60

                                          1 Reply Last reply Reply Quote 0
                                          • 1
                                          • 2
                                          • 1 / 2
                                          1 / 2
                                          • First post
                                            1/31
                                            Last post
                                          Buy SketchPlus
                                          Buy SUbD
                                          Buy WrapR
                                          Buy eBook
                                          Buy Modelur
                                          Buy Vertex Tools
                                          Buy SketchCuisine
                                          Buy FormFonts

                                          Advertisement