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

Adding interactivity: Motion

From: Google SketchUp 8 Essential Training

Video: Adding interactivity: Motion

Now let's take a look at how to use dynamic components to create interactivity in our models. So I already have a model open that has interactivity, so let's just do a quick refresh on how interactivity works. We'll go to Tools>Interact, and if you hover over an interactive element in the scene, the little hand icon will light up. So if I click on that I can open and close this refrigerator, and notice how the vegetable drawers also open and close.

Adding interactivity: Motion

Now let's take a look at how to use dynamic components to create interactivity in our models. So I already have a model open that has interactivity, so let's just do a quick refresh on how interactivity works. We'll go to Tools>Interact, and if you hover over an interactive element in the scene, the little hand icon will light up. So if I click on that I can open and close this refrigerator, and notice how the vegetable drawers also open and close.

So let's go ahead and add this to a blank refrigerator, so I'm going to go ahead and open up a file here called Fridge_01, which is basically just a blank version of that refrigerator with no interactivity. So let's go ahead and start on the vegetable drawers here. So I'm going to go into my Dynamic Components>Component Attributes, and notice now we have a refrigerator which is the main component and underneath that we have several subcomponents here, one of which is the drawers, so if I double-click on this you can see I have got a Drawer_Right and a Drawer_Left.

So let's go, let's go to the Drawer_Right here, and let's go ahead and add an attribute. Now what we want to do is we want to move this along this green axis and that will slide it in and out. So we need to add an attribute for that, so I'm going to go ahead and Add attribute and we're going to position that along Y, remember green is Y, and that tells us the position that is right now.

If we want -- well, I'm going to go ahead and copy this, so I'm just going to go ahead and hit Ctrl+C or Command+C on the Mac, just so I have that number, it's 35.3125. Now I'm going to go ahead and just type in a number to see what happens. So if I type in say a big number, say 40, well that actually pushes it in. I want to go the opposite direction, so let's try 30, well 30 pulls it out. Let's try something a little bit less, let's try 20, so 20 seems to be the magic number where it kind of comes out completely.

So what I'm going to do here is I'm going to go ahead and paste in my number here so I have it. And so now I know it needs to go between this number and 20 to slide in and out. Okay, so now that I have those numbers, I'm going to go ahead and add another attribute. And the attribute I'm going to add is onClick and that is the attribute that adds interactivity to our objects. So let's go ahead and hit onClick. And now we have to put in a formula.

We have to add in the formula for what happens when we click, well what is going to happen. Let's go into a function here, and if you scroll down here you'll notice that there are a number of onClick Functions. One is Alert, which will give you a message. We have a couple of Animate ones; Fast, Slow, Custom. We can go to individual scenes, we can redraw the scene, or we can set any attribute we want. In this case we're going to want animate, so let's go ahead and select Animate and that just brings it up here, so we need to insert it.

So we're going to animate an attribute or what attribute that we're animating, well we're animating Y. So let's go ahead and animate Y, and state1 is going to be that number that we had, which was 35.3125, and then second state is where the drawer is completely pulled out, which is 20 inches. So we're going to animate between 35 and 20 along Y. Now if we want we could actually add in more numbers, so if we wanted to go halfway out and then all the way out we could do it that way as well, but let's just do it this way.

So if we hit Enter that should make it work. So let's go ahead and go to tools> Interact, and yes it's lighting up and so now I can pull out and push in the drawer. Great! So let's go ahead and do the same for the second drawer. So I'm going to go ahead and add my attribute, and Again, position in Y, and notice how this number is exactly the same. So it acts pretty much the same formula, so all we have to do now is add an attribute for onClick and because this number is the same all we have to do is just copy and paste the formula that we created before, so I'm going to go and do Ctrl+C or Command+C, go into here and do a Ctrl+V or Command+V, and so now I have interactivity on both of these drawers.

So let's go ahead into that, and let's interact and there we go, very cool. So as you can see we use the onClick function to add interactivity, and then we have a number of things that we can do once we've added that and those are defined by the onClick Functions, and in this case we used Animate just to animate the drawers along the Y axis.

Show transcript

This video is part of

Image for Google SketchUp 8 Essential Training
Google SketchUp 8 Essential Training

88 video lessons · 28016 viewers

