When 3D viewport is in render mode, ie SpaceView3D.viewport_shade = 'RENDERED'
Can the render time be gleaned or estimated using python?
1 Answer
$\begingroup$
$\endgroup$
As far as I know this is implemented in C and no accessible with the python API.
However you can probably create a handler for scene_update which:
- iterates over all areas and check if area type is 3d view
- if so check if the view type is rendered
- and if it is start a timer and use some approximation algorithm to record the time
- however if the view type is not rendered or there are no 3d views and the timer is running, stop the timer.
Read more: Render Time Estimation Addon