private void buildXformTree() { // Get the very root of the Maya DAG. MItDag rootIt = new MItDag(); rootXform.isRoot = true; rootXform.name = "root"; MFnDagNode rootDagNode = new MFnDagNode(rootIt.root()); rootDagNode.getPath(rootXform.mayaObjectPath); // Process all children transforms of the root. processXform(rootXform); }