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

Adding interactivity: Rotation

From: Google SketchUp Pro: Tools and Techniques

Video: Adding interactivity: Rotation

We can also use interactivity to rotate things such as the doors of this refrigerator. We already have this set up, so that we can interact with the drawers. But right now, the upper and lower doors of this refrigerator don't work. So let's go ahead and make them work. I am going to go ahead and select the Refrigerator, go into Dynamic Components > Component Attributes. Let's go ahead and work on this lower door, the bigger one, and we are going to go ahead and add an attribute.

Adding interactivity: Rotation

We can also use interactivity to rotate things such as the doors of this refrigerator. We already have this set up, so that we can interact with the drawers. But right now, the upper and lower doors of this refrigerator don't work. So let's go ahead and make them work. I am going to go ahead and select the Refrigerator, go into Dynamic Components > Component Attributes. Let's go ahead and work on this lower door, the bigger one, and we are going to go ahead and add an attribute.

Well what attribute do we want to add? Well, we want it to rotate around the vertical axis, which is our Y or our blue axis. So let's go ahead and add attribute, RotZ. We can see here that the default value is 90. So we can rotate it between, say for example, 90 and 0. But as you can see it's rotating the wrong way. It's rotating around the wrong axis. So let's go ahead and put that back to 90 and we need to change the axis. Now in order to do this, we have to find the component, so I am going to click on the refrigerator, double-click to open that up, select the lower door, and then right-click and find Change Axes.

You can also do it here. You can also just do under Component, there is also a Change Axes. Either one of those will work. So what this does is it gives us an axis that we can pretty much place anywhere. Well, I want it to snap to this lower point here, see if I can get that in there. Or you can snap it up here. It just depends on where you want it, just as long as it's anywhere along this line. So I just wanted to snap here and once I've done that, now this should work.

So it goes from 0 to 90, and you can see how it opens. Well actually we don't want to go to 90. We wanted to go to -90 or the other way. So from -90 is closed and 0 is open. So we need to animate between those. So let's add in our onClick attribute, and again we want to put in Animate. So we can just type it in if we want. We don't have to select it from the list.

And what are we animating? Well we are animating RotZ. Now I want to make sure that I put this in quotes, so Animate"RotZ", and I want to animate it from 0 to, so 0,-90. Once you have all that in, hit Enter, and we should have something that works. There we go. Okay, so let's do this one more time for the upper door. Now before I do this, I just want to make sure I check where my axes is, because that was a problem with the other door.

Let's go ahead and right-click over this, and hit Change Axes, and again we have that same problem. So I am just going to go ahead and put that up in the corner there and let's go ahead and add in an attribute, RotZ. So right now we have 0, and I bet it's going to operate pretty much the same, from 0 to -90. Okay, so there we go. So we are going to have pretty much the same behavior. So let's go ahead and add in onClick and then Animate. We can just type that in and what are we animating? We are animating RotZ.

Again, make sure you put this in quotes, from zero to -90. In fact, we probably could have just copied and pasted that from the other value. So now that we have that, we should be able to interact with this. So now, we have got a fridge that opens and closes and the drawers slide in and out. And isn't that pretty cool? So as you can see, you can use onClick to also animate rotations. So doors can open and close.

You can also animate any other type of attribute using the same types of techniques.

Show transcript

This video is part of

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

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