George Maestri
Author

 
Expand all | Collapse all
  1. 7m 18s
    1. Welcome
      1m 8s
    2. Installing SketchUp
      1m 12s
    3. Starting SketchUp for the first time
      47s
    4. Using the exercise files
      49s
    5. Tips for Mac users
      3m 22s
  2. 43m 52s
    1. Interface basics
      4m 42s
    2. Adding toolbars
      2m 38s
    3. Navigating
      3m 48s
    4. Changing perspective
      2m 51s
    5. Walking around
      3m 12s
    6. Creating camera views
      5m 15s
    7. Shading faces and edges
      7m 59s
    8. Creating shadows and fog
      5m 50s
    9. Creating Scenes
      5m 9s
    10. Setting preferences
      2m 28s
  3. 22m 19s
    1. Selecting and moving objects
      6m 25s
    2. Scaling and rotating objects
      5m 36s
    3. Manipulating faces and edges
      4m 8s
    4. Advanced selection tools
      6m 10s
  4. 48m 47s
    1. Line tool fundamentals
      5m 42s
    2. Refining objects with the Line tool
      3m 39s
    3. Using the Rectangle tool
      4m 44s
    4. Pushing and pulling faces into 3D
      5m 30s
    5. Creating circles and polygons
      6m 5s
    6. Creating arcs
      4m 0s
    7. Using the Offset tool to create outlines
      8m 33s
    8. Using the Follow Me tool
      3m 24s
    9. Softening round edges
      5m 16s
    10. Creating 3D text
      1m 54s
  5. 16m 45s
    1. Using the Tape Measure tool
      4m 41s
    2. Using the Protractor tool
      7m 16s
    3. Creating text labels
      1m 7s
    4. Using the Dimension tool
      1m 18s
    5. Creating sections
      2m 23s
  6. 20m 45s
    1. The Component window
      5m 32s
    2. Creating components
      3m 55s
    3. Using the 3D Warehouse
      3m 15s
    4. Importing from Google Earth
      2m 26s
    5. Using the Interact tool
      1m 54s
    6. Using the Component Options window
      3m 43s
  7. 25m 3s
    1. Grouping objects
      5m 42s
    2. Working with layers
      3m 27s
    3. Creating layers
      4m 20s
    4. Using the Outliner
      6m 42s
    5. Hiding and unhiding objects
      2m 48s
    6. Locking and unlocking objects
      2m 4s
  8. 41m 32s
    1. Using the Materials Browser on a Mac
      2m 49s
    2. Applying materials
      3m 2s
    3. Editing materials
      5m 4s
    4. Creating materials
      3m 19s
    5. Adjusting materials
      4m 38s
    6. Applying bitmap images
      2m 43s
    7. Mapping curved objects
      3m 39s
    8. Projecting maps on curved objects
      3m 27s
    9. Importing floor plans
      4m 27s
    10. Modeling with floor plans
      8m 24s
  9. 27m 11s
    1. Applying styles
      2m 26s
    2. Editing styles
      8m 30s
    3. Outputting 2D bitmaps
      3m 13s
    4. Basic animation
      5m 56s
    5. Advanced animation
      7m 6s
  10. 20m 40s
    1. Creating terrain from contours
      6m 22s
    2. Modeling objects with contours
      1m 42s
    3. Creating terrain from scratch
      3m 40s
    4. Sculpting with the Smoove tool
      3m 2s
    5. Stamping and draping objects on terrain
      5m 54s
  11. 15m 3s
    1. Geolocation with Google Maps
      3m 11s
    2. Using Photo Match to align cameras
      4m 30s
    3. Modeling in Photo Match
      7m 22s
  12. 59m 46s
    1. Using the Component Attributes window
      6m 41s
    2. Exposing component attributes
      6m 0s
    3. Using math and functions
      8m 49s
    4. Creating dynamic materials
      7m 2s
    5. Creating a dynamic staircase
      8m 52s
    6. Hiding objects dynamically
      2m 58s
    7. Configuring staircase rise and run
      5m 21s
    8. Adding interactivity: Motion
      5m 24s
    9. Adding interactivity: Rotation
      4m 55s
    10. Adding interactivity: Changing colors
      3m 44s
  13. 15m 58s
    1. Creating solids
      2m 25s
    2. Using Boolean operations (Union, Intersect, Subtract)
      6m 46s
    3. Working with Trim and Split
      4m 45s
    4. Creating outer shells
      2m 2s
  14. 21m 28s
    1. Importing objects from AutoCAD
      6m 40s
    2. Importing other 3D objects
      3m 8s
    3. Exporting objects
      5m 39s
    4. Exporting objects for rendering
      6m 1s
  15. 14s
    1. Goodbye
      14s

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 8 Essential Training.

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.