Learn Maya 3D Nonlinear Deformers Part III – Sine
Page 3 of 3For animation
I have fish character (to try this animation you can apply polygon cube or cylinder, but number of subdivision must fulfill).

Select fish character then chooses Sine deformer. Determine Sine attributes like this:
Envelope: 1
Amplitude 0.1
Wavelength: 2
Offset: 0
Dropoff: -1
Low Bound: -1
High Bound: 0
Apply translate, rotation or scale to locates the Sine like picture below.

Create a cylinder curve and berry name of fish_control.

Add attribute at fish_control. Berry name of Wave_control at this new attribute. Then contents of data like picture below.

This is result from addition of new attribute.

Add expression at Sine offset.

If you successfully add expression at Sine offset attribute hence the color will turn into purple. Now time to play.

Thank has joined in this tutorial. See you in part four.

thanks,for your information
This was a very helpful tutorial, but after the fish gets its swimming motion, how can it be used on a motion path where the animation of fish loops, but he fish can travel around on the given motion path or can be used for instancing particles to simulate a shoal of fishe, will be very helpful if some important tips can be given on the above, thanks and lot again!