Maya Output Window in cmd terminal.

975 views
Skip to first unread message

Macbeth R.

unread,
Aug 11, 2015, 12:48:53 PM8/11/15
to Python Programming for Autodesk Maya
In windows, is there a way to open Maya via the terminal (cmd), and get all the output to it?, like in OSX and Linux behavior. Without the need of the secondary output white window.

Thanks for your tips!

Dillon Bailey

unread,
Aug 14, 2015, 12:09:37 PM8/14/15
to python_in...@googlegroups.com
Output window is the functional equivalent of this. Is this not enough?

On Tue, Aug 11, 2015 at 12:48 PM, Macbeth R. <bers...@gmail.com> wrote:
In windows, is there a way to open Maya via the terminal (cmd), and get all the output to it?, like in OSX and Linux behavior. Without the need of the secondary output white window.

Thanks for your tips!

--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_m...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/1cbb1a2d-cc5b-42eb-a4d3-f96bd523e012%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Marcus Ottosson

unread,
Aug 14, 2015, 12:18:38 PM8/14/15
to python_in...@googlegroups.com
As far as I know, you can't do this.

The terminal only pops up on Windows, because Maya hasn't been implemented in such a way that it will output to the cmd.exe. That window is more or less a "hack" around this, because functionally the cmd.exe is obviously capable of printing standard output from a process, generally speaking.

It's been that way since forever, so if you find a way, I think you may be eligible for award of sorts.


For more options, visit https://groups.google.com/d/optout.



--
Marcus Ottosson
konstr...@gmail.com

Justin Israel

unread,
Aug 14, 2015, 6:09:28 PM8/14/15
to python_in...@googlegroups.com

What about using the "-log <filename>" Maya flag, starting it in the background, and then using some windows equivalent of the Unix "tail" command to output the log?


Macbeth R.

unread,
Aug 17, 2015, 9:36:23 AM8/17/15
to Python Programming for Autodesk Maya
I' m actually doing it as Justin Israel said.. 
maya -hideConsole -log mayaFile.log 

and tailing the file with  
Get-Content mayaFile.log –Wait

I can probably make and alias for this, I just thought there was a more standard way to do it, this is kind of a hack (or is the same thing than the output white window), 
for example in linux you can attach the output of any already running process to any current window with gdb -p PID /bin/cat

I am crazy or there was an old maya flag for debug..   maya -d
which did this in the past?

Greetings!


On Saturday, August 15, 2015 at 12:09:28 AM UTC+2, Justin Israel wrote:

What about using the "-log <filename>" Maya flag, starting it in the background, and then using some windows equivalent of the Unix "tail" command to output the log?


On Sat, 15 Aug 2015 4:18 AM Marcus Ottosson <konstr...@gmail.com> wrote:
As far as I know, you can't do this.

The terminal only pops up on Windows, because Maya hasn't been implemented in such a way that it will output to the cmd.exe. That window is more or less a "hack" around this, because functionally the cmd.exe is obviously capable of printing standard output from a process, generally speaking.

It's been that way since forever, so if you find a way, I think you may be eligible for award of sorts.
On 14 August 2015 at 17:09, Dillon Bailey <shd...@gmail.com> wrote:
Output window is the functional equivalent of this. Is this not enough?
On Tue, Aug 11, 2015 at 12:48 PM, Macbeth R. <bers...@gmail.com> wrote:
In windows, is there a way to open Maya via the terminal (cmd), and get all the output to it?, like in OSX and Linux behavior. Without the need of the secondary output white window.

Thanks for your tips!

--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_maya+unsub...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_maya+unsub...@googlegroups.com.
--
Marcus Ottosson
konstr...@gmail.com

--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_maya+unsub...@googlegroups.com.

Marcus Ottosson

unread,
Aug 17, 2015, 10:16:47 AM8/17/15
to python_in...@googlegroups.com

As promised:

      {}
     /__\
   /|    |\
  (_|    |_)
     \  /
      )(
    _|__|_
  _|______|_
 |__________|

Seriously though, this works great. The only thing remaining is aborting once Maya has exited.

Thanks for sharing!


On 17 August 2015 at 14:36, Macbeth R. <bers...@gmail.com> wrote:
I' m actually doing it as Justin Israel said.. 
maya -hideConsole -log mayaFile.log 

and tailing the file with  
Get-Content mayaFile.log –Wait

I can probably make and alias for this, I just thought there was a more standard way to do it, this is kind of a hack (or is the same thing than the output white window), 
for example in linux you can attach the output of any already running process to any current window with gdb -p PID /bin/cat

I am crazy or there was an old maya flag for debug..   maya -d
which did this in the past?

Greetings!


On Saturday, August 15, 2015 at 12:09:28 AM UTC+2, Justin Israel wrote:

What about using the "-log <filename>" Maya flag, starting it in the background, and then using some windows equivalent of the Unix "tail" command to output the log?


On Sat, 15 Aug 2015 4:18 AM Marcus Ottosson <konstr...@gmail.com> wrote:
As far as I know, you can't do this.

The terminal only pops up on Windows, because Maya hasn't been implemented in such a way that it will output to the cmd.exe. That window is more or less a "hack" around this, because functionally the cmd.exe is obviously capable of printing standard output from a process, generally speaking.

It's been that way since forever, so if you find a way, I think you may be eligible for award of sorts.
On 14 August 2015 at 17:09, Dillon Bailey <shd...@gmail.com> wrote:
Output window is the functional equivalent of this. Is this not enough?
On Tue, Aug 11, 2015 at 12:48 PM, Macbeth R. <bers...@gmail.com> wrote:
In windows, is there a way to open Maya via the terminal (cmd), and get all the output to it?, like in OSX and Linux behavior. Without the need of the secondary output white window.

Thanks for your tips!

--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_m...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_m...@googlegroups.com.



--
Marcus Ottosson
konstr...@gmail.com

--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_m...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_m...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/26a11305-65c1-4239-9b51-f9a6a7936926%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
Marcus Ottosson
konstr...@gmail.com

Reply all
Reply to author
Forward
0 new messages