onModelChange3dc error

onModelChange3dc error

johnerikson_espiritu
Explorer Explorer
6,672 Views
6 Replies
Message 1 of 7

onModelChange3dc error

johnerikson_espiritu
Explorer
Explorer

Currently using maya 2018.4 in the studio. We keep getting this error code:

 

// Error: line 1: Cannot find procedure "onModelChange3dc". // 

 

It happens whenever the viewport changes, isolate selection, closing a file, opening a file, etc. I can't seem to even find the script file that even contains a trace of this code.

0 Likes
Accepted solutions (1)
6,673 Views
6 Replies
Replies (6)
Message 2 of 7

mspeer
Consultant
Consultant

Hi!

 

Try a reset of your preferences.
Rename the folder prefs in folder 2018 to something like prefs_backup, or to reset everything, the folder 2018 to 2018_backup (or even the maya folder to maya_backup). Maya creates new folders (don't copy preferences from previous Maya versions). Detailed at:
https://knowledge.autodesk.com/support/maya/troubleshooting/caas/sfdcarticles/sfdcarticles/Reset-May...

0 Likes
Message 3 of 7

johnerikson_espiritu
Explorer
Explorer

Hi mspeer!

 

I've actually tried resetting preferences several times already. But now I think the error can be stemming from a maya file that the error exists in. So even when i did reset my preferences, once the file is reopened the error just occurs again. So you're right resetting my preference could actually be fixing it but until I find out which person's maya preferences are broken eventually it'll occur again. : /

0 Likes
Message 4 of 7

mspeer
Consultant
Consultant

Hi!

 

This might be a problem of a custom script or a third party plug-in which can also be part of the content of a scene-file.

0 Likes
Message 5 of 7

tony.su
Autodesk Support
Autodesk Support

I think it's 3rd-party plug-in issue.

// Error: line 1: Cannot find procedure "onModelChange3dc". // 

It means the first line in some file could not be load in Maya. Could you open script editor, find all error massage?



Tony Su
Product Support
0 Likes
Message 6 of 7

Anonymous
Not applicable
Accepted solution

I get the same repeated error message in Maya 2018.5 with some scenes (but not others).  

 

The problem is found in a uiConfigurationScriptNode described in the file, which affects the UI once the scene is loaded.  The uiConfigurationScriptNode has a string attribute storing a long script which includes "onModelChange3dc" in a number of flags.  

 

I'm guessing the creator of the file might have been using a newer version of Maya or maybe some third-party tools which I don't have.  

 

My own solution was to edit the .ma file in a text editor, removing all the command flags including "onModelChange3dc" in each case, then reopening maya, and reloading the file.  

 

Not sure if there's an easier solution, but that worked for me.  

Message 7 of 7

johnerikson_espiritu
Explorer
Explorer

Hi!

 

Thanks for the reply. Yeah we concluded the same thing too as most of the files we were getting those errors from were from the outsourcers. But thanks for the solution of just manually deleting the problem in the mayaAscii files.

0 Likes