In this short video I show some of the very basics of Maya Python scripting. This video serves as an introduction leading up to my other scripting tutorials, and if you know nothing of scripting this video is a good place to start to scratch the surface.
Understanding Maya Piston -- Rigging a piston. John Park explains how to set up this rig very well. This is from a few years ago so it is an older version of Maya, but I just set up a quick piston based on this tutorial and it works perfectly!