Quantcast
Channel: Rhino Developer - McNeel Forum
Viewing all articles
Browse latest Browse all 8565

Python script called as a process (RedirectStandardOutput = true): Progress bar printed on multiple lines

$
0
0

@samuelduchesne wrote:

The Rhino Plugin I'm developing calls up a python script using system.Diagnostics.process(). I'm catching standard outputs and writing them to the rhino command using RhicoApp.WriteLine(event.Data). Everything worked fine until I decided to add a progress bar inside one of the script's iterative loops (it is a good feedback for users). Obviously, since I'm redirecting outputs with WriteLine(), at each iteration, the progress bar's status gets printed on a new line, which is really not ideal!

What would be the best approach to call that script and have it's outputs printed as it would in the console?

Thanks!

P.S.: I'm calling the python script inside a packaged python interpreter that contains libraries needed for the script to work. This is for portability and distribution; I am not using the native python scripting tools of Rhino.

Posts: 3

Participants: 3

Read full topic


Viewing all articles
Browse latest Browse all 8565

Trending Articles