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
Loading

Welcome to Simply Maya

Please Sign in or Sign up for an account

Member Login

Lost your password?

Not a member yet? Sign Up!

Old 09-03-2007, 03:49 PM   #1
Sgart
Registered User
 
Sgart's Avatar
 
Join Date: Mar 2007
Location: Sweden
Posts: 92
Thanks: 0
Thanked 0 Times in 0 Posts
Default Problems animating a clock

I am still working on my church, and I want the clock to be able to animate properly.

I started with the large pointer. First I had the pointer on 12 (0) and pressed S. A line shows in the timeline.

THen I Pressed 15. And rotated the pointer to a quarter past 12. And pressed S again. To here, the animation works. But when I want the pointer to proceed to 30, the pointer moves backwards all the way around.

I dont know how to save animations so I cant upload an animated picture. but here is some pics to give you a clue.







Sgart is offline   Reply With Quote
Old 09-03-2007, 03:58 PM   #2
starjsjswars
Subscriber
 
starjsjswars's Avatar
 
Join Date: Jan 2006
Location: IL
Posts: 1,052
Thanks: 1
Thanked 2 Times in 2 Posts
Default

not sure what you mean but i would Freze transformations.
__________________
A great mod for Jedi academy www.moviebattles.com

Computer Rig-

64-bit vista
23.5 inch LCD + a 19 inch
Q6600 intell qaud
4 gigs of ddr2 ram
8800GTS 512 video card @700mhz
starjsjswars is offline   Reply With Quote
Old 09-03-2007, 04:33 PM   #3
Sgart
Registered User
 
Sgart's Avatar
 
Join Date: Mar 2007
Location: Sweden
Posts: 92
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Originally posted by starjsjswars
not sure what you mean but i would Freze transformations.
What I mean is, that when I try to make the pointer go round (as on a normal clock) the pointer instead only makes it to 15 minutes past 12. When it should continue towards 30 past 12, it instead moves backwards all the way around, finally to 30.
Sgart is offline   Reply With Quote
Old 09-03-2007, 06:30 PM   #4
Joopson
Registered User
 
Joopson's Avatar
 
Join Date: Jul 2005
Location: Los Angeles, CA
Posts: 2,313
Thanks: 1
Thanked 33 Times in 33 Posts
Default

check the channel box, and make sure the rotate X (or Z, depending on the model) is set to 360, and not 180 on one frame, and 0 on the next.
__________________
Environment Artist @ Plastic Piranha
www.joopson.com
Joopson is offline   Reply With Quote
Old 09-03-2007, 09:55 PM   #5
Xander-0
Registered User
 
Xander-0's Avatar
 
Join Date: Feb 2005
Location: This Place
Posts: 220
Thanks: 0
Thanked 2 Times in 1 Post
Default

you know, there's a better way to do this. Instead of keying the clock hands, set up an expression on the rotate value. Reasons - the hand will rotate at the desired speed, forever. And, it won't rotate backwards. I unfortunately don't have the code on me, but its a fairly simple bit that is covered in the various expression and MEL tutorials.
__________________
Book Wise

http://X4nd5r.deviantart.com
Xander-0 is offline   Reply With Quote
Old 09-03-2007, 10:26 PM   #6
Sgart
Registered User
 
Sgart's Avatar
 
Join Date: Mar 2007
Location: Sweden
Posts: 92
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Originally posted by Xander-0
you know, there's a better way to do this. Instead of keying the clock hands, set up an expression on the rotate value. Reasons - the hand will rotate at the desired speed, forever. And, it won't rotate backwards. I unfortunately don't have the code on me, but its a fairly simple bit that is covered in the various expression and MEL tutorials.
Thanks! I will check it out and see if I can figure it out. I guess I can use different speed for the long and the short pointer then? To simulate real time.
Sgart is offline   Reply With Quote
Old 09-03-2007, 10:48 PM   #7
NeoStrider
Registered User
 
NeoStrider's Avatar
 
Join Date: Jun 2004
Location: Cleveland, Ohio (USA)
Posts: 1,541
Thanks: 0
Thanked 2 Times in 2 Posts
Default

the reason your hands are spinning out of control is because you're using the outer rotate ring. with this outer rotate ring maya decides how far your object rotates in all 3 axes in order to take your object from where it started to where it finished. it's safer to use the red, green, and blue rings in the rotate tool because those represent rotation in ONLY the x, y, or z axes... whichever you grab, the other two won't be affected.

an expression would definitely help to maintain a constant velocity.
__________________
Accept no substitutions.
NeoStrider is offline   Reply With Quote
Old 10-03-2007, 01:39 PM   #8
Sgart
Registered User
 
Sgart's Avatar
 
Join Date: Mar 2007
Location: Sweden
Posts: 92
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I am using the green one I think. Not, the outer (if I remember correct)

I will check up the expression thingy.
Sgart is offline   Reply With Quote
Old 10-03-2007, 03:29 PM   #9
publicFunction
Senior Software Developer
 
publicFunction's Avatar
 
Join Date: Jan 2005
Location: Livingston, Scotland
Posts: 1,701
Thanks: 1
Thanked 23 Times in 23 Posts
Default

As Xander suggested, MEL wouyld be the way forward, but if this is out of your league then you can key frame, and its a simple math.

1 rotate = 360 degrees
1 hour = 60 mins
15 mins = 90 degrees
keyframe every 60 frames at 90 degrees except the last one where you keyframe at 359 to allow it to go back to 0 again.

That would take care of the minute hand. The hour hand would folow the same path, but would be keyframed only every 4 th keyframe on the top of the hour.

Really MEL would be the way ahead to be honest and you would need to start looking at the time variable.
__________________
Chris (formerly R@nSiD)
Twitter
When the power of love overcomes the love of power the world will truely know peace - Jimmy Hendrix
Winner SM VFX Challenge 1
3rd Place SM SteamPunk Challenge (May 2007)
publicFunction is offline   Reply With Quote

A little bit about who we are
Links you might find useful
Catch up with SimplyMaya
SimplyMaya specialises in Maya tutorials. We offer over 1,000 individual Maya training videos, ranging from basic Maya tutorials through to intermediate Maya tutorials. Our tutorials are created by instructors with industry experience and are designed to get you up and running in Maya quickly without making it seem like hard work.

Copyright © 1999-2015 SimplyMaya - vBulletinŽ Copyright © 2000-2015, Jelsoft Enterprises Ltd.