Theres a quite a few tutorial on doing it, google them. I use the methond from maya the complete reference, works like a charm