Is there way to suppress (and possibly process) console output when rendering from script?
I have batch script to set up model material etc. via CLI and I want to show overall progress of the job (for example
"Image2.png done" etc...).
I want to get rid of these lines:
Fra:5 Mem:115.16M (0.00M, Peak 213.60M) | Time:17:15.52 | Remaining:07:30.02 | Mem:26.82M, Peak:26.82M | Scene, Render-Alpha | Path Tracing Tile 45/64, Sample 1079/2000
to make output more readable. Is there any way to do it?
It would be nice to display rendering progress without flooding console (for example as
"50% done", but this would be just finishing touch :D) - I would be glad to just remove console output completely.
I tried redirecting output via:
sys.stdout = io.StringIO()
and some other examples using contextlib.contextmanager but neither did work (console was still flooded with progress messages)
I would like to do it directly in python - I am on Windows so using grep awk or other tools is complicated. Plus it would be nice to control script output from one place.