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

    Functional Material Names and Material Styles

    Scheduled Pinned Locked Moved Plugins
    15 Posts 2 Posters 643 Views 2 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.
    • Al HartA Offline
      Al Hart
      last edited by

      The normal SketchUp user sets materials on object by selecting a material from the library and then placing in on a object. When you select materials from a library and drop them onto objects in your SketchUp model, then often the name refers to the material - such as Red Brick - rather than the use of the material - such as Outside Wall.

      If you create objects whose materials have functional names, such as Ceiling, Table Top, Floor, etc. Then you can assign materials from a library to these materials - without changing the material name - using Replace Material or you can replace all the materials at once using Material Styles.
      Example

      Here is a SketchUp Kitchen model with material names which are functional. ('Base Cabinets', 'Lower Cabinet Doors'), instead of descriptive ('Red', 'Wood_Floor'), and one set of material defined.

      http://wiki.renderplus.com/images/3/37/Model_Materials1.jpg

      Here is the same model with different materials applied to the surfaces.

      Yhe original Material Style is then selected from the Wizard, and when Load Selected Style is clicked, the materials in the model are re-mapped to the materials in the saved style.

      Select Material Style

      http://wiki.renderplus.com/images/3/38/Load_Style.jpg

      Model after applying Style

      http://wiki.renderplus.com/images/7/70/Load_Style_2.jpg

      Want to learn more?

      See: Material Styles

      Beta Test

      This is currently only available for testing in IRender nXt. If there is interest we will find a way to release it as part of RpTools rather than IRender nXt.

      Download the latest version of IRender nXt to see it in action.

      If you need a new 3 day trial of IRender nXt to try it out, send us an email at support@renderplus.com


      What do you think - will this be useful for SketchUp models?

      I should work for other rendering packages as well, because we save the attributes on the materials into the Style and reload them. Try it out and let us know.

      Al Hart

      http:wiki.renderplus.comimageseefRender_plus_colored30x30%29.PNG
      IRender nXt from Render Plus

      1 Reply Last reply Reply Quote 0
      • gullfoG Offline
        gullfo
        last edited by

        great post! i do this as well using plain colors and naming them to define their function and even some with more detail like "lumber_runner" "lumber_stud" etc so getting parts list is easier using cutlist and component / attribute reports.

        one thing that SU needs to fix is that the material is based on the color setting and not the name - so if you have a color "#909090" and call it "roof_mid" and and another "#909090" called "foundation_wall" you will only get one of them. so SU needs to have the colors tweaked "#929090" and "#909290" etc in order to have them be considered separate... annoying...

        Glenn

        http://www.runnel.com

        1 Reply Last reply Reply Quote 0
        • Al HartA Offline
          Al Hart
          last edited by

          Thanks for the thoughtful reply, gullfo.

          You may want to take a look at our Material Placement Wizard.

          http://wiki.renderplus.com/images/c/c3/Replace_cabinet_doors.jpg

          Replace Material

          We added the "Replace" check box to support these Material Schemes. "Replace" changes the current material to match the library material - keeping the original name. So that once you rename a material to "lumber_runner", you can change it color or texture easily without having to then rename the new material.

          This "Replace" feature also, automatically, changes the material color and texture for all objects using the current material.

          See: Replace Material

          Change Name During Material Placement

          Based on your comments we could add a text box to let you rename the material as you place it - so you would not have to first place a material and then rename it in the SketchUp Materials Window. (This would be completely separate from "Replace")

          Make Unique Name

          And we could add a "Make unique" button which adds -1, -2, etc. to the end of the material name until it finds a name which does is not already being used in your model.

          Automatic Drilling

          The Render Plus Material Wizard also, automatically drills into groups and components to determine which face, group or component is best to apply the material to.

          SpaceDesign Reports by Material

          Also, if you have never looked at SpaceDesign, you may want to consider using it for reporting. This forum thread discusses reporting on components based on their material name.

          [url]
          http://forum.irendernxt.com/forum/topics/space-design-material-in-report[/url]

          Al Hart

          http:wiki.renderplus.comimageseefRender_plus_colored30x30%29.PNG
          IRender nXt from Render Plus

          1 Reply Last reply Reply Quote 0
          • Al HartA Offline
            Al Hart
            last edited by

            gullfo,

            You will also want to see our other post:

            Replace Materials while keeping the names

            Which makes it very to change to color of several materials at once, while retaining the original names.

            http://wiki.renderplus.com/images/a/ae/Material_map-replace1.jpg

            Al Hart

            http:wiki.renderplus.comimageseefRender_plus_colored30x30%29.PNG
            IRender nXt from Render Plus

            1 Reply Last reply Reply Quote 0
            • gullfoG Offline
              gullfo
              last edited by

              thanks Al! it looks like a nice feature set, but right now what i do is simply use the material replacer script to change out materials enmasse when i'm ready to render and i usually just clone the main working file to do that since i'm tweaking (not twerking 😄 ) things specific for the image generation that i do not want on my construction drawings etc.

              the issue i raised though is that the name of the material is not observed by SU, only the actual underlying RGB composition. for example you could (in your tool) assign the same A02 color to multiple names in your rendering tool (i can do the same in Kerkythea) but in the native SU i cannot have 2 materials with the same RGB - so for example i cannot use the same gray color to represent all steel items, i have to use variations. when it comes time to render (only a small part of my workflow) i can apply the same color to as many things as i want (and it looks like your rendering tool can as well) but when i need to generate material lists for parts, lumber, sheet materials, steel structure, etc - i cannot because the SU materials are not separated by name (annoying as noted before 😄 )
              it would be a good feature in your tool to enable unique so your tool would want to create these as true SU materials (and the unique forces a small tweak to the RGB to enable it to be truly unique).

              Glenn

              http://www.runnel.com

              1 Reply Last reply Reply Quote 0
              • Al HartA Offline
                Al Hart
                last edited by

                @gullfo said:

                the issue i raised though is that the name of the material is not observed by SU, only the actual underlying RGB composition. for example you could (in your tool) assign the same A02 color to multiple names in your rendering tool (i can do the same in Kerkythea) but in the native SU i cannot have 2 materials with the same RGB - so for example i cannot use the same gray color to represent all steel items, i have to use variations. when it comes time to render (only a small part of my workflow) i can apply the same color to as many things as i want (and it looks like your rendering tool can as well) but when i need to generate material lists for parts, lumber, sheet materials, steel structure, etc - i cannot because the SU materials are not separated by name (annoying as noted before 😄 )
                it would be a good feature in your tool to enable unique so your tool would want to create these as true SU materials (and the unique forces a small tweak to the RGB to enable it to be truly unique).

                I must be missing something here???

                In this model I place color 0001 on the first component, then renamed it (-A), and then placed the same color on the 2nd component and renamed it to -B.

                The two materials both have the same RGB, and both show up in the report.

                (I have attached the SKP)

                How can I reproduce what you are describing?

                Make Unique

                We are adding a Make Unique button to our material placer which will take the selected, but not yet placed material and and -01, -02, ... to the name until it has a name which is not yet being used in the model.

                If what you say about RGB is true, then we could easily modify the RGB slightly until it became unique as well. But i would like to be able to demonstrate the problem in some way.


                Two materials with the same RGB

                Al Hart

                http:wiki.renderplus.comimageseefRender_plus_colored30x30%29.PNG
                IRender nXt from Render Plus

                1 Reply Last reply Reply Quote 0
                • gullfoG Offline
                  gullfo
                  last edited by

                  sorry i should clarify, if you try to load a second material with the same RGB it will revert to the first color with that RGB.

                  for example, save your two materials to your materials directory, create a new file and add your components, then from your materials window, select the saved -A material and apply it. then try to select the saved -B material and apply it.

                  so one option to get around this would be to create and save all the materials i want into a model file which is loaded like a component so the materials are on-boarded, just not directly from the materials window. but i don't always want to load all of them, so maybe i need to create material components which are by class of material...


                  list of material - A + B


                  materials in model because of RGB issue

                  Glenn

                  http://www.runnel.com

                  1 Reply Last reply Reply Quote 0
                  • Al HartA Offline
                    Al Hart
                    last edited by

                    I sounds like if our Make Unique function not only made the name unique, but also changed the RGB slightly until is was unique as well, then the materials would stay unique.

                    I'll try that out.

                    It also sounds like when you load a component, SketchUp will use existing materials if they are identical to the materials already in the component. That would still be a hassle - since the material colors in the component materials might accidentally match the colors in the model already.

                    I'll see if the reuse happens even if they component has attributes. If attributes solve the problem, then we can just add a unique (UUID like) attribute to each material when we make it unique.

                    Al Hart

                    http:wiki.renderplus.comimageseefRender_plus_colored30x30%29.PNG
                    IRender nXt from Render Plus

                    1 Reply Last reply Reply Quote 0
                    • gullfoG Offline
                      gullfo
                      last edited by

                      so.. i did create an SU model with a bunch of materials, created some squares to apply them to, and then saved it. opened a new model then added the material file as a component. only the first material to load with that RGB was applied ("used") even though all the materials show in the model... so somewhere SU is looking only at the RGB aspect of the material for applying or displaying - maybe something to improve rendering time... still it would be nice to have it based on name...


                      loaded component - all colors there


                      after purge un-used...


                      model


                      model file

                      Glenn

                      http://www.runnel.com

                      1 Reply Last reply Reply Quote 0
                      • Al HartA Offline
                        Al Hart
                        last edited by

                        If you don't mind doing a little more work, lets try this with a minimum amount of materials

                        1. Create a model with just 2 squares.

                        Apply the same material to them - renaming it as you go so you now have two rectangles with two materials which are identical with different names.

                        Purge Unused just before saving, and verify that there are only two materials in the saved model.

                        1. Create a new database, and apply the original, un-renamed material to a rectangle.

                        2. Load the first model as a component (I was using import for this)

                        When I am done I have three unique material names.

                        1 I had just placed and 2 from the component.

                        (Use list view to see the material names, rather then the colors)

                        Try my two SKP files: Open

                        Load 1-rectangle with color.skp, and then import 2-squares with color.skp into it.

                        It works fine for me. If it doens't work for you, perhaps a rendering package you have loaded, or some other plugin i optimizing the materials for you???


                        3 squares.jpg


                        2-squares with color.skp


                        1-rectangle with color.skp

                        Al Hart

                        http:wiki.renderplus.comimageseefRender_plus_colored30x30%29.PNG
                        IRender nXt from Render Plus

                        1 Reply Last reply Reply Quote 0
                        • gullfoG Offline
                          gullfo
                          last edited by

                          interestingly... your files loaded ok. so i disabled all my plugins and used a simple native template, and replicated the idea - but it would not work - still have the missing material issue with adding the 2 squares into the 1 rectangle (my files). but - if i load the 2 squares first and then import the 1 rectangle - i get all 3 materials...

                          i don't use a built-in rendering tool and as a note all plugins (including SU ones) were disabled and i was using the native Simple template w the person removed and purged...


                          1 rectangle w 1 color


                          2 square w 2 color

                          Glenn

                          http://www.runnel.com

                          1 Reply Last reply Reply Quote 0
                          • Al HartA Offline
                            Al Hart
                            last edited by

                            I had the same problem importing your 2-square model.

                            I noticed that your 2 materials were called Material1 and Material2

                            I renamed them and saved the model with a new name and imported it and it imported OK.

                            Do you usually leave the default names on your materials before importing the models as components, or do you rename the materials first?

                            Try importing this model - which is your model with the materials renamed.


                            2 square with 2 color-al.skp

                            Al Hart

                            http:wiki.renderplus.comimageseefRender_plus_colored30x30%29.PNG
                            IRender nXt from Render Plus

                            1 Reply Last reply Reply Quote 0
                            • gullfoG Offline
                              gullfo
                              last edited by

                              that worked. i don't typically leave the name as a default - but - i also don't typically put hyphens in them. i'm wondering if there is something about the names having underscore or hyphens that matter 😄

                              edit -- so using hyphen or underscore in the name seems to work... creepy coding behind the scenes to not take names without them 🤢 😢 but i can live with that... 😄

                              so it appears that if you have materials with only alphanumeric values in the name you get the RGB collision, and if you have (at least) a hyphen or underscore in the name, then you don't get the RGB collision... probably something you'll want to make a note of for your product guide ☀

                              Glenn

                              http://www.runnel.com

                              1 Reply Last reply Reply Quote 0
                              • Al HartA Offline
                                Al Hart
                                last edited by

                                I tried simply renaming them to Material1A and Material1B - no hyphens - and they loaded OK - so simply renaming seems to fix the problem.

                                Then I renamed them again to Material21 and Material22, and they failed - so it is not just sequential names 1,2,... which fail.

                                I suspect that SketchUp tries to map it automatically assigned material names, MaterialNNN, to an identical material if found. That makes some sense - since SketchUp might assume that people who create materials and don't change the names don't really care if they get renamed when importing the model as a component.

                                Thanks for your help on this. It is a lot of work to learn how materials really work.

                                Rich is working now on a edit box during placement which will make it easy to select a material from the library, rename it and then place it all in one step.

                                Al Hart

                                http:wiki.renderplus.comimageseefRender_plus_colored30x30%29.PNG
                                IRender nXt from Render Plus

                                1 Reply Last reply Reply Quote 0
                                • gullfoG Offline
                                  gullfo
                                  last edited by

                                  very good! i'll try the experiment as well. if so this would be something they should fix soonest as its a real pita.

                                  Glenn

                                  http://www.runnel.com

                                  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