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

Why Doesn't Component's Material Change?

Scheduled Pinned Locked Moved Dynamic Components
sketchup
26 Posts 4 Posters 12.1k 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.
  • S Offline
    SketchUcationKid
    last edited by 1 Mar 2017, 00:25

    hello everybody!

    I created a component with other sub-components. I want to change a sub-component material so I double-click on the component till I choose the sub-component desired. Then I choose the bucket tool and click on the sub-component and nothing happens. Why? I was supposed to change because it is not attached to any other component, it is not locked as well.

    thanks in advance.


    SketchUcation - Component Material Change.png

    1 Reply Last reply Reply Quote 0
    • J Offline
      JQL
      last edited by 1 Mar 2017, 10:33

      If the faces or another component/group inside a component are already painted, painting the mother component won't affect them.

      Painting a component or group only affects faces, components or groups that haven't been painted already.

      www.casca.pt
      Visit us on facebook!

      1 Reply Last reply Reply Quote 0
      • S Offline
        SketchUcationKid
        last edited by 1 Mar 2017, 14:57

        @JQL, thanks for the reply. I don't want to paint the mother component but the child one. I created 2 components made of 3 subcomponets each then I created a mother component with these 2 components, painted a child component, repainted it and it worked. why?

        1 Reply Last reply Reply Quote 0
        • R Offline
          Rich O Brien Moderator
          last edited by 1 Mar 2017, 16:33

          paint on faces not containers like groups or components.

          edit the child and paint it's faces.

          painting on containers only leads to confusion.

          Download the free D'oh Book for SketchUp

          1 Reply Last reply Reply Quote 0
          • S Offline
            SketchUcationKid
            last edited by 1 Mar 2017, 16:48

            the purpose of painting the component is to do this change thru the "Material behavior". I created a dropdown list with some materials so I can choose which color the component will have. I cannot select the component faces in the Material behavior but the component itself.

            1 Reply Last reply Reply Quote 0
            • J Offline
              JQL
              last edited by 1 Mar 2017, 16:53

              I didn't mean to say you wanted to paint the mother component. I said only that, if you change the material of a component but it still shows the original material, this means one of two things:

              • Either the faces in the component or subcomponents are already painted with the original material;
              • Or it's composed of subgroups/components which are painted with the original material.

              www.casca.pt
              Visit us on facebook!

              1 Reply Last reply Reply Quote 0
              • R Offline
                Rich O Brien Moderator
                last edited by 1 Mar 2017, 16:56

                Ah. It's a DC.

                Download the free D'oh Book for SketchUp

                1 Reply Last reply Reply Quote 0
                • S Offline
                  SketchUcationKid
                  last edited by 1 Mar 2017, 17:40

                  @JQL, as you suspected, the faces of the component were already painted. so I selected all the faces and set them to "Default" material, as you can see attached. then I could finally paint the component with one click using the bucket tool.

                  now there's a new problem. I tried to change the component material with the "Material behavior", it says that the selected material is not in model but, as you can see, it is!

                  thanks.


                  SketchUcation - Material Not in Model.png

                  1 Reply Last reply Reply Quote 0
                  • S Offline
                    SketchUcationKid
                    last edited by 1 Mar 2017, 17:42

                    yes, @Rich O Brien. it is a DC.

                    1 Reply Last reply Reply Quote 0
                    • R Offline
                      Rich O Brien Moderator
                      last edited by 1 Mar 2017, 18:36

                      It's available from the library but it's not applied to anything in the model.

                      You need material applied to something before you can pick it.

                      Make a small face a paint it with the material for it to be accessible in the drop down.

                      The more Materials you need to more little faces you'll need to hide somewhere in your model.

                      At least that was the the scenario in the past. I haven't stayed current on DC of late

                      Download the free D'oh Book for SketchUp

                      1 Reply Last reply Reply Quote 0
                      • S Offline
                        SketchUcationKid
                        last edited by 1 Mar 2017, 19:31

                        but this material has been used in the model, as you can see in the picture. I'm trying to change the side finishing. top and bottom finishing already have this material applied. it was supposed to work, so.

                        1 Reply Last reply Reply Quote 0
                        • TIGT Offline
                          TIG Moderator
                          last edited by 1 Mar 2017, 19:36

                          The usual 'trick' is to apply the materials which you wish to be used by a DC onto tiny faces [aka 'swatches'] nested inside other objects in the DC [so they are never seen].

                          Then 'calling' that material by its name from within the DC code should work...

                          TIG

                          1 Reply Last reply Reply Quote 0
                          • R Offline
                            Rich O Brien Moderator
                            last edited by 1 Mar 2017, 19:39

                            What I see in your picture is that the Wood material is selected in the Wood library.

                            To see what's applied/available you need to set the Materials library to In Model

                            Download the free D'oh Book for SketchUp

                            1 Reply Last reply Reply Quote 0
                            • J Offline
                              JQL
                              last edited by 1 Mar 2017, 23:18

                              @rich o brien said:

                              To see what's applied/available you need to set the Materials library to In Model

                              To see the materials you have in model, you click on the little house icon on the top left of the materials list.

                              The list will then be called "In Model", not "Wood" nor "Minecraft".

                              If you don't do what TIG suggests (swatches hidden inside the DC) you will not be able to use that DC in models that don't have those materials.

                              www.casca.pt
                              Visit us on facebook!

                              1 Reply Last reply Reply Quote 0
                              • S Offline
                                SketchUcationKid
                                last edited by 2 Mar 2017, 18:21

                                the material "Wood_Floor" is available in Model. so, it was supposed to work.

                                1 Reply Last reply Reply Quote 0
                                • TIGT Offline
                                  TIG Moderator
                                  last edited by 2 Mar 2017, 18:27

                                  You have not demonstrated that 'Wood_Floor' is available in the model.
                                  Your screen-shots show it in a collection named 'Wood', that is external to the model.
                                  If you click the 'house' icon to show what's in the model is it also there ?

                                  As has previously been explained a DC which doesn't have embedded swatches of materials is doomed to fail, because one day the named material will not be found...

                                  TIG

                                  1 Reply Last reply Reply Quote 0
                                  • J Offline
                                    JQL
                                    last edited by 2 Mar 2017, 18:28

                                    If you click on a material from the libraries it becomes available in model but not applied to any face.

                                    You should have tiny faces hidden inside your component, each face with a material variation you need on the Dynamic Component, in order to transport the material with the component to wherever it goes.

                                    www.casca.pt
                                    Visit us on facebook!

                                    1 Reply Last reply Reply Quote 0
                                    • S Offline
                                      SketchUcationKid
                                      last edited by 2 Mar 2017, 18:53

                                      please, take a look at the attached picture and tell me what is missing.


                                      SketchUcation - Material Does Not Change.png

                                      1 Reply Last reply Reply Quote 0
                                      • S Offline
                                        SketchUcationKid
                                        last edited by 2 Mar 2017, 18:57

                                        material behavoir setting.


                                        SketchUcation - Material Behavior Setting.png

                                        1 Reply Last reply Reply Quote 0
                                        • TIGT Offline
                                          TIG Moderator
                                          last edited by 2 Mar 2017, 19:08

                                          You tantalizingly never show us everything we need to make a defintive comment...

                                          However, try this...
                                          Open your Material Browser and set 'Wood_Floor' as the current material.
                                          Paint it onto something manually.
                                          Now open the Ruby Console and paste these lines + enter...

                                          p Sketchup.active_model.materials.current.display_name p Sketchup.active_model.materials.current.name

                                          It will show the Material's display_name and its name - note that these don't always match, depending on how the material is created / imported...
                                          e.g.
                                          "Wood Floor"
                                          "[Wood Floor]"

                                          Since the DC code needs the Material's name, then it fails if the material has been added to the model because the actual name is different from what is displayed - the surrounding [...] shows that.
                                          Importing it whilst it's within the DC may well use another naming convention that will work... try it...

                                          TIG

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

                                          Advertisement