I render an animation using a Python script inside of the Blender 2.82a text editor:
import bpy
import os
import sys
import datetime
a = datetime.datetime.now()
bpy.ops.render.render(animation=True)
b = datetime.datetime.now()
print(f"Render Time: {b-a}")
print()
The console outputs information for every frame:
Append frame 0
Time: 00:00.09 (Saving: 00:00.00)
Append frame 1
Time: 00:00.07 (Saving: 00:00.02)
...
Append frame 60
Time: 00:00.04 (Saving: 00:00.00)
Render Time: 0:00:03.429938
I'd like to suppress the "Append frame...." lines (but not suppress any other console messages like print(), etc.).
This question has been asked a lot and I have tried all the various answers but all attempts at suppressing the Blender console's stdout have not been able to suppress this (Render Frame info) part of the output (although I can suppress other things like print() statements. etc.).
Thank you
bpy.ops.render.render(animation=True)not appear on stdout or just the "Append frame" line? – Robert Gützkow Apr 23 '20 at 19:31