If you are anything like me, you can’t always find what you need in the Maya Python API documentation. Sometimes the information in the docs does not match what actually exists in the header files. Sometimes you cannot find sufficient examples of what you want to accomplish in Autodesk’s sample scripts. When you really hit the bottom and have to scour the dregs of the internet, you will typically find a dearth of information.
Because developing Maya Nodes using the Python API has consistently been an excruciating process for me, I want to save you the headache and post things here as I come across them. Most things turn out to be fairly simple, yet require a lot of hair-ripping to sort out. One issue I came across today was setting values for compound attributes. (more…)