Bjørn Blaabjerg Sørensen shows how to write a script that can constrain an object to any polygonal surface in Maya. Bjørn has been posting some tutorials recently on using Python in Maya for simple rigging tasks.
[pullquote]using Maya Python to demonstrate how you can write a very useful tool for rigging[/pullquote]Here, he shows how you can make a follicle connection script, that will constrain any 3D object to any polygonal surface.
The resulting tool can be used in a variety of rigging tasks, such as sticking a button on a character’s clothes, or eyebrows to a face — you can use it any time you want something to stick to a surface without rotating in strange ways.