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

Adding interactivity: Changing colors

From: Google SketchUp Pro: Tools and Techniques

Video: Adding interactivity: Changing colors

You can also set up the onClick tool or the Interactive tool to change other types of variables beside Position and Rotation. You can also use it to change things such as the material of an object. Here we have that sofa that we were working with. It's called Sofa_01 and let's go ahead and change the color of the sofa by clicking on it. So I want to select the sofa, and just go into Dynamic Components > Component Attributes and again, we have the Sofa and we have the Cushions and the Base.

Adding interactivity: Changing colors

You can also set up the onClick tool or the Interactive tool to change other types of variables beside Position and Rotation. You can also use it to change things such as the material of an object. Here we have that sofa that we were working with. It's called Sofa_01 and let's go ahead and change the color of the sofa by clicking on it. So I want to select the sofa, and just go into Dynamic Components > Component Attributes and again, we have the Sofa and we have the Cushions and the Base.

Now typically, we just want to change the material on the cushions and not the base. So I am going to go ahead and open this up and add the attribute for Material, similar to what we did before. And again, I can just type in any number of colors. So if I want it to be red, blue, purple, really whatever. Or if I wanted to I could go into the Materials window and just select whatever material I want from any one of these lists.

So whatever color I want or whatever sort of material I want. But let's go ahead and just deal with these basic colors. So now that I know that the material here can be changed to change the color, I need to add an attribute that changes that by clicking on it. So I am going to select onClick and then we need to add in a behavior. Well that behavior we can find in our Functions window. So let's go ahead here into Functions, use that pull-down list, and go down to onClick Functions.

Now, in this case we don't want to animate the couch. We want to change the material. So Alert, Animate, those don't work. The one we actually want to use is called Set, because we can set any attribute to any state. So let's go ahead and select that. So now I have it up here. But I need to put it into this field here. So I make sure that my cursor is in this field and hit Insert. So what we are going to do is we are going to set an attribute. So I am going to put that in quotes and the attributes we want to set is called Material.

So I want to make sure I have "Material" just like this and then all the different states. Now what the states are really is just the values that it will rotate through. So for example, I wanted to go for Red to Blue to Purple. So now what's going to happen is the first time you click on it, it goes red, then it goes blue, then it goes purple. This list can be as long as you want. You can put as many different types of materials in.

And again, the material naming conventions apply. All you have to do is either type in the name of the color, the hex value, or the material name of any material that's already in the scene. And once we have this set up, we can just hit Enter and it should work. Let's go ahead and interact with that. So now, I can click between all the different colors. Now this Set function works for Material but it can work for any other type of attributes. So you can actually set the number of copies, you can set Position, Rotation, that sort of thing or you can set any custom value.

So for example, if you want to click on it a number of times and change a different type of value for it such as the Quantity or the Price or something like that, you can do that as well. So as you can see the Interact tool can be used not only to animate things, but also change color and set really any other type of attribute you want. So the possibilities are pretty much endless.

Show transcript

This video is part of

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

38 video lessons · 9924 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.

Are you sure you want to delete this note?

No

Your file was successfully uploaded.

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.