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

Adding interactivity: Changing colors

From: SketchUp Pro: Tools and Techniques

Video: Adding interactivity: Changing colors

Now let's take a look at one more use of the Interact I'm going to go ahead and make sure that Material is in quotes.

Adding interactivity: Changing colors

Now let's take a look at one more use of the Interact tool and that's to set any attribute you want using the tool. So, we're going to start with this couch and we're going to change the color of the couch. Now, this is a couch we used before, so if you remember, if we go into our Components Attributes window, you'll see that we have a main sofa and then we have a sub component for the cushions and the base. And so, what we want to do is, change the color of the cushions.

Now, previously, we did this using a drop down list, but let's use the Interact tool this time. So, we're going to go into Sofa Cushions and we're going to add an attribute. Let's go ahead and start by adding an attribute for Material. Now, if you recall, you can type in the name of a color, or the name of any material in your scene. So, if I were to type in say, Blue, the couch will turn blue. Or, I can go into my Materials window, and pick the name of really any color in the scene, and use that as well.

But, I'm just going to stick to named colors here, just to make it simple. So, if we want, we could say we want the material blue, or we could say purple. That's another material we could use. We could also use something such as gray, G-R-A-Y. And so, we have a number of different colors we can use, so let's go ahead and use the Interact tool to cycle between these. So, I'm going to go ahead and add attribute, and just like we did before, I'm going to use the On Click attribute, and this time the function that we want, is not going to be the animate function.

Let's take a look at the other functions that we can use, so I'm going to insert a function here. And let's scroll down to the On Click functions. Well, we don't want to send an alert, we're not really animating anything. We don't need to go to a scene or redraw anything, but we do need to do is to set an attribute. In this case, we need to set material. Let's select Set and insert that into the field. So, we're going to set an attribute here. Well, what attribute are we going to set? We're going to set Material.

I'm going to go ahead and make sure that Material is in quotes. And then I'm going to hit a comma, and then everything else is really just the names of the colors. So we're just going to cycle through the colors that we want. And then it can be any number of colors. But in this case, let's go ahead and cycle through Blue, Purple and Gray. So, once I have that, I'm going to hit Enter. And it seems to like it, so let's go ahead and hit Interact. And you can see, I can interact with the couch and when I click on it, it goes from color to color to color.

Now again, you don't need to limit yourself to three colors, you can put as many as you want and you can also put in the names of materials that are within the scene. So, as you can see, the On Click attribute can be used to move objects, but it can also be used to set any attribute that you have within the scene.

Show transcript

This video is part of

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

43 video lessons · 2828 viewers

George Maestri
Author

 
Expand all | Collapse all
  1. 2m 32s
    1. Welcome
      1m 29s
    2. Using the exercise files
      1m 3s
  2. 11m 15s
    1. Understanding Boolean operations
      4m 55s
    2. Working with Trim and Split
      3m 12s
    3. Creating shells
      3m 8s
  3. 15m 27s
    1. Creating advanced cameras
      5m 4s
    2. Manipulating cameras
      3m 1s
    3. Changing camera properties
      3m 16s
    4. Working with standard camera types
      4m 6s
  4. 17m 55s
    1. Creating terrains with contours
      5m 6s
    2. Creating terrains from scratch
      4m 35s
    3. Sculpting terrains with Smoove
      1m 59s
    4. Draping and stamping on terrains
      6m 15s
  5. 1h 10m
    1. Using the Component Attributes window
      5m 47s
    2. Working with custom attributes
      5m 28s
    3. Creating a dropdown list for size and pricing
      9m 4s
    4. Creating dynamic materials
      7m 19s
    5. Creating a dynamic picket fence: Introduction
      2m 1s
    6. Creating a dynamic picket fence: Assembling the components
      6m 26s
    7. Creating a dynamic picket fence: Making pickets multiply
      6m 41s
    8. Creating a dynamic picket fence: Making fence posts multiply
      4m 45s
    9. Creating a dynamic picket fence: Customizing attributes
      8m 8s
    10. Adding interactivity: Motion
      5m 34s
    11. Adding interactivity: Rotation
      6m 28s
    12. Adding interactivity: Changing colors
      3m 4s
  6. 49m 1s
    1. The LayOut interface
      3m 15s
    2. Drawing lines and arcs
      5m 33s
    3. Drawing rectangles
      2m 46s
    4. Drawing circles and polygons
      3m 28s
    5. Modifying line styles and color
      5m 3s
    6. Working with text and labels
      5m 11s
    7. Inserting SketchUp models
      5m 8s
    8. Manipulating SketchUp models
      3m 26s
    9. Working with dimensions
      3m 10s
    10. Arranging and grouping objects
      3m 36s
    11. Working with scrapbooks
      3m 3s
    12. Creating presentations
      3m 23s
    13. Exporting and printing
      1m 59s
  7. 9m 36s
    1. Introducing the Style Builder interface
      4m 52s
    2. Working with strokes
      4m 44s
  8. 4m 55s
    1. Installing plugins
      2m 40s
    2. Uninstalling plugins
      2m 15s
  9. 11s
    1. Goodbye
      11s

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 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 preferencesfrom 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.