script syntax error, no line listed, in Maya 2020 but not 2018

script syntax error, no line listed, in Maya 2020 but not 2018

Anonymous
Not applicable
789 Views
2 Replies
Message 1 of 3

script syntax error, no line listed, in Maya 2020 but not 2018

Anonymous
Not applicable

I've been working on some mel scripts, and Maya2020 has started saying "syntax error" whenever I try to use the 'resource' command to re-read my script changes.  It doesn't show a line for the error or any other information. 

If I just restart Maya2020, the script works. 

 

In Maya 2018, I don't get the errors when using 'resource'.  Anyone know what could be the problem in 2020? 

790 Views
2 Replies
Replies (2)
Message 2 of 3

jmreinhart
Advisor
Advisor

I don't have access to maya 2018 right now but looking through the documentation there doesn't seem to be a "resource" function in MEL. Is it possible that you are thinking of rehash?

 

https://download.autodesk.com/us/maya/2009help/Commands/rehash.html 

0 Likes
Message 3 of 3

Anonymous
Not applicable

Oh sorry, I mean "source", not "resource". 

0 Likes