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!
Solved! Go to Solution.
Solved by mspeer. Go to Solution.
Solved by NandoStille. Go to Solution.
Solved by mspeer. Go to Solution.
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)
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.
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
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).
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
Hi!
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.
Maya 2016 introduced a new command for cleaning the requires statements:
http://help.autodesk.com/cloudhelp/2018/ENU/Maya-Tech-Docs/Commands/unknownPlugin.html
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";
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.
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.
Hi!
Sorry, i can't open this file.
Could you please use a simple ZIP or older RAR compression algorithm/features.
It's got a requires statement for mental ray
and some other unknown nodes
// 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";
Can't find what you're looking for? Ask the community or share your knowledge.