Hi !
(This is my first post here, I hope this will meet your requirements)
I have a huge bunch of Maya file that require certains Plug-Ins that are no longer in use in the studio where I’m working.
The thing is that maya is trying to find these Plug-ins in MAYA_PLUG_IN_PATH and this is slowing the opening of the scene files.
The incriminated Plug-ins are these ones:
requires "mayall_maya70" "0.9.1(Beta)"; #I think to is a Maxwell Render-related plugin
requires "elastikSolver" "0.991";
requires "RenderMan_for_Maya" "3.0.1";
I made a quick script to compare the time taken to open a scene file with and without these three lines in the Maya ASCII file.
import time
start_time = time.time()
cmds.file(r"My\Scene\Path.ma", open=True)
print("--- %s seconds ---" % (time.time() - start_time))
Result WITH the three lines:
# File read in 11 seconds. #
# Error: file: My\Scene\Path.ma line 84: Plug-in, "mayall_maya70", was not found on MAYA_PLUG_IN_PATH.
# Traceback (most recent call last):
# File "<maya console>", line 1, in <module>
# RuntimeError: Plug-in, "mayall_maya70", was not found on MAYA_PLUG_IN_PATH. #
# Error: file: My\Scene\Path.ma line 85: Plug-in, "elastikSolver", was not found on MAYA_PLUG_IN_PATH.
# Traceback (most recent call last):
# File "<maya console>", line 1, in <module>
# RuntimeError: Plug-in, "elastikSolver", was not found on MAYA_PLUG_IN_PATH. #
# Error: file: My\Scene\Path.ma line 86: Plug-in, "RenderMan_for_Maya", was not found on MAYA_PLUG_IN_PATH.
# Traceback (most recent call last):
# File "<maya console>", line 1, in <module>
# RuntimeError: Plug-in, "RenderMan_for_Maya", was not found on MAYA_PLUG_IN_PATH. #
--- 11.6500000954 seconds ---
Result WITHOUT the three lines:
# File read in 0 seconds. #
--- 0.361000061035 seconds ---
I would like to get rid of this error, IMO 11seconds + 11seconds + 11seconds … = A lot of time saved.
My main concern is the fact that I don’t know how many files are corrupted with these three lines. We also have quite a lot of Maya files on the network (approx 99% are ASCII files) and our actives projects are worth 6Tb of data. We also are stuck with maya 2014, so the solution posted on this thread is not worth considering.
What would you recommend me to do?
Is it safe to parse and remove these three lines in all the scenes?
Sincerely,
DrHaze