Hey Jakob,
I didn't know if you got the 'file' portion of your question taken care of, but you might try the -exactType "type" to get all "file" DAG nodes?
string $allFiles[] = ls -et "file"
;
That should put a listing of all "file" DAG nodes into $allFiles[] for you. If you're looking for a list of the filenames (?textures?) themselves, you might try:
//----------------------------------------//
string $allFiles[] = ls -et "file"
;
eval ("string $imageFileNames[" + size($allFiles) + "]");
for($currentDAGNode=1;$currentDAGNode<=size ($allFiles);$currentDAGNode++)
{
$imageFileNames[$currentDAGNode] = eval("getAttr " + $allFiles[$currentDAGNode] + ".fileTextureName")
;
}
//----------------------------------------//
That should throw the specific image file names themselves (rather than the DAG node names) into $imageFileNames[] for you to run with...
It looks like JooJaa already hooked you up for the reference files. For anyone else reading that might benefit from it...:
file -open -loadNoReferences "ReferenceMasterFile.mb";
string $aReferenceFileList[] = file -q -l
;
... where "ReferenceMasterFile.mb" would be the path to the file that contains the references you wish to list out. This will open the .mb without actually loading the reference files themselves, and will put each reference file into one position of the $aReferenceFileList[] array.
Hope this is helpful.
- Brant -