I’m working on a system for reading a maya file with PRTLoaders in it, getting a list of the partition files in the loader for the purpose of re-partitioning those files when/if we restore this project from archive, and we don’t want to archive the PRT files. Easier to re-partition than write 18TB of PRT files to tape/disk/cloud/thumbdrives.
The problem I’m having is getting the list of partitions in the PRTLoader. I looked at the various attributes and none seemed to contain the list, so I then looked at the python class MayaKrakatoa, which is probably what I need, but then again, why spend hours poking at it when I can ask for help.
Basically the attribute name is “.inInputFiles”, but it has sub-attributes “.inPRTFile” which is the file name, “.inUseFileInRender” and “.inUseFileInViewport” for the render and viewport flags, and “.inSingleFileOnly” for the single file only option. You probably need just the first one.