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