Selecting Objects

Today I’ll show how to use Maya’s API to select objects based on their type. So you want to select an object based on its type? The first thing to look at is how to iterate over dag nodes. This is best done with MItDag. MItDag takes two arguments. The...

Read more


MPlugs: Compound Plugs

Compound plugs are useful for organizing a bunch of MPlugs into a single group. I like to use them in tools that need to store persistent data in Maya scene files. To create a compound plug we use MFnCompoundAttribute. The actually creation process is similar to my previous example on creating...

Read more


MPlugs: Array Plug

An array MPlug consists of a list of plugs, each with its own data value. The catch is that all the plugs in the list have the same data type. This is unlike compound plugs, which can have a mix of data types for its children. You can read...

Read more

1 2 3 4 5 13