Hello guys,
how can I find out if a document is rendering? I tried the following code with mixed results.
What works for me is the following.
All of these methods return True
if their respective task runs.
c4d.documents.GetBatchRender()
print(batch.IsRendering())
print(c4d.CheckIsRunning(c4d.CHECKISRUNNING_EXTERNALRENDERING))
print(c4d.modules.takesystem.IsTakeRenderRunning())
What does not work are the following methods which simply return always 0
print(c4d.CheckIsRunning(c4d.CHECKISRUNNING_EDITORRENDERING))
print(c4d.CheckIsRunning(c4d.CHECKISRUNNING_INTERACTIVERENDERING)
I'm using all of this inside def main()
of a python tag if that helps.
Cheers,
Sebastian