Here is a python script I've written for a sine wave animation editor for use in Maya. The UI allows the user to quickly select keyable attributes of any object and give them sine wave animation curve. The user can specify the wavelength, phase, amplitude, and offset for a new curve and set the time frame to be animated. Once generated, the animation will be keyed at every frame for the set time. The user can also delete existing keyframes on attributes with a simply click of a button.
You can download the script here: Source Code