Easy-to-follow video tutorials help you learn software, creative, and business skills.Become a member

Creating dynamic materials

From: Google SketchUp Pro: Tools and Techniques

Video: Creating dynamic materials

Another attribute that we can change using the Component Attributes window is the material applied to an object. Now this is important for all sorts of things where you can provide them in different types of colors, cabinets or for example, this couch. You can provide this in several different colors in fabric options. So we want to be able to provide a list of the various options and give them to the customer. So we can do that again through the Component Attributes window.

Creating dynamic materials

Another attribute that we can change using the Component Attributes window is the material applied to an object. Now this is important for all sorts of things where you can provide them in different types of colors, cabinets or for example, this couch. You can provide this in several different colors in fabric options. So we want to be able to provide a list of the various options and give them to the customer. So we can do that again through the Component Attributes window.

So if I select this object and select this object and go into Component Attributes, we can actually add in an attribute for material. Now before I do that, let's take a look at this sofa. It's composed of two subcomponents: one for the cushions and then one for the metal base or the legs of the couch. So if I go into my window here, you can see I have just the cushions and the base. Now when I apply a different color to the couch, I really just want to apply a different color fabric to the cushions.

So that's where I want to make my change. So I am going to go ahead and select the whole couch and go into Sofa_Cushions and hit this little plus sign and then add an attribute. Now the attribute we want to add is called, obviously enough, Material. So now once I have a Material here I can do a number of different things. I can type in a color, such as Red or Blue. Now these are just standard colors that are within SketchUp or if I want a more custom color, I can type in any sort of hex value, or if I want I can actually type in the name of a material that's within the scene.

So if I go into my Materials window, you'll see that in my model I only have those materials that I typed in, because I really don't have anything else. So if I want to actually have a standard material such as a bitmap fabric or something a little bit more custom, I have to put it into the model. Now typically the way to do that is just create a very small object such as a rectangle and then just put the material on to that object. So I am going to go ahead and select that rectangle and then just go into my Materials window and scroll down to something that would represent fabrics, such as maybe Carpet and Textiles, and maybe just go ahead and pick say for example, this plush charcoal and put it on there.

So once it's in the scene, if I go here over to Home, which gives me my In Model, you'll see that now instead of three, I have four. So let's go ahead and do that one more time. I am going to go to Carpet and Textiles and let's just pick another one. How about Berber Carpet? And go ahead and select that and just go ahead and apply it to that rectangle and if we hit our In Model or our little home icon, you'll see now I have five of those. In fact, once they are in the model, they are there forever.

So I can just go ahead and select this rectangle and delete it and these materials will still be here. So now we can use this to actually apply those materials to our couch. So let's go ahead and go back to our Component Attributes window and find our Material value. So instead of typing in the hex value, I can actually type in the name of the material. So let's go ahead and select Berber_Pattern_Gray. So I am just going to go ahead and select all of that. I don't need to type it. All I need to do is select it here in Materials window, highlight the name and copy it and then go here and paste that name.

So once I hit Enter, you'll see that pattern is on my couch. Now what I really want though is I want this to actually be able to be seen by the user and be able to be changed interactively by a drop-down list. So the first thing I'd probably want to do is just go over to my Details window for this Sofa_Cushion, and I can just change my Display rule. So I can for example select it from a list, but for right now let's just see if we can even see it. So I am just going to go say Users can see this attribute.

So hit Apply. So I am going to go ahead and close out all these windows and let's take a look. So I'm going to select my couch, right-click, go to Dynamic Components > Components Options. And as you can see, there really isn't an option here. I really was hoping to find the Material name, but I don't have it. That's because it's buried. So if I double-click on this, it opens up that main component and then I select and I go down into my Sofa_ Cushions and you can see now there's the name of my material.

Well, that's not really what I want at all. I want to be able to just get to this from the main level. Just select the couch, pick the size, pick the color and be done with it. So we're going to have to do this a little bit differently. So let's go back into our Component Attributes. So instead of putting the material here, let's go ahead over to Details and say Users cannot see this attribute, and we're actually going to go ahead and we need to move this attribute up here to the main level of Sofa.

