## Maya Training

Introduction to Hard Surface Modeling

## Maya Training

Interiors and Furniture Vol 1 & 2 - Modeling & Cloth

## Maya Training

Shading, Lighting and Rendering the Bedroom in MR

## Maya Training

Robot volume one - Modeling with animation in mind

## Maya Training

Spach-Alspaugh House the complete courseware

## Maya Training

Burt The Cartoon Dinosaur Vol 01 - Modeling

## New Maya Training

Robot Volume 02 - Hybrid Rigging
You are here > Home > SimplyMaya Community Forums

# Welcome to Simply Maya

 Simply Maya User Community - Maya Tutorials Rotation
 Register FAQ Members List Calendar Mark Forums Read

 03-10-2005, 02:17 PM #1 dcsaba Registered User   Join Date: Nov 2004 Posts: 7 Thanks: 0 Thanked 0 Times in 0 Posts Rotation Hi all! How can I rotate an object around his own axis. I want to make a planet, like Earth. thx (I'm a beginner, so sorry if the question is too easy
 03-10-2005, 03:10 PM #2 dae Subscriber     Join Date: Apr 2003 Location: Surrey, UK Posts: 780 Thanks: 0 Thanked 0 Times in 0 Posts do you mean the 1. earth orbiting the sun or just to make an 2. object rotate Dae __________________ "I THINK, THEREFORE I AM" René Descartes www.mvorster.co.uk
 03-10-2005, 07:27 PM #3 dcsaba Registered User   Join Date: Nov 2004 Posts: 7 Thanks: 0 Thanked 0 Times in 0 Posts I want to make an animation, where Earth is rotating around his own axis. Can you help me? The second thing, that Earth rotates around Sun, is another good thing. How can I make it? Thx for answers!
 03-10-2005, 07:52 PM #4 Velusion Registered User     Join Date: May 2004 Location: Utah, USA Posts: 368 Thanks: 0 Thanked 0 Times in 0 Posts Well, to make your Earth rotate you could simply keyframe the rotation or you could write a simple expression to rotate it. If you want to make the Earth rotate around its own axis as well as rotate around the sun all you have to do is group the planet to itself then move the center point for the group to match that of the sun. Keyframe (or write an expression) the rotation of the group. This will animate the Earth around the sun while the keyframe or expression that you set up for the earth itself will animate the rotation of the planet around itself. It's a very simple thing to do. What version of Maya are you using. I have 6.5 and would be willing to set up a demonstration file for you so you can download it and use it. The hardest thing to understand is grouping an object to itself. When you do this, all your really doing is giving the object a second set of attributes to play with. Each set of attributes works independently of the other. In other words; you can have more than one rotation or translation for the same object. __________________ James Rogers www.morphicmotion.com
 04-10-2005, 12:19 AM #5 dcsaba Registered User   Join Date: Nov 2004 Posts: 7 Thanks: 0 Thanked 0 Times in 0 Posts it sounds great! can you help me, how to write an expression? I use Maya 7.0 It will be good to understand, how mel scripts works. thx (I'm from Hungary, so sorry, if I make some mistakes)
 04-10-2005, 02:35 PM #6 Velusion Registered User     Join Date: May 2004 Location: Utah, USA Posts: 368 Thanks: 0 Thanked 0 Times in 0 Posts OK. I'll post a link to a file in about 6 to 10 hours when I get home from work. It will include the sun and earth objects plus the expression driven animation. I'll also include a brief explaination of the expression and how it works. __________________ James Rogers www.morphicmotion.com Last edited by Velusion : 04-10-2005 at 02:37 PM.
 04-10-2005, 05:18 PM #7 Velusion Registered User     Join Date: May 2004 Location: Utah, USA Posts: 368 Thanks: 0 Thanked 0 Times in 0 Posts Try this out. It's a Maya 6.5 file. orbit example To look at the expressions that I wrote, look in the expressions editor. __________________ James Rogers www.morphicmotion.com
 05-10-2005, 10:24 AM #8 dcsaba Registered User   Join Date: Nov 2004 Posts: 7 Thanks: 0 Thanked 0 Times in 0 Posts thanks for the scene file. it's very useful for me. I think, I will use this forum many times hi
 06-10-2005, 08:54 AM #9 dcsaba Registered User   Join Date: Nov 2004 Posts: 7 Thanks: 0 Thanked 0 Times in 0 Posts hi all! I have an another question! How can I "tell" to my camera, that when I push the play button, he will rotate in axis Y from 20 (for example) to 40. It doesn't matter,how long the scene is?? thx
 17-10-2005, 01:39 PM #10 Velusion Registered User     Join Date: May 2004 Location: Utah, USA Posts: 368 Thanks: 0 Thanked 0 Times in 0 Posts You want the camera to rotate on its Y axis for 20 degrees? Keyframe it. The camera is just like any other object in the scene. I assume you're using the "pers" camera. It's the default camera that lets you move all around the scene. Anyway, choose it in the Outliner then set up your start and end keyframe. Just so you know, I think most people would agree that it is better to create a new camera to use to shoot the scene. The default cameras are tools to let you see the scene while you're building and animating it. __________________ James Rogers www.morphicmotion.com Last edited by Velusion : 17-10-2005 at 01:46 PM.

A little bit about who we are