Maya 2017 scene error warning about mental ray nodes

Maya 2017 scene error warning about mental ray nodes

rimcrazy
Collaborator Collaborator
22,707 Views
12 Replies
Message 1 of 13

Maya 2017 scene error warning about mental ray nodes

rimcrazy
Collaborator
Collaborator

So I'm getting the warning dialog box I'm sure everyone else is getting when you load an older scene into Maya 2017 and it complains that there are Mental Ray nodes.  I've switched to VRay now as my rendering engine.  (Sorry AD.... not going to use Arnold) Is there some simple way to screen or find the MR nodes that Maya is complaining about?  I thought I removed any reference to MR shaders in my scene but it is still complaining when I load.  I suppose I could export to a .obj and then import but that would be a major PITA at the moment and I don't wish to do that.

MacStudio M2
128Gb, 4Tb
Sonoma 14.6.1
MacDisplay, Dell U3415W
Accepted solutions (1)
22,708 Views
12 Replies
Replies (12)
Message 2 of 13

damaggio
Mentor
Mentor
Accepted solution

I'm sure everyone has seen this, just open the outliner , uncheck Dag objects and delete the Mental ray nodes.

Maybe a shelf button can be made out of this.

Message 3 of 13

rimcrazy
Collaborator
Collaborator
Awesome! Thanks that works and is a very quick and easy solution. Got rid of actually 2 error messages that I knew were bogus.

Thanks much!
MacStudio M2
128Gb, 4Tb
Sonoma 14.6.1
MacDisplay, Dell U3415W
0 Likes
Message 4 of 13

mspeer
Consultant
Consultant

Hi!

 

To remove unknown nodes like Mental Ray nodes without the required plugin loaded, use

File -> Optimize Scene Size [] Option box, scroll down and use the "Optimize Now" button beside "Remove Unknown nodes"

 

remove_mr_optimize.gif

 

Message 5 of 13

Anonymous
Not applicable

Removing unused nodes, did not remove the error message for Mental Ray Nodes, fyi.

 

0 Likes
Message 6 of 13

damaggio
Mentor
Mentor

do it manually then via outliner, uncheck DAG and delete the MR nodes.

Message 7 of 13

mspeer
Consultant
Consultant

Hi!

 

You have to choose/select Remove Unknown nodes not unused nodes and this works only if there is no Mental Ray installed and the nodes therefore will be recognized as unknown.

 

Deleting the nodes manual as @damaggio suggested works in every case.

 

 

0 Likes
Message 8 of 13

artofillusionist
Enthusiast
Enthusiast

Hi, I have a problem.

 

 

If I delete the 4 mental ray nodes in an easy scene this way works for me.

 

miDefaultFramebuffer

mentalrayGlobals

mentalrayItemsList

miDefaultOptions

 

But I have a character with xgen hair, (with this I make never any render scene) if I delete the 4 mental ray nodes, maya 2017 still say me the same error messages. After I started 1 by 1 delete the nodes, and I notices if I delete some xgen nodes the error messages disappear. 

for example:

 

expression2

xgmr:xgen_geo1

 

If I delete "expression2" and keep "xgmr:xgen_geo1" error messages disappear.

 

If I delete "xgmr:xgen_geo1" and keep "expression2" error messages disappear.

 

This is very weird...

 

But I think this node need for xgen and I not see any mental ray connection...

 

The script editor:

 