So what we've to do here is we have to add in a custom name. So I'm just going to go ahead and add in a custom name. Call it Color. So now we have Price, Color and Size. But the color in this field here actually has to show up here. So I need this here to point to this value here. First thing I'm going to do is go ahead and just select this color and paste it here. So now I have a value that I can play with and here I am actually going to put in a formula.

But it's not a mathematical formula. It's just a formula that pulls the text from here into this value. So I am just going to hit equals and then all I have to do is just click on this Color value and notice what happens. We get the variable, Color, plus the name of the component that contains it. So we have Sofa:Color. So basically of the Color attribute in the Sofa component. If I hit Enter, you'll see how now whatever I type in here, say for example if I typed in Blue, Blue shows up here.

So now that we have this working, all we have to do now is create the list. So I am just going to go over here to my Details, scroll down, say Users can select from a list, and then just go ahead add some options. So let's go ahead and put Blue in, let's put Red in and let's put in some other ones. I am actually going to go into my Materials window here and I am just going to select my Carpet_Berber_Pattern_Gray, very long name, and just paste that in and then go head over to Carpet_Plush _Charcoal and add an option here.

It looks kind of weird, because we're actually going to have Blue, Red and then all these weird names. So let's call it Blue, Red. Let's just call it Gray and Charcoal. Hit Apply. So now we should have it all wired up and ready to go. So I am going to close all these out. Let's go into our Component Options and so now we've got Blue, Red.

Now I have to hit Apply here. Charcoal and so on. So now I can pick whatever size couch I want, and whatever color I want and then the price will factor accordingly. So as you can see, we've actually applied a material. Now in order to get materials into an object, we either need to name the material, type in the hex value or type the name of a material that's already in the scene.

And once we do that, we can use all the power of the Component Attributes window to create list boxes as well as formulas to create whatever materials we want.

Show transcript

This video is part of

Image for Google SketchUp Pro: Tools and Techniques
Google SketchUp Pro: Tools and Techniques

38 video lessons · 10152 viewers

George Maestri
Author

 
Expand all | Collapse all
  1. 3m 33s
    1. Welcome
      1m 4s
    2. Using the exercise files
      24s
    3. Important Mac and PC differences
      2m 5s
  2. 9m 41s
    1. The Component Options window
      3m 32s
    2. Using the Interact tool
      1m 54s
    3. Using metadata in the Component Options window
      4m 15s
  3. 1h 6m
    1. Using the Component Attributes window
      4m 46s
    2. Exposing component attributes
      6m 0s
    3. Creating a drop-down list
      8m 42s
    4. Creating dynamic materials
      8m 29s
    5. Creating a dynamic picket fence
      2m 10s
    6. Creating a dynamic picket fence: Assembling the components
      4m 54s
    7. Creating a dynamic picket fence: Making pickets multiply
      6m 11s
    8. Creating a dynamic picket fence: Making fence posts multiply
      4m 0s
    9. Creating a dynamic picket fence: Customizing attributes
      8m 18s
    10. Adding interactivity: Motion
      5m 25s
    11. Adding interactivity: Rotation
      4m 10s
    12. Adding interactivity: Changing colors
      3m 45s
  4. 39m 37s
    1. The LayOut interface
      2m 56s
    2. Drawing lines and arcs
      4m 33s
    3. Drawing rectangles
      2m 22s
    4. Drawing circles and polygons
      2m 31s
    5. Modifying line styles and color
      3m 2s
    6. Working with text
      3m 0s
    7. Inserting SketchUp models
      4m 33s
    8. Manipulating SketchUp models
      3m 30s
    9. Working with dimensions
      2m 17s
    10. Arranging and grouping objects
      3m 5s
    11. Creating scrapbooks
      3m 11s
    12. Creating presentations
      2m 40s
    13. Exporting and printing
      1m 57s
  5. 6m 40s
    1. The Style Builder interface
      2m 5s
    2. Working with strokes
      4m 35s
  6. 19m 15s
    1. Importing objects from AutoCAD
      6m 37s
    2. Importing other 3D objects
      3m 14s
    3. Exporting objects
      4m 38s
    4. Exporting objects for rendering
      4m 46s
  7. 19s
    1. Goodbye
      19s

Start learning today

Get unlimited access to all courses for just $25/month.

