SimplyMaya Forums

Welcome to the forum, feel free to ask questions here.

Home / forum / Animation / Animation / Problems animating a clock
Register FAQ Members List Calendar Mark Forums Read

New Thread
 
Thread Tools
Old 09-03-2007, 02: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, 02: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, 03: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

Quote:
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, 05: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, 08: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, 09: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

Quote:
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, 09: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, 12: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, 02: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
New Thread

« Previous Thread | Next Thread »

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off

1 Month

$34

Month-to-month billing
$34/month
Unlimited access to all videos
Project files to download
Easy to cancel at anytime
 
 

3 months

$87

Billing every 3 months
$29/month
Unlimited access to all videos
Project files to download
Easy to cancel at anytime
Save $5 per month or $15 in total compared to monthly billing with this package.

12 months

$288

Billing every 12 months
$24/month
Unlimited access to all videos
Project files to download
Easy to cancel at anytime
Save $10 per month or $120 in total compared to monthly billing with this package.

Your plan will automatically renew. You can cancel at any time via your PayPal account to avoid being charged again.

You can view the FAQ on our video plans here. You can contact us directly here. By clicking one of the buttons above, you agree to our Terms and Privacy Policy.