requires -nodeType "mentalrayFramebuffer" -nodeType "mentalrayOptions" -nodeType "mentalrayGlobals" -nodeType "mentalrayItemsList" -nodeType "xgen_geo" -dataType "byteArray" "Mayatomr" "2016.0 - 3.13.1.10 ";
# mental ray for Maya 2017
// mental ray for Maya: using startup file C:/Program Files/NVIDIA Corporation/mentalray 3.14 for Maya 2017//maya.rayrc.
# mental ray for Maya: setup
# mental ray for Maya: initialize
# Error: line 1: initializePlugin function failed (Mayatomr) #
requires -nodeType "xgmPalette" -nodeType "xgmDescription" -nodeType "xgmMakeGuide" -nodeType "xgmSubdPatch" -nodeType "xgmSplineGuide" -dataType "xgmGuideData" -dataType "igmDescriptionData" "xgenToolkit" "1.0";
// Warning: file: C:\Users\ANDOR\Documents\maya\2017\prefs\filePathEditorRegistryPrefs.mel line 4: filePathEditor: Attribute 'MASH_Audio.filename' is invalid or is not designated 'usedAsFilename'. //
// Warning: file: C:\Users\ANDOR\Documents\maya\2017\prefs\filePathEditorRegistryPrefs.mel line 9: filePathEditor: Attribute 'svgToPoly.svgFilepath' is invalid or is not designated 'usedAsFilename'. //
requires "stereoCamera" "10.0";
updateRenderOverride;
// Warning: line 0: Unrecognized node type for node 'mentalrayItemsList'; preserving node information during this session. //
// Warning: line 0: Unrecognized node type for node 'mentalrayGlobals'; preserving node information during this session. //
// Warning: line 0: Unrecognized node type for node 'miDefaultOptions'; preserving node information during this session. //
// Warning: line 0: Unrecognized node type for node 'miDefaultFramebuffer'; preserving node information during this session. //
// Warning: line 0: Unrecognized node type for node 'xgmr:xgen_geo2'; preserving node information during this session. //
// Warning: line 0: Unrecognized node type for node 'xgmr:xgen_geo1'; preserving node information during this session. //
// Error: line 0: The transform '|Lady_Hair_collection|Lady_Eyebrow_description|xgmr:geoshader' has no 'migs' attribute. //
// Error: line 0: The transform '|Lady_Hair_collection|Lady_Eyebrow_description|xgmr:geoshader' has no 'migs' attribute. //
// Error: line 0: The transform '|Lady_Hair_collection|Lady_Eyelash_description|xgmr:geoshader' has no 'migs' attribute. //
// Error: line 0: The transform '|Lady_Hair_collection|Lady_Eyelash_description|xgmr:geoshader' has no 'migs' attribute. //
// Warning: line 1997: The default image may not be modified. Use the -i/image flag instead. //
import maya.app.general.mentalRayNotAvailableDialog as mrnad ; mrnad.show()
// Error: line 1: (mental ray) : couldn't initialize mental ray due to an authentication error. License expired? //
// Warning: line 0: Errors have occurred while reading this scene that may result in data loss.

 

 

Output:

 

mental ray for Maya 2017
V2Renderer : OGS WARNING: param types don't match: cosinePower 0
V2Renderer : OGS WARNING: param types don't match: cosinePower 0
V2Renderer : OGS WARNING: param types don't match: cosinePower 0
V2Renderer : OGS WARNING: param types don't match: cosinePower 0
V2Renderer : OGS WARNING: param types don't match: cosinePower 0
V2Renderer : OGS WARNING: param types don't match: cosinePower 0
V2Renderer : OGS WARNING: param types don't match: cosinePower 0
V2Renderer : OGS WARNING: param types don't match: cosinePower 0
V2Renderer : OGS WARNING: param types don't match: cosinePower 0
V2Renderer : OGS WARNING: param types don't match: cosinePower 0

 

This scene made in Maya 2016, so how could I rid off mental ray from this? (although I never used mental ray 🙂 )

0 Likes
Message 9 of 13

Anonymous
Not applicable

how can i solve this error when i am exporting fbx for unity then show this warning during exporting fbx and not export with deformears and cluster and delta mush node and warning skin definition i cant find any solution for this please help me if you know the solution.... 

0 Likes
Message 10 of 13

mspeer
Consultant
Consultant

Hi!

 

Please create a new thread (CREATE A NEW POST) for new questions.

 

You get an error message if you use any mental ray node type, also Material nodes like xgen_hair_physical.

0 Likes
Message 11 of 13

robbins98033
Participant
Participant

Was having the same issue but, there was something on my mesh that was still referencing mental ray.  Found this script that fixed it.

 

https://answers.arnoldrenderer.com/questions/1780/how-can-i-get-rid-of-the-mental-ray-nodes-in-my-ma...

 

www.robbinsdigitalart.com
Message 12 of 13

dariush
Advocate
Advocate

I did Optimize as well as searched for all mental ray nodes in the Oultiner (DAG off) and it still gave the error on opening. Saved it as a maya ascii and then in an editor removed the line (found near the top):

requires "Mayatomr" "2012.0m - 3.9.1.36 ";

Resaved as .ma, re-opened and that finally did it.

0 Likes
Message 13 of 13

damaggio
Mentor
Mentor