I have a trouble when open a file.
The more aovs I create, the more it takes time for opening a file.
I traced the logs during opening a file, and I got a result like below breifly
// Read 239 files in 77.8 seconds. // mayaHasRenderSetup(); mayaHasRenderSetup(); mayaHasRenderSetup(); // it occurs 32639 times. Total Time: 806.98
I think that calling "mayaHasRenderSetup()" makes time-loss after reading all references.
I find that isValidAOVNode in avos.py calls mayaHasRenderSetup commands,
AOVInterface.getAOVs() and AOVInterface.getAOVNodes() call isValidAOVNode function.
So I concluded that AOV nodes that included in the scene are related with time trouble.
I hope to know how to solve my problem.
Please post a repro scene, and can you say what versions of Maya and MtoA you are using?
Hello,
a very similar issue, with scene being slowed down because of the AOV nodes, was adressed recently and will be included in a future release
@Sebastien Blaineau-Ortega
Yes, I found out a reason for slowing down. It was createAliases() method in mtoa/aovs.py, so I changed that.
(It cuts down the file open time from 10 mins to 40 secs)