Essentially this http://www.disneyresearch.com/project/mechanical-characters/
User would specify a desired trajectory in 2/3D space. F360 (possibly in-cloud) searches a database of mechanisms for the closest match and uses optimization (in the link, gradient decent, but there are other alternatives) to improve the fit.