SimplyMaya Forums

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

Register FAQ Members List Calendar Mark Forums Read

New Thread
 
Thread Tools
Old 01-07-2004, 09:55 AM   #1
Binabik
Registered User
 
Join Date: Jul 2003
Location: Australia
Posts: 50
Thanks: 0
Thanked 0 Times in 0 Posts
Default floating object

hi there.

say i want the effect of a sphere hovering gently in the air.
in max i would have just added a noise controller to it's y position controller.

is there an easy way to do this in maya or do i need to write a mel script?

thanks!

Adam.
Binabik is offline   Reply With Quote
Old 01-07-2004, 11:59 AM   #2
Alan
Moderator
 
Alan's Avatar
 
Join Date: Oct 2002
Location: London, UK
Posts: 2,800
Thanks: 0
Thanked 5 Times in 5 Posts
Default

you coudl do that in maya but you could use expressions e.g.:

pSphere1.ty = sin(time/4) * 0.8;

that should do it.

Right click the attribute in the channel box and select expressions then find the attribute and type that in.

Alan
__________________
Technical Director - Framestore

Currently working on: Your Highness

IMDB
Alan is offline   Reply With Quote
Old 01-07-2004, 12:12 PM   #3
Binabik
Registered User
 
Join Date: Jul 2003
Location: Australia
Posts: 50
Thanks: 0
Thanked 0 Times in 0 Posts
Default

ok cool
that will not be random movement though? would look a bit. . mechanical?
i'm assuming there's a 'random' command I could add in there somewhere?
Binabik is offline   Reply With Quote
Old 01-07-2004, 12:24 PM   #4
Binabik
Registered User
 
Join Date: Jul 2003
Location: Australia
Posts: 50
Thanks: 0
Thanked 0 Times in 0 Posts
Default

also, i need the movement to be relative not absolute, so when i position the sphere, the up down movement will be on top of the existing Y data, not instead of.

thanks!
Adam.
Binabik is offline   Reply With Quote
Old 01-07-2004, 01:29 PM   #5
Alan
Moderator
 
Alan's Avatar
 
Join Date: Oct 2002
Location: London, UK
Posts: 2,800
Thanks: 0
Thanked 5 Times in 5 Posts
Default

ok without having to completley spell it out for you :

pSphere1.ty += sin(time/4) * rand(0, 1);
__________________
Technical Director - Framestore

Currently working on: Your Highness

IMDB
Alan is offline   Reply With Quote
Old 01-07-2004, 11:04 PM   #6
Binabik
Registered User
 
Join Date: Jul 2003
Location: Australia
Posts: 50
Thanks: 0
Thanked 0 Times in 0 Posts
Default


thanks!

I'm learning MEL at the moment, but I've only just started.
Binabik is offline   Reply With Quote
Old 28-07-2004, 02:45 AM   #7
Binabik
Registered User
 
Join Date: Jul 2003
Location: Australia
Posts: 50
Thanks: 0
Thanked 0 Times in 0 Posts
Default

sorry, worked it out, nm.

Last edited by Binabik : 28-07-2004 at 03:07 AM.
Binabik 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.