SimplyMaya Forums

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

Home / forum / Animation / Mel Scripts & Programming / Propeller or Turbine rotation
Register FAQ Members List Calendar Mark Forums Read

New Thread
 
Thread Tools
Old 13-04-2004, 11:04 PM   #1
djknucklez
Registered User
 
Join Date: Feb 2004
Location: Californnia, Fremont.
Posts: 27
Thanks: 0
Thanked 0 Times in 0 Posts
Question Propeller or Turbine rotation

I'm animating a turbine engine kind of like the one in the pod race inStar Wars episode 1. Is there a Mel script to make the turbine turn all the time without having it to key frame it?
djknucklez is offline   Reply With Quote
Old 14-04-2004, 12:59 AM   #2
Pony
Subscriber
 
Pony's Avatar
 
Join Date: Mar 2003
Location: with PonysGirl
Posts: 2,573
Thanks: 0
Thanked 6 Times in 6 Posts
Default

just use a exprestion.. there just what you want. there will be sevral examples in the help files for just what your wanting to do with rotation based on time.
Pony is offline   Reply With Quote
Old 14-04-2004, 01:52 AM   #3
kbrown
Moderator
 
kbrown's Avatar
 
Join Date: Sep 2002
Location: London, UK
Posts: 3,198
Thanks: 0
Thanked 8 Times in 8 Posts
Default

Let's say your object is named propeller and you want to rotate it around the Z axis. Then the expression could be as easy as:

propeller.rz = frame;

If you want to control the speed, you could add a custom attribute to your object (let's say speed) and change the expression to:

propeller.rz = frame * propeller.speed;

This way you can key the speed attribute and control the speed of the rotation.
__________________
Kari
- My Website
- My IMDB

Do a lot, Fail a lot and Learn a lot!
kbrown is offline   Reply With Quote
Old 15-04-2004, 05:09 AM   #4
Dann
Registered User
 
Dann's Avatar
 
Join Date: Feb 2003
Location: Los Angeles
Posts: 695
Thanks: 0
Thanked 2 Times in 2 Posts
Default

Why not just keyframe 10 frames and then set it to cycle with offset. It will spin forever.
Dann 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.