Maya Training

Introduction to Hard Surface Modeling

Maya Training

Interiors and Furniture Vol 1 & 2 - Modeling & Cloth

Maya Training

Shading, Lighting and Rendering the Bedroom in MR

Maya Training

Robot volume one - Modeling with animation in mind

Maya Training

Spach-Alspaugh House the complete courseware

Maya Training

Burt The Cartoon Dinosaur Vol 01 - Modeling

New Maya Training

Robot Volume 02 - Hybrid Rigging
You are here > Home > SimplyMaya Community Forums
Loading

Welcome to Simply Maya

Please Sign in or Sign up for an account

Member Login

Lost your password?

Not a member yet? Sign Up!

Old 01-07-2004, 10: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, 12:59 PM   #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, 01: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, 01: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, 02: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 02-07-2004, 12:04 AM   #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, 03: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 04:07 AM.
Binabik is offline   Reply With Quote

A little bit about who we are
Links you might find useful
Catch up with SimplyMaya
SimplyMaya specialises in Maya tutorials. We offer over 1,000 individual Maya training videos, ranging from basic Maya tutorials through to intermediate Maya tutorials. Our tutorials are created by instructors with industry experience and are designed to get you up and running in Maya quickly without making it seem like hard work.

Copyright © 1999-2015 SimplyMaya - vBulletin® Copyright © 2000-2015, Jelsoft Enterprises Ltd.