SimplyMaya Forums

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

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

New Thread
 
Thread Tools
Old 28-08-2004, 08:05 PM   #1
murph
Subscriber
 
murph's Avatar
 
Join Date: Mar 2004
Location: ENGLAND
Posts: 404
Thanks: 0
Thanked 0 Times in 0 Posts
Default progressive rotation

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

thanx in advance
murph
__________________
MURPH
murph is offline   Reply With Quote
Old 28-08-2004, 11:12 PM   #2
mtmckinley
The Maya Mountain
 
mtmckinley's Avatar
 
Join Date: Aug 2002
Location: Seattle, WA
Posts: 8,245
Thanks: 1
Thanked 25 Times in 25 Posts
Default

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.
__________________
-Mike
www.mtmckinley.net
The Maya Toolbelt
mtmckinley is offline   Reply With Quote
Old 29-08-2004, 05:49 AM   #3
murph
Subscriber
 
murph's Avatar
 
Join Date: Mar 2004
Location: ENGLAND
Posts: 404
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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

thanks big guy.
__________________
MURPH
murph is offline   Reply With Quote
Old 29-08-2004, 07:49 AM   #4
murph
Subscriber
 
murph's Avatar
 
Join Date: Mar 2004
Location: ENGLAND
Posts: 404
Thanks: 0
Thanked 0 Times in 0 Posts
Default

is that for M-6 i only have 5, didn't work even after playing a bit.
__________________
MURPH
murph is offline   Reply With Quote
Old 29-08-2004, 11:47 AM   #5
mtmckinley
The Maya Mountain
 
mtmckinley's Avatar
 
Join Date: Aug 2002
Location: Seattle, WA
Posts: 8,245
Thanks: 1
Thanked 25 Times in 25 Posts
Default

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

:shrug:
__________________
-Mike
www.mtmckinley.net
The Maya Toolbelt
mtmckinley is offline   Reply With Quote
Old 29-08-2004, 11:55 AM   #6
murph
Subscriber
 
murph's Avatar
 
Join Date: Mar 2004
Location: ENGLAND
Posts: 404
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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
__________________
MURPH
murph is offline   Reply With Quote
Old 29-08-2004, 12:15 PM   #7
mtmckinley
The Maya Mountain
 
mtmckinley's Avatar
 
Join Date: Aug 2002
Location: Seattle, WA
Posts: 8,245
Thanks: 1
Thanked 25 Times in 25 Posts
Default

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.
__________________
-Mike
www.mtmckinley.net
The Maya Toolbelt
mtmckinley is offline   Reply With Quote
Old 29-08-2004, 12:30 PM   #8
murph
Subscriber
 
murph's Avatar
 
Join Date: Mar 2004
Location: ENGLAND
Posts: 404
Thanks: 0
Thanked 0 Times in 0 Posts
Talking KA-CHING

worked like a charm, spining excelently...

Many thanks Mike!!

Murph
__________________
MURPH
murph 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.