top of page

Week 41: Mirroring Rig with A Python Script in Maya

I was tired of having to script both a left and right-side function to rig characters that are symmetrical, so instead I wrote a script that parses through all the args and kwargs of a function and swaps all the left and right keywords. In the example below, I am using "_l", and "_r", as the side suffixes, as well as "_l_" and "_r_", and "Left " and "Right" as possible strings to swap but can be edited to match another convention. At the very bottom of the gist are examples on how to use the mirror decorator and function.

Now that you've scrolled this far down, check out a happy narwhal wagging its tail :)


bottom of page