>
>
> IDLE will print:
>
>
> Traceback (most recent call last): File "<pyshell#5>", line 2, in <module>
> raise SelectionError('You selected too many objects') SelectionError: You
> selected too many objects
>
>
> But Maya will print:
>
>
> # Error: SelectionError: file <maya console> line 2: #
>
>
> *Am I missing something really basic here, or can Maya seriously not print
> custom exception messages to the console?*
>


Are you running Maya 2011?  If so make sure that *Show Stack Trace* is
enabled in the *Script Editor*.  It is under the *History *menu.

Also you could try printing the error the maya way:
import maya.OpenMaya
OpenMaya.MGlobal.displayError("String")

good luck.

-- 
http://groups.google.com/group/python_inside_maya

Reply via email to