Simply Maya User Community

Simply Maya User Community (https://simplymaya.com/forum/index.php)
-   Programming (https://simplymaya.com/forum/forumdisplay.php?f=32)
-   -   progressive rotation (https://simplymaya.com/forum/showthread.php?t=13261)

murph 28-08-2004 08:05 PM

progressive rotation
 
can a script be written to rotate progressivly, like the start of a turbine engine?

thanx in advance
murph

mtmckinley 28-08-2004 11:12 PM

pCube1.rotateZ = frame * time *#

Something like that might work. Obviously, substitute your own object.

Substitute "#" with a number. The higher the number, the faster it goes.

murph 29-08-2004 05:49 AM

wow...that was quick...i only expected to be told it could or could nt be done

thanks big guy.

murph 29-08-2004 07:49 AM

is that for M-6 i only have 5, :( didn't work even after playing a bit.

mtmckinley 29-08-2004 11:47 AM

no, it's pretty much always worked for me.

:shrug:

murph 29-08-2004 11:55 AM

this is my error msge

turbine.rotateX = frame * time * 50;
// Error: turbine.rotateX = frame * time * 50; //
// Error: Invalid use of Maya object "frame". //
// Error: turbine.rotateX = frame * time * 50; //
// Error: Invalid use of Maya object "time". //

am i missing something,

(like a basic understanding of mel perhaps) :)

Cheers Murph

mtmckinley 29-08-2004 12:15 PM

Not sure what the problem might be. I remember using this back in Maya 3.

Maybe someone more familiar with expressions might know. I don't use them all that often.

Oh, that might be it... are you doing this as an expression or as a script? Right click on the rotate channel you want to be affected and choose expressions from the list. Then type that into the text box there and see if that works.

murph 29-08-2004 12:30 PM

KA-CHING
 
worked like a charm, spining excelently...

Many thanks Mike!!

Murph


All times are GMT. The time now is 02:15 PM.

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