Getting Children

Here’s a little utility function for getting all the children across all branches of an object’s hierarchy. [crayon-5f91fa8fb6aa5615159952/] We start by getting the MDagPath of the passed in object name and use it to construct an instance of  the MFnDagNode function set. The dag path has a public function called...

Read more

Code Thumbnail

MPlugs: Setting Values

This week we’re going to to finish up with MPlugs by covering setting plug values. Much of the foundation for this was setup last week when I cover getting plug values. Like last week we’ll start by setting up a scene in Maya with a single sphere named Ball. [crayon-5f91fa8fb98f7852999881/]...

Read more

Code Thumbnail

MPlugs: Getting Values

At the end of my last post I briefly covered getting a MObject’s MPlugs with the Python API. To recap, MPlugs are points on a dependency node. Each point represents a spot where an attribute can be connected to the node. So now that you have a plug what do you...

Read more

1 4 5 6 7 8 13