• Login
sketchucation logo sketchucation
  • Login
ℹ️ GoFundMe | Our friend Gus Robatto needs some help in a challenging time Learn More

[Plugin] Material Replacer

Scheduled Pinned Locked Moved Plugins
73 Posts 39 Posters 79.0k 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.
  • T Offline
    thomthom
    last edited by thomthom 11 Feb 2010, 22:00

    Tools -> Material Replacer

    Tool that let you replace materials by picking from the model.

    1. Pick the material to replace
    mar_rep_1.png

    2. Pick the material to replace with
    mar_rep_2.png

    Result: the first material is replaced with the second material in the entire model
    mar_rep_3.png

    Link Preview Image
    SketchUp Plugins | PluginStore | SketchUcation

    SketchUp Plugin and Extension Store by SketchUcation provides free downloads of hundreds of SketchUp extensions and plugins

    favicon

    (sketchucation.com)


    Cookieware.png

    Thomas Thomassen — SketchUp Monkey & Coding addict
    List of my plugins and link to the CookieWare fund

    1 Reply Last reply Reply Quote 0
    • T Offline
      thomthom
      last edited by 12 Feb 2010, 09:46

      Should now be picking the material from the side of the face visible to the user.

      Thomas Thomassen — SketchUp Monkey & Coding addict
      List of my plugins and link to the CookieWare fund

      1 Reply Last reply Reply Quote 0
      • P Offline
        pichuneke
        last edited by 12 Feb 2010, 12:18

        Thanks, I will test the plugin this weekend, it seems very interesting.

        Your cookie:

        COOKIE.jpg

        Forgive my spanglish...

        1 Reply Last reply Reply Quote 0
        • T Offline
          thomthom
          last edited by 12 Feb 2010, 12:31

          what a delightful virtual cookie.

          Now... if I can only fit my monitor inside my mouth?

          Thomas Thomassen — SketchUp Monkey & Coding addict
          List of my plugins and link to the CookieWare fund

          1 Reply Last reply Reply Quote 0
          • P Offline
            pichuneke
            last edited by 12 Feb 2010, 12:37

            In fact I was eating cookies while I was reading you, I have been working with my scanner all the week making pdfs for my work, and I couldn't resist the temptation to scan one cookie for you! 😄

            Forgive my spanglish...

            1 Reply Last reply Reply Quote 0
            • E Offline
              EarthMover
              last edited by 14 Feb 2010, 14:36

              Thanks TT! Trying to limit the number of new plugins I download, but this one looks useful!! Keep up all you great scripting efforts....it's definitely appreciated!

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

              1 Reply Last reply Reply Quote 0
              • A Offline
                agrazdi
                last edited by 14 Feb 2010, 23:17

                Any plans to get an icon for this great plugin ?

                Thanks

                agrazdi

                1 Reply Last reply Reply Quote 0
                • S Offline
                  simon le bon
                  last edited by 14 Feb 2010, 23:58


                  http://www.lejapon.fr/blog/images/japan_life2008/IMG_5340.jpg

                  and this is mine dear thomthom 👍 👍

                  simon

                  1 Reply Last reply Reply Quote 0
                  • N Offline
                    nomeradona
                    last edited by 16 Feb 2010, 05:23

                    definitely a time saver. thanks thom2

                    visit my blog: http://www.nomeradona.blogspot.com

                    1 Reply Last reply Reply Quote 0
                    • P Offline
                      pilou
                      last edited by 16 Feb 2010, 10:31

                      Don't yet tested but if I understand you are not obliged to pass with the bucket tool for have the eye dropper?
                      here my Proust's madeleine 😉

                      http://dd.img.v4.skyrock.net/ddc/lemonzrh/pics/2314562571_2.jpg

                      Frenchy Pilou
                      Is beautiful that please without concept!
                      My Little site :)

                      1 Reply Last reply Reply Quote 0
                      • bagateloB Offline
                        bagatelo
                        last edited by 1 Jun 2010, 19:21

                        I thought about an additional function in this plugin that may be useful for a lot of people.
                        The plugin would create several squares (or plans, or boxes) in the scene, in a separate place, maybe in separate tab.
                        The of number of the squares (or plans, or boxes) it would be the same as the number of the materials in the scene.
                        In each one of them it would be applied a material. The objective of this function would be the one of to join identical materials or to join similar materials in the scene, reducing the number of materials in the scene. That would aid a lot in the moment of preparing the materials for rendering.
                        Another interesting function would be to erase all of the squares and to recreate all from materials purged.
                        That would be very special for me. Please, think with love about this possibility.

                        While the cat's away, the mice will play

                        1 Reply Last reply Reply Quote 0
                        • bagateloB Offline
                          bagatelo
                          last edited by 1 Jun 2010, 19:25

                          Another interesting thing would be if it was possible to change materials just in the selected objects.

                          While the cat's away, the mice will play

                          1 Reply Last reply Reply Quote 0
                          • T Offline
                            thomthom
                            last edited by 17 Jun 2010, 09:32

                            Excellent ideas! 💭 👍

                            Thomas Thomassen — SketchUp Monkey & Coding addict
                            List of my plugins and link to the CookieWare fund

                            1 Reply Last reply Reply Quote 0
                            • R Offline
                              rv1974
                              last edited by 17 Jun 2010, 09:34

                              Thomtom huge thank you!
                              2 things that would make this script a dream come true:

                              1. To be able to make the 'first eyedropper click' a multiple one (with control key)- to select a set of materials to be replaced.
                              2. To insert material editor into the picture. I mean ability to select materials (to be replaced\replacement candidate) both in model and mateditor.
                                Almost forgot: 😄

                              92743-0-0-2.jpg

                              1 Reply Last reply Reply Quote 0
                              • McGyverM Offline
                                McGyver
                                last edited by 17 Jun 2010, 12:03

                                Very cool! Thank you!


                                wlcookie.jpg

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

                                1 Reply Last reply Reply Quote 0
                                • Bob JamesB Offline
                                  Bob James
                                  last edited by 15 Jul 2010, 00:49

                                  I have a real need for something very similar to bagatelo's request.

                                  I have a need that doesn't seem to fit "Select by Material" or "Material Replacer" or "Repaint" or "GlobalMaterialChange".

                                  In the development of my major models I was not very consistent with color application. As I've learned more and have gotten much more involved with rendering (TwiLight originally and now Thea) the actual colors are very important.

                                  What I would like to be able to do is select a material/color that is in the model from the materials dialog (or something like bagatelo's idea) and then be able to select all objects that have that color/material. Then I need to be able to isolate them so I can see what's been selected, and, finally, with all of these selected, I can change their color. But I need to know which objects, groups, components are that color so I don't accidentally change one that I don't want changed.

                                  Does anyone have an idea of how to do this or even if it could be done?

                                  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
                                  • T Offline
                                    thomthom
                                    last edited by 15 Jul 2010, 08:12

                                    One can select all entities that has material with the same colour.
                                    However, this isolation - not quite sure what you mean there. You mean hide all other faces/edges?
                                    Can't think of nay other way to isolate. You do have the Hide Rest of Model feature in SU, but then everything would need to be inside a group/component - and the API doesn't let us upen up groups etc...

                                    Thomas Thomassen — SketchUp Monkey & Coding addict
                                    List of my plugins and link to the CookieWare fund

                                    1 Reply Last reply Reply Quote 0
                                    • D Offline
                                      Dragoonprogramming
                                      last edited by 20 Aug 2010, 17:55

                                      someone buy thomthom a cookie at base camp and take a picture of it 😄

                                      "...And if he says that one more time i'll punch him right in the throat" - Armstrong and Getty
                                      My website http://dragoonprogramming.weebly.com/

                                      1 Reply Last reply Reply Quote 0
                                      • T Offline
                                        thomthom
                                        last edited by 23 Aug 2010, 23:23

                                        I'm not going to Basecamp... 😞

                                        Thomas Thomassen — SketchUp Monkey & Coding addict
                                        List of my plugins and link to the CookieWare fund

                                        1 Reply Last reply Reply Quote 0
                                        • Bob JamesB Offline
                                          Bob James
                                          last edited by 27 Aug 2010, 21:53

                                          @thomthom said:

                                          I'm not going to Basecamp... 😞

                                          Bummer 😢

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

                                          Advertisement