Integrating 3D models with photography
Interested in integrating your 3D work with the real world? This might help
# 1 13-04-2004 , 11:04 PM
Registered User
Join Date: Feb 2004
Location: Californnia, Fremont.
Posts: 27

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?

# 2 14-04-2004 , 12:59 AM
Pony's Avatar
Subscriber
Join Date: Mar 2003
Location: with PonysGirl
Posts: 2,573
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.

# 3 14-04-2004 , 01:52 AM
kbrown's Avatar
Moderator
Join Date: Sep 2002
Location: London, UK
Posts: 3,198
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!
# 4 15-04-2004 , 05:09 AM
Dann's Avatar
Registered User
Join Date: Feb 2003
Location: Los Angeles
Posts: 695
Why not just keyframe 10 frames and then set it to cycle with offset. It will spin forever.

Posting Rules Forum Rules
You may not post new threads | You may not post replies | You may not post attachments | You may not edit your posts | BB code is On | Smilies are On | [IMG] code is On | HTML code is Off

Similar Threads