Become a member
Sometimes @lynda teaches me how to use a program and sometimes Lynda.com changes my life forever. @JosefShutter
@lynda lynda.com is an absolute life saver when it comes to learning todays software. Definitely recommend it! #higherlearning @Michael_Caraway
@lynda The best thing online! Your database of courses is great! To the mark and very helpful. Thanks! @ru22more
Got to create something yesterday I never thought I could do. #thanks @lynda @Ngventurella
I really do love @lynda as a learning platform. Never stop learning and developing, it’s probably our greatest gift as a species! @soundslikedavid
@lynda just subscribed to lynda.com all I can say its brilliant join now trust me @ButchSamurai
@lynda is an awesome resource. The membership is priceless if you take advantage of it. @diabetic_techie
One of the best decision I made this year. Buy a 1yr subscription to @lynda @cybercaptive
guys lynda.com (@lynda) is the best. So far I’ve learned Java, principles of OO programming, and now learning about MS project @lucasmitchell
Signed back up to @lynda dot com. I’ve missed it!! Proper geeking out right now! #timetolearn #geek @JayGodbold
Share a link to this course

What are exercise files?

Exercise files are the same files the author uses in the course. Save time by downloading the author's files instead of setting up your own files, and learn by following along with the instructor.

Can I take this course without the exercise files?

Yes! If you decide you would like the exercise files later, you can upgrade to a premium account any time.

Become a member Download sample files See plans and pricing

Please wait... please wait ...
Upgrade to get access to exercise files.

Exercise files video

How to use exercise files.

Learn by watching, listening, and doing, Exercise files are the same files the author uses in the course, so you can download them and follow along Premium memberships include access to all exercise files in the library.


Exercise files

Exercise files video

How to use exercise files.

For additional information on downloading and using exercise files, watch our instructional video or read the instructions in the FAQ .

This course includes free exercise files, so you can practice while you watch the course. To access all the exercise files in our library, become a Premium Member.

Join now Already a member? Log in

Are you sure you want to mark all the videos in this course as unwatched?

This will not affect your course history, your reports, or your certificates of completion for this course.


Mark all as unwatched Cancel

Congratulations

You have completed Google SketchUp Pro: Tools and Techniques.

Return to your organization's learning portal to continue training, or close this page.


OK
Become a member to add this course to a playlist

Join today and get unlimited access to the entire library of video courses—and create as many playlists as you like.

Get started

Already a member ?

Become a member to like this course.

Join today and get unlimited access to the entire library of video courses.

Get started

Already a member?

Exercise files

Learn by watching, listening, and doing! Exercise files are the same files the author uses in the course, so you can download them and follow along. Exercise files are available with all Premium memberships. Learn more

Get started

Already a Premium member?

Exercise files video

How to use exercise files.

Ask a question

Thanks for contacting us.
You’ll hear from our Customer Service team within 24 hours.

Please enter the text shown below:

The classic layout automatically defaults to the latest Flash Player.

To choose a different player, hold the cursor over your name at the top right of any lynda.com page and choose Site preferences from the dropdown menu.

Continue to classic layout Stay on new layout
Exercise files

Access exercise files from a button right under the course name.

Mark videos as unwatched

Remove icons showing you already watched videos if you want to start over.

Control your viewing experience

Make the video wide, narrow, full-screen, or pop the player out of the page into its own window.

Interactive transcripts

Click on text in the transcript to jump to that spot in the video. As the video plays, the relevant spot in the transcript will be highlighted.

Learn more, save more. Upgrade today!

Get our Annual Premium Membership at our best savings yet.

Upgrade to our Annual Premium Membership today and get even more value from your lynda.com subscription:

“In a way, I feel like you are rooting for me. Like you are really invested in my experience, and want me to get as much out of these courses as possible this is the best place to start on your journey to learning new material.”— Nadine H.

Thanks for signing up.

We’ll send you a confirmation email shortly.


Sign up and receive emails about lynda.com and our online training library:

Here’s our privacy policy with more details about how we handle your information.

Keep up with news, tips, and latest courses with emails from lynda.com.

Sign up and receive emails about lynda.com and our online training library:

Here’s our privacy policy with more details about how we handle your information.

   
submit Lightbox submit clicked
Terms and conditions of use

We've updated our terms and conditions (now called terms of service).Go
Review and accept our updated terms of service.