On 24/06/2013 at 09:03, xxxxxxxx wrote:
I have a plugin which triggers a render preview window using:
res = documents.RenderDocument(doc, rd, renderbmp, c4d.RENDERFLAGS_EXTERNAL)
To track progress I set an timer event (1 sec) using:
timelap = 1000
And in Message I receive a trigger every second.
def Message(self, msg, result) :
if (msg.GetId() == c4d.BFM_TIMER_MESSAGE) :
doc = documents.GetActiveDocument()
print "Time: ", time.time()
So far so good.
However, during Render I do not get triggers through Message.
Is Render not done in another thread?
How to get Messages / Events, even when rendering?
On 25/06/2013 at 13:00, xxxxxxxx wrote:
Ok, the principles are now clear to me.
I got the answer by searching on different keywords. Mainly threading.
Most of the information I got from this post: https://plugincafe.maxon.net/topic/7090/8038_exception-with-thread-rendering&KW=c4dthread&PID=33403#33403