Showing error line numbers

If you have problems executing a long script because of an error, turn on script line numbers so you can find the error more easily.

To display the line numbers of erring statements, select Command > Show Line Numbers from the Script Editor.

Note:

In MEL, the whole input is parsed despite the syntax errors. However, Python will stop at the first occurrence of a syntax error.

To turn line numbers off, select Command > Show Line Numbers again from the Script Editor menu.

Maya saves the Show Line Numbers setting for future work sessions. If you turn on line numbers, they appear in the Script Editor the next time you run Maya.