import sys
sys.__stdout__.write("print to console\n")

You need to use the underscored version because Maya has overridden
the standard version so it prints to the script editor.

Keir


On Aug 23, 9:56 am, haggi <[email protected]> wrote:
> In the docs I could not find (yet) how I can print into the output
> window from python.
> Of course I could do a
>
> mel.trace("print to console")
>
> but thats not the python way.

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

Reply via email to