Community
Maya Forum
Welcome to Autodesk’s Maya Forums. Share your knowledge, ask questions, and explore popular Maya topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to delete old unwanted Missing Maya Plug ins?

9 REPLIES 9
SOLVED
Reply
Message 1 of 10
rosalie.ocon
15685 Views, 9 Replies

How to delete old unwanted Missing Maya Plug ins?

Hi,

 

I opened an old rig file and it gave me errors like this ..  is there a way or a script to remove unwanted Plugins without trying to re-install all those missing ones?

 

Cheers!

 

Rosalie

 

# Error: line 1: RuntimeError: file <maya console> line 1: Plug-in, "vrayformaya", was not found on MAYA_PLUG_IN_PATH. #
requires "physx" "PhysxForMaya (2.86.00820.10150) , compiled 8/19/2012 1:03:57 AM";
# Error: line 1: RuntimeError: file <maya console> line 1: Plug-in, "physx", was not found on MAYA_PLUG_IN_PATH. #
requires "maxwell" "1.6.4";
# Error: line 1: RuntimeError: file <maya console> line 1: Plug-in, "maxwell", was not found on MAYA_PLUG_IN_PATH. #
requires "realflow" "5.0.2";
# Error: line 1: RuntimeError: file <maya console> line 1: Plug-in, "realflow", was not found on MAYA_PLUG_IN_PATH. #
requires "finalRender" "1.0";
# Error: line 1: RuntimeError: file <maya console> line 1: Plug-in, "finalRender", was not found on MAYA_PLUG_IN_PATH. #
requires "rpmaya" "2.0";
# Error: line 1: RuntimeError: file <maya console> line 1: Plug-in, "rpmaya", was not found on MAYA_PLUG_IN_PATH. #
requires "faceMachine" "1.0";
# Error: line 1: RuntimeError: file <maya console> line 1: Plug-in, "faceMachine", was not found on MAYA_PLUG_IN_PATH. #
requires "TurtleForMaya80" "4.0.0.6";
# Error: line 1: RuntimeError: file <maya console> line 1: Plug-in, "TurtleForMaya80", was not found on MAYA_PLUG_IN_PATH. #
requires "TurtleForMaya70" "3.1.0.6";
# Error: line 1: RuntimeError: file <maya console> line 1: Plug-in, "TurtleForMaya70", was not found on MAYA_PLUG_IN_PATH. #
requires "RenderMan_for_Maya" "1.0";
# Error: line 1: RuntimeError: file <maya console> line 1: Plug-in, "RenderMan_for_Maya", was not found on MAYA_PLUG_IN_PATH. #
requires "MayaMan" "1.2.57";
# Error: line 1: RuntimeError: file <maya console> line 1: Plug-in, "MayaMan", was not found on MAYA_PLUG_IN_PATH. #
requires "FurryBall_2012" "3.0.2208";
# Error: line 1: RuntimeError: file <maya console> line 1: Plug-in, "FurryBall_2012", was not found on MAYA_PLUG_IN_PATH. #
requires "CraftMayaAdaptor2008" "7.0";
# Error: line 1: RuntimeError: file <maya console> line 1: Plug-in, "CraftMayaAdaptor2008", was not found on MAYA_PLUG_IN_PATH. #
requires "mtorsubdiv" "1.1";
# Error: line 1: RuntimeError: file <maya console> line 1: Plug-in, "mtorsubdiv", was not found on MAYA_PLUG_IN_PATH. #
requires "DisplaceD" "1.13";
# Error: line 1: RuntimeError: file <maya console> line 1: Plug-in, "DisplaceD", was not found on MAYA_PLUG_IN_PATH. #
// Warning: line 0: Unrecognized node type for node 'shapeEditorManager'; preserving node information during this session. //
// Warning: line 0: Unrecognized node type for node 'poseInterpolatorManager'; preserving node information during this session. //
optionVar -sv colorManagementColorPickerColorSpaceSelection "Rendering Space";
optionVar -iv colorManagementColorPickerColorMgtEnabled 1;
// Warning: line 0: Errors have occurred while reading this scene that may result in data loss.

Please check the Script Editor for details. //
// File read in 62.2 seconds.
// Error: line 0: RuntimeError: file C:\Program Files\Autodesk\Maya2016\Python\lib\site-packages\pymel\core\__init__.py line 151: (kInvalidParameter): No element at given index //
// Warning: line 0: Python callback failed //
optionVar -sv colorManagementColorPickerColorSpaceSelection "Rendering Space";
optionVar -iv colorManagementColorPickerColorMgtEnabled 1;

9 REPLIES 9
Message 2 of 10
sean.heasley
in reply to: rosalie.ocon

Hi @rosalie.ocon 

 

It looks like the file is looking for plugins that may have been installed when working with the file and since it cant find them on your current set up it spits out the errors.

 

I don't know of a way to clear those errors but I would just ignore them as long as they aren't causing a problem with your file.

 

 

Message 3 of 10

You have to remove the unknown nodes from the scene.

Google "maya remove unknown nodes",  you'll find a script



// Stephen Blair
// Arnold Renderer Support
Message 4 of 10

Hi Stephen, Thanks for your reply. I tried and followed the tutorial and it gave me this: it says like it requires specific nodes... I tried optimizing the scene by removing unknown nodes and it just says:

 

 

Removing unknown nodes
------------------------------------

Optimize Scene Size Summary:
----------------------------
Removed 0 unknown nodes

 

________________________________________________________________________



file -f -options "v=0;" -ignoreVersion -typ "mayaBinary" -o "//alpha/ASSETS/CHAR_RIGS_PHONG/RS_ASIANWoman_R02.mb";addRecentFile("//alpha/ASSETS/CHAR_RIGS_PHONG/RS_ASIANWoman_R02.mb", "mayaBinary");
closeAllNodeEditors;
closeHypershade;
requires -dataType "byteArray" "Mayatomr" "2016.0 - 3.13.1.10 ";
requires -nodeType "RedshiftOptions" "redshift4maya" "2.6.31";
requires -nodeType "ilrOptionsNode" -nodeType "ilrUIOptionsNode" -nodeType "ilrBakeLayerManager" -nodeType "ilrBakeLayer" "Turtle" "2016.0.0";
requires "stereoCamera" "10.0";
requires "xfrog" "1.0";


# Error: line 1: RuntimeError: file <maya console> line 1: Plug-in, "xfrog", was not found on MAYA_PLUG_IN_PATH. #
requires "vrayformaya2008" "1.0";
# Error: line 1: RuntimeError: file <maya console> line 1: Plug-in, "vrayformaya2008", was not found on MAYA_PLUG_IN_PATH. #
requires "vrayformaya" "2.20.01";
# Error: line 1: RuntimeError: file <maya console> line 1: Plug-in, "vrayformaya", was not found on MAYA_PLUG_IN_PATH. #
requires "physx" "PhysxForMaya (2.86.00820.10150) , compiled 8/19/2012 1:03:57 AM";
# Error: line 1: RuntimeError: file <maya console> line 1: Plug-in, "physx", was not found on MAYA_PLUG_IN_PATH. #
requires "maxwell" "1.6.4";
# Error: line 1: RuntimeError: file <maya console> line 1: Plug-in, "maxwell", was not found on MAYA_PLUG_IN_PATH. #
requires "realflow" "5.0.2";
# Error: line 1: RuntimeError: file <maya console> line 1: Plug-in, "realflow", was not found on MAYA_PLUG_IN_PATH. #
requires "finalRender" "1.0";
# Error: line 1: RuntimeError: file <maya console> line 1: Plug-in, "finalRender", was not found on MAYA_PLUG_IN_PATH. #
requires "rpmaya" "2.0";
# Error: line 1: RuntimeError: file <maya console> line 1: Plug-in, "rpmaya", was not found on MAYA_PLUG_IN_PATH. #
requires "faceMachine" "1.0";
# Error: line 1: RuntimeError: file <maya console> line 1: Plug-in, "faceMachine", was not found on MAYA_PLUG_IN_PATH. #
requires "TurtleForMaya80" "4.0.0.6";
# Error: line 1: RuntimeError: file <maya console> line 1: Plug-in, "TurtleForMaya80", was not found on MAYA_PLUG_IN_PATH. #
requires "TurtleForMaya70" "3.1.0.6";
# Error: line 1: RuntimeError: file <maya console> line 1: Plug-in, "TurtleForMaya70", was not found on MAYA_PLUG_IN_PATH. #
requires "RenderMan_for_Maya" "1.0";
# Error: line 1: RuntimeError: file <maya console> line 1: Plug-in, "RenderMan_for_Maya", was not found on MAYA_PLUG_IN_PATH. #
requires "MayaMan" "1.2.57";
# Error: line 1: RuntimeError: file <maya console> line 1: Plug-in, "MayaMan", was not found on MAYA_PLUG_IN_PATH. #
requires "FurryBall_2012" "3.0.2208";
# Error: line 1: RuntimeError: file <maya console> line 1: Plug-in, "FurryBall_2012", was not found on MAYA_PLUG_IN_PATH. #
requires "CraftMayaAdaptor2008" "7.0";
# Error: line 1: RuntimeError: file <maya console> line 1: Plug-in, "CraftMayaAdaptor2008", was not found on MAYA_PLUG_IN_PATH. #
requires "mtorsubdiv" "1.1";
# Error: line 1: RuntimeError: file <maya console> line 1: Plug-in, "mtorsubdiv", was not found on MAYA_PLUG_IN_PATH. #
requires "DisplaceD" "1.13";
# Error: line 1: RuntimeError: file <maya console> line 1: Plug-in, "DisplaceD", was not found on MAYA_PLUG_IN_PATH. #
// Warning: line 0: Unrecognized node type for node 'shapeEditorManager'; preserving node information during this session. //
// Warning: line 0: Unrecognized node type for node 'poseInterpolatorManager'; preserving node information during this session. //
optionVar -sv colorManagementColorPickerColorSpaceSelection "Rendering Space";
optionVar -iv colorManagementColorPickerColorMgtEnabled 1;
// Warning: line 0: Errors have occurred while reading this scene that may result in data loss.

 

 

 

 

i cant think of another solution and Id really appreciate if you can give me more ideas to try..

 

Thanks again Stephen..

 

Cheers,

 

Rosalie Ocon

Message 5 of 10
rosalie.ocon
in reply to: sean.heasley

Hi Sean,

 

Thanks for your note..  i think i wont have problems if i render it in our local farm but I'm not sure about if we outsource them to rendering companies outside... I checked the files were really old, and needs someone to clean them up otherwise errors will just gather... also, if we move to Maya 2019, it might make a mess?  those are the things im worried about.

 

Cheers,

Rosalie

Message 6 of 10

Hi

 

Something like this should do it (although I did have to run it twice on one mental ray scene I downloaded)

string $unknownNodes[] = `ls -type "unknown"`;

for($node in $unknownNodes) {
    print( "Deleting " + $node + "\n" );
    lockNode -lock 0 $node;
    delete $node;
}

string $plugin;
string $unknownPlugins[] = `unknownPlugin -query -list`;
for ($plugin in $unknownPlugins)
{
    unknownPlugin -remove $plugin;
}

For just mental ray, this script works:

// Script to remove mental ray data from Maya scene files
// Run this script while the scene is open in Maya, then save the file with a new name

print("\n");
print("\n");
print("Working on:\n");

string $mrNodes[] = `ls -typ "unknown"`;

for ($each in $mrNodes){
	if (`objExists $each` && `unknownNode -q -p $each` == "Mayatomr"){
		print($each + "\n");
		delete $each;
	}
}


if (`objExists mentalrayIblShape1`){
	delete mentalrayIblShape1;
}

unknownPlugin -remove "Mayatomr";
print "\n";
print "---> Done";


// Stephen Blair
// Arnold Renderer Support
Message 7 of 10

Hi Stephen!

 

This is awesome, Thank you! This solved the problem..

 

 

Best regards,

 

Rosalie 😄

Message 8 of 10
geniusyork
in reply to: Stephen.Blair

hello ,I have the same problem, but I used MAYA2014. The result is Error: line 10: Cannot find procedure "unknownPlugin". Can it be solved? Thank you。
Message 9 of 10
angelnacia
in reply to: geniusyork

Works perfectly here, thanks Stephen!

Message 10 of 10
mnjlvrs
in reply to: rosalie.ocon

Hi Rosaile,

Use the script in Python tab.

mnjlvrs_0-1634275085124.png

 

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report