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.

using Maya Python to demonstrate how you can write a very useful tool for rigging

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.


Some of the links on lesterbanks are "affiliate links", a link with a special tracking code. This means if you click on an affiliate link and purchase the item, we will receive an affiliate commission. The price of the item is the same whether it is an affiliate link or not. Regardless, we only recommend products or services we believe will add value to our readers. By using the affiliate links, you are helping support our Website, and we genuinely appreciate your support.