Maya 2010 to include Compositing and Camera Tracking Tools

Autodesk, as usual, announced its next version of Maya at Siggraph. The interesting part, however, is the range of tools planned to be shipped as part of it: Maya Composite high dynamic range compositing system Matchmoving camera tracking system Additional MentalRay for batch rendering nodes etc… Not to mention the entire Maya unlimited 2009 tool-set…

0

Displaying the currently selected components with MSelectionList

The MGlobal::getActiveSelectionList() offers a convenient way of accessing the currently selected objects in the view. However, if you wish to find the selected components then you need to use the MSelectionList’s getDagPath() method. It returns the dagPath of the seleted object and also the selected components of it. Once we have the dagPath of the…

1

How to find the Shading Groups for a Shape node in Maya API?

Given the DagPath for any Mesh object, listing the Shading Groups connected to it is easy. The MFnMesh::getConnectedSetsAndMembers() will do the trick as shown below: MStatus ListShadingGroups(const MDagPath& inputShapeDagPath){ if(inputShapeDagPath.hasFn(MFn::kMesh)) { // Find the Shading Engines Connected to the SourceNode MFnMesh fnMesh(inputShapeDagPath.node()); // A ShadingGroup will have a MFnSet MObjectArray sets, comps; fnMesh.getConnectedSetsAndMembers(inputShapeDagPath.instanceNumber(), sets, comps,…

0