Community
Arnold for 3ds Max
Rendering with Arnold in 3ds Max using the MaxtoA plug-in.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How can I get rid of the mental ray nodes in my Maya scenes files?

5 REPLIES 5
SOLVED
Reply
Message 1 of 6
Stephen.Blair
5866 Views, 5 Replies

How can I get rid of the mental ray nodes in my Maya scenes files?

I keep getting this warning when I load older scenes:

407-file-contains-mental-ray-nodes.png

In some scenes, it's enough to turn off Display > DAG Objects Only in the outliner and then delete the mental* nodes, but that doesn't work in every scene.



// Stephen Blair
// Arnold Renderer Support
Tags (2)
Labels (2)
5 REPLIES 5
Message 2 of 6
Anonymous
in reply to: Stephen.Blair

This MEL script is what I've been using, don't remember the origination, but it works!

  • Download the attached file.
  • Rename it to cleanup_mayatomr.mel
  • Load into a MEL tab in the script editor.
  • Run it

cleanup-mayatomrmel.txt

Message 3 of 6
Anonymous
in reply to: Anonymous

Paste in your script editor and run, should clean out your file .. then save and voila.

Message 4 of 6
jch
Enthusiast
in reply to: Anonymous

Sweet. Thanks for sharing this Marcel. Will try it out.

Message 5 of 6

THANKYOU - saved my rig.

Message 6 of 6
Anonymous
in reply to: Stephen.Blair

The MEL script to remove MentalRay residual nodes...


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.

Post to forums  

Autodesk Design & Make Report