Hello all, I am having some trouble with iterating over files.
I am opening Maya and passing in a script to it that iterates over a large list of Maya files and performs some operations on the nodes inside and then moves onto the next. I get to a certain file and Maya throws a fatal error crash. I have some debug lines that allow me to see which file has been attempted to open. If I open this file normally all is fine and similarly if I open it using the script editor on its own it is fine. I have checked the system resources and the only thing being maxed out when I open the file is the CPU, the mem and disk mem is all fine. When I load the file by itself the script editor complains about Mayatomr being needed for the scene would this impact the iteration of opening files in such a way to fatal crash Maya? *I am using openFile:* pm.openFile(mayaFilePath, force=True, loadReferenceDepth='none') *I have tried this out also but to no avail:* pm.flushUndo() pm.clearCache(all=True, c=True) pm.openFile(mayaFilePath, force=True, loadReferenceDepth='none') Cheers, Ben -- You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/aef2126b-7eb8-4626-a8d1-93ddc61c345b%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
