Notifications
Clear all

[Closed] How write to stdout and stderr

I found only dosCommand(“echo hello”)

9 Replies

mxs or sdk ?

maxscript, of course

1 Reply
(@denist)
Joined: 1 year ago

Posts: 0

explain what you want to do.

Python application runs various software (max, maya etc) with scripts and catches stdin и stdout. It collects information and errors (vray errors, 3dmax version, plugins list, texture list, scene information). I know that 3ds max can be run in server mode (using a named pipe), but I didn’t find documentation, so I use a common solution for all applications at once.

does it mean that you want to write some data from max to by something else (Python application for example) opened process std output? or you only want to write into the command prompt?

What do you mean by “command prompt” “: windows console, max console, something else?
I want something like that:
“3dsmax.exe” -mxs “dosCommand(“echo hello”)” 1>stdout.log 2>stderr.log
but without dosCommand… maybe

1 Reply
(@denist)
Joined: 1 year ago

Posts: 0

what process you want use? “cmd” or anything else? if you are ready to use dosCommand we talks about “cmd” process.

1 Reply
(@denist)
Joined: 1 year ago

Posts: 0

that’s why i want to know what exactly needed.