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

    Replacing SKu Material with another from the current library

    Scheduled Pinned Locked Moved SketchUp Discussions
    sketchup
    11 Posts 5 Posters 1.3k 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.
    • B Offline
      bmscmoreira
      last edited by

      Hi all.
      I was just wandering if is it possible to do this: replace a material from the current drawing with other material from the same drawing. All this using just the material editor, and no selection or re-painting.
      I have 3 materials named "steel 1", "steel 2" and "steel 3" and I want "steel 2" and "steel 3" to be replaced by "steel 1".
      Note: If I try to delete any material, Sku asks if I want to replace it with the default material... the trick is to replace with other material than the default.
      Thanks!

      http://www.brunomoreira.net

      1 Reply Last reply Reply Quote 0
      • E Offline
        Ecuadorian
        last edited by

        +1

        Hi, Bruno.

        I have found no way to do this, but it would certainly be very cool if anyone can come up with a solution.

        -Miguel Lescano
        Subscribe to my house plans YouTube channel! (30K+ subs)

        1 Reply Last reply Reply Quote 0
        • X Offline
          xrok1
          last edited by

          try this http://forums.sketchucation.com/viewtopic.php?f=180&t=13192&start=0&st=0&sk=t&sd=a&hilit=GlobalMaterialChange

          “There are three classes of people: those who see. Those who see when they are shown. Those who do not see.”

          http://www.Twilightrender.com try it!

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

            You can do this using the Shift and Control(Apple and Option? on Mac) modifier keys.

            Select new color >
            -Shift+click will change all matching materials in model
            -Control+click will change all matching connected materials
            -Control+shift+click will change all matching materials on the same object

            ...or try TIG's script

            3D Printing with SketchUp Book
            http://goo.gl/f7ooYh

            1 Reply Last reply Reply Quote 0
            • X Offline
              xrok1
              last edited by

              that @#$@# awsome d12, thanks a bunch for the heads up!
              now thats what i call a tip! 😍

              “There are three classes of people: those who see. Those who see when they are shown. Those who do not see.”

              http://www.Twilightrender.com try it!

              1 Reply Last reply Reply Quote 0
              • B Offline
                bmscmoreira
                last edited by

                Thanks Ecuadorian, that was precisely what I had in mind! Its really that: eliminate duplicates and triplicates of a material that should be the same. Your explanation is absolutely clear. I will investigate, if I do find a way I will post it.

                http://www.brunomoreira.net

                1 Reply Last reply Reply Quote 0
                • Alan FraserA Offline
                  Alan Fraser
                  last edited by

                  There's no way you can do what you want in your original question...because, as you've probably found out, the Materials editor won't allow duplicate material names...so you can't consolidate all the steels under a Steel 1 title.
                  That's not to say that you can't standardise the materials and have them all the same for render purposes. You can edit steel 2 and steel 3 in terms of the texture file used and its scale (assuming they were different in the first case) so that they become identical to steel 1. You'll still have their names in the materials browser, but at least everything will now look the same.

                  As things stand at the moment, to tidy up completely, you'd need to get in there and select/replace all instances of steel 2 and 3 with steel 1 then purge the model. At the back of my mind, I think there is a Ruby that deals with material replacement on a global scale, but I've never used it myself.

                  3D Figures
                  Were you required to walk 500 miles? Were you advised to walk 500 more?
                  You could be entitled to compensation. Call the Pro Claimers now!

                  1 Reply Last reply Reply Quote 0
                  • E Offline
                    Ecuadorian
                    last edited by

                    Thanks for the tip. However:

                    Shift+Click changes the material in the current context. You still have to go inside each component to do it. TIG's script works with selections, which is awesome for applying a single mat to everything inside a component. EDIT: If you select nothing it applies the change to the whole model, so TIG's material changer script, which Rocky linked, is what you're looking for.

                    Please ignore this part of my original post 😳

                    @unknownuser said:

                    Still no way to do what Bruno wants. I'll rephrase it: Let's say you have two dozens of different chair components in your file, and each has one or two different "chrome" materials applied to their shiny parts. They also have several leather, plastic and fabric materials, often more than one per component. This makes it a nightmare to make changes when you're rendering tests, as each test requires you to manually edit each of all those materials. If there was a way to remap materials you could consolidate all those chrome mats into one. Same for the leather, plastic and fabrics materials.

                    What I say sounds exaggerate but it's pretty much what happens after filling your project with 3D warehouse stuff. You start to have lots of duplicate materials that become a pain in the neck very soon and would be nice to have a way to remap them.

                    -Miguel Lescano
                    Subscribe to my house plans YouTube channel! (30K+ subs)

                    1 Reply Last reply Reply Quote 0
                    • E Offline
                      Ecuadorian
                      last edited by

                      Alan, thanks a lot for your post, as it encouraged me to take a second look at TIG's script and indeed if you select nothing it does exactly what Bruno needs. This has just been another big Duh! moment for me.

                      Bruno, after making the change, make sure to purge the model as Alan said.

                      -Miguel Lescano
                      Subscribe to my house plans YouTube channel! (30K+ subs)

                      1 Reply Last reply Reply Quote 0
                      • B Offline
                        bmscmoreira
                        last edited by

                        I will certainly look at tig's script for sure. Thank you all.

                        http://www.brunomoreira.net

                        1 Reply Last reply Reply Quote 0
                        • B Offline
                          bmscmoreira
                          last edited by

                          TIG's script + purge model from model info (or purgeall.rb ruby) works great. Thank you all. From now on, no more materials than those strictly needed!

                          http://www.brunomoreira.net

                          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