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

    [Plugin] Material Replacer

    Scheduled Pinned Locked Moved Plugins
    73 Posts 39 Posters 79.1k Views 39 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
      rv1974
      last edited by

      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

        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

          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
          • thomthomT Offline
            thomthom
            last edited by

            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

              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
              • thomthomT Offline
                thomthom
                last edited by

                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

                  @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
                  • Bob JamesB Offline
                    Bob James
                    last edited by

                    @thomthom said:

                    One can select all entities that has material with the same colour.

                    That's what I don't know how to do: If I could select all the entities with the same color and then isolate only those entities I could see which ones had the "wrong" color so I could change it.
                    Very belated update:

                    Karen Walkerman has done just what I requested above.
                    http://forums.sketchucation.com/viewtopic.php?t=31378
                    Thanks again Karen πŸ‘

                    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
                    • D Offline
                      dedmin
                      last edited by

                      Is it possible to change just the material of the picked face?

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

                        @dedmin said:

                        Is it possible to change just the material of the picked face?

                        Can't you just paint it ??

                        TIG

                        1 Reply Last reply Reply Quote 0
                        • D Offline
                          dedmin
                          last edited by

                          The beauty of this tool - You don't have to open a component to change the material of the faces.
                          But it changes all the material in the whole model - not just the face You click on.

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

                            @dedmin said:

                            The beauty of this tool - You don't have to open a component to change the material of the faces.
                            But it changes all the material in the whole model - not just the face You click on.

                            BUT your question was to change the material of the picked face !
                            You mean to change the material of the picked face INSIDE THE GROUP/INSTANCE !
                            It couldbe done... but I must leave it to others......

                            TIG

                            1 Reply Last reply Reply Quote 0
                            • D Offline
                              dedmin
                              last edited by

                              Yes, inside the group or component. And only of that picked fase.

                              1 Reply Last reply Reply Quote 0
                              • L Offline
                                lcbrewer
                                last edited by

                                How do you install this plugin

                                1 Reply Last reply Reply Quote 0
                                • thomthomT Offline
                                  thomthom
                                  last edited by

                                  Open the zip file and drop the .rb file and the folder with it into the Plugins folder where SketchUp is installed.

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

                                  1 Reply Last reply Reply Quote 0
                                  • bagateloB Offline
                                    bagatelo
                                    last edited by

                                    It would be possible to create a function swap some materials? Something like this:
                                    Imagine a blue box and a red ball. We play the plugin, we click on the box and after the ball, and the colors are reversed. It would be interesting too, if it were possible to exchange materials not in the whole scene, but only on selected objects. Thanks for this fantastic tool.

                                    While the cat's away, the mice will play

                                    1 Reply Last reply Reply Quote 0
                                    • C Offline
                                      cobb89
                                      last edited by

                                      Is there any way we can use this plugin to replace a specific material [.skm]..that has been used in the model with vray materials [i.e. .vismats]...??

                                      1 Reply Last reply Reply Quote 0
                                      • thomthomT Offline
                                        thomthom
                                        last edited by

                                        @cobb89 said:

                                        Is there any way we can use this plugin to replace a specific material [.skm]..that has been used in the model with vray materials [i.e. .vismats]...??

                                        Use V-Ray's material editor. Right click a material and Import

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

                                        1 Reply Last reply Reply Quote 0
                                        • jarynzlesaJ Offline
                                          jarynzlesa
                                          last edited by

                                          thank you for this plugin, i found this very useful. πŸ‘

                                          http://www.vizualizaceschodiste.mypage.cz/

                                          1 Reply Last reply Reply Quote 0
                                          • Bob JamesB Offline
                                            Bob James
                                            last edited by

                                            This sort of ties in with the current thread:
                                            http://forums.sketchucation.com/viewtopic.php?f=79&t=36987

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

                                            Advertisement