Maya 2018 "File contains mental ray nodes"

Anonymous

Maya 2018 "File contains mental ray nodes"

Anonymous
Not applicable

Hello!

 

Im having a little problem in Maya 2018. Im trying to open a practice project, and it gives me the warning that I don`t have mental ray installed but that the project contains mental ray nodes.

 

I have tried deleting the all the nodes in the outliner (although I didnt see any mental ray nodes there) and i`ve done the "optmize scene" - "remove unused nodes" option, but the warning still comes up every time i try to open the project.

Does anyone have an idea on how i get rid of this warning message?

 

Thanks!

 

0 Likes
Reply
Accepted solutions (3)
17,654 Views
17 Replies
Replies (17)

mspeer
Consultant
Consultant

Hi!

 

Don't delete all nodes from Outliner without knowing what they do.

Don't use "optmize scene" - "remove unused nodes", instead use

 

File -> Optimize Scene Size -> Remove Unknown nodes -> Optimize now (just click here to optimize now)

0 Likes

Anonymous
Not applicable

Hey mspeer, i`ve tried this method too, but the warning message still shows up. Any tips? 

0 Likes

mspeer
Consultant
Consultant

Hi!

 

By default these are the nodes to remove from Outliner, Display -> DAG Objects Only ("uncheck")

mi* (2 nodes)

mentalray* (2 nodes)

 

But there may be more (like materials) if Mental Ray was used.

 

For further help please upload the scene-file.

Anonymous
Not applicable

Thanks for all the help mspeer, im kind of new with Maya. Attached is the .mb file, would be awesome if you could have a look at it

0 Likes

mspeer
Consultant
Consultant
Accepted solution

Hi!

 

There is no mental ray node in this scene, but the requirement for Mental Ray is still in the header (it's a very old scene).

The only solution i can offer is to save as .ma, then open the file with a Text Editor and remove this line:

requires "Mayatomr" "2011.0m - 3.8.1.26 ";

(An other solution would be to export in a file format that does not support this feature, but this limited format may  also skip other scene elements).

Anonymous
Not applicable

Thank you so much, that did it! 🙂

0 Likes

Ruediger-Ambs
Autodesk Support
Autodesk Support

Hello You could also just use this

select -r ´ls -type unknown´;

delete;

this removes all unknown nodes and also entries from MentalRay which are unknown entries as you have not loaded the MentalRay plugin.

please see also this article:

https://knowledge.autodesk.com/community/article/120101

 

Hope this helps as well

 

Best regards

 

 



Rüdiger Ambs
Technical Support Specialist, Global Product Suport
0 Likes

mspeer
Consultant
Consultant

Hi!

@Ruediger-Ambs

 

1. You need backwards brackets, so it would be

select -r `ls -type unknown`;

2. But still then this does not work, cause there are no unknown nodes in the scene.

The header cannot be selected or removed from inside Maya, or at least i don't know how.

 

The scene is available for download above, please try on your own.

0 Likes

NandoStille
Advocate
Advocate
Accepted solution

mspeer
Consultant
Consultant
Accepted solution

Hi!

 

Thanks for the info.

Ok, so this MEL command works too (from inside Maya) and should be preferred over a manual correction of the file:

 

unknownPlugin -remove "Mayatomr";

 

 

timdan
Advocate
Advocate

@mspeer wrote:

[...]

unknownPlugin -remove "Mayatomr";

 


When I attempt this MEL script I get this error:

// Error: line 1: No matching unknown plug-in. // 
+ timdan

-
http://www.timdan.com
0 Likes

mspeer
Consultant
Consultant

Hi!

 

If this happens then there is no requirement set for Mental Ray in the scene

(or the requirement in the scene may be very old).

 

There are 2 steps required to remove everything related to Mental Ray.

1. Removing all Mental Ray nodes from the scene.

2. Removing The requirement for Mental Ray in the header of the scene-file.

0 Likes

timdan
Advocate
Advocate

This has mostly worked, but I keep getting errors. I've uploaded a file that, as far as I can tell has nothing in it at all. I've run the recommended scripts, but still get the error.

 

Please help.

FYI: this was not an issue until our studio recently switched to 2018.

+ timdan

-
http://www.timdan.com
0 Likes

mspeer
Consultant
Consultant

Hi!

Sorry, i can't open this file.

Could you please use a simple ZIP or older RAR compression algorithm/features.

0 Likes

Stephen.Blair
Community Manager
Community Manager

It's got a requires statement for mental ray

and some other unknown nodes

 

https://forums.autodesk.com/t5/maya-forum/how-to-delete-old-unwanted-missing-maya-plug-ins/m-p/86397...



// Stephen Blair
// Arnold Renderer Support
0 Likes

nadafathisayed
Participant
Participant
Lifesaver! Thank youu
0 Likes

AdelArts
Participant
Participant

// 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";

0 Likes