Simply Maya User Community

Simply Maya User Community (https://simplymaya.com/forum/index.php)
-   Animation (https://simplymaya.com/forum/forumdisplay.php?f=14)
-   -   propeller expression (https://simplymaya.com/forum/showthread.php?t=2388)

scraggs 28-11-2002 06:55 AM

propeller expression
 
hi, i'm working on an animation that will have a propeller attached to a submarine, the way i thought to do this would be to parent the propeller and submarine to each other and write a simple expression to make the propeller rotate as the sub moves along a path. am i on the right track and if so what would be written in the expression.

thanks.

kbrown 28-11-2002 08:33 AM

I'd suggets to group the propeller with itself to create a new transform node to it. Then parent the group (not the propeller shape) to the submarine. This will allow to transform the propeller freely while it still moves with the sub. Then create the expression to the propeller's (not the group) rotation. For example:

propeller.rotationZ = time * (some value);

I used rotationZ just for an example. Your may vary...

ragecgi 28-11-2002 08:44 AM

I did this in the past by just keying the first rotation of my sub's prop, and then in the graph editor, setting the keys to pre and post infinity:)

kbrown 28-11-2002 08:59 AM

Can you change the speed of the rotation just by adjusting the keys later?

Kurt 28-11-2002 02:42 PM

I just do it the way Ragecgi mentioned. in the graph editor.

scraggs 29-11-2002 08:19 AM

cool thakns guys i'll give it a go.

Tolerate 29-11-2002 07:24 PM

i would connect an expression to the zrotation

not sure on the syntax the way kbrown suggested would be the best way

oh and congrats on being the member of the month kbrown


All times are GMT. The time now is 01:23 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Simply Maya 2018