#include <maya/MSimple.h>
#include <maya/MObject.h>
#include <maya/MGlobal.h>
#include <maya/MFnDependencyNode.h>
#include <maya/MSelectionList.h>
#include <maya/MString.h>
#include <maya/MObjectArray.h>
#include <maya/MPlug.h>
#include <maya/MItSelectionList.h>
#include <maya/MItDependencyGraph.h>
#include <maya/MFnStringData.h>
#include <maya/MIOStream.h>
{
MPlug plugToFile( fileNode, fileAttr );
cerr <<
"Name: " << nodeFn.
name() << endl;
stat = plugToFile.
getValue( fnameValue );
if ( !stat ) {
stat.
perror(
"error getting value from plug");
} else {
cerr <<
"Texture: " << stringFn.
string() << endl;
}
cerr << "Path: ";
for (
int i = nodePath.
length()-1; i >= 0; i-- ) {
currentNode = nodePath[i];
if ( i > 0)
cerr << " ->\n ";
}
cerr << endl;
}
{
unsigned last = args.
length();
for ( unsigned i = 0; i < last; i++ ) {
}
} else {
}
iter.getDependNode( node );
if ( !status ) {
cerr << nodeFn.
name() <<
": is not a renderable object, skipping\n";
continue;
}
MPlug iogPlug( node, iogAttr );
iogPlug.elementByLogicalIndex(0).connectedTo( iogConnections, false, true, &status );
if ( !status ) {
cerr << nodeFn.
name() <<
": is not in a shading group, skipping\n";
continue;
}
bool foundATexture = false;
for (
unsigned int i=0; i<iogConnections.
length(); i++ ) {
currentNode = iogConnections[i].node();
&status );
if ( !status ) {
delete dgIt;
continue;
}
if ( !status ) {
continue;
}
dumpInfo( thisNode, dgNodeFnSet, nodePath );
foundATexture = true;
}
delete dgIt;
}
if ( !foundATexture ) {
cerr << nodeFn.
name() <<
": is not connected to a file texture\n";
}
}
}