Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
Hi @m_adam thanks for the response. I did go through this but it doesn't seem to work for the following reasons:
Maybe I am looking at the wrong direction? Maybe I should be looking at Octane documentation and how to grab info from its terminal?
Apologies for the somewhat silly assumptions and questions - I am very new to all of this!
Thanks in advance
Hi @m_adam ,
Thanks for reaching out - I tried to look through the linked document but I couldn't seem to output any render information. Below is the python code I am using - I am essentially making a thread to check while it is still rendering, and the moment it's complete it will continue the script. I would now like to make a callback for everytime a frame is done rendering, and how long it took to render it, etc
import c4d import os,time,_thread, datetime def isRendering(time,os) : RenderData = doc.GetActiveRenderData() FrameStart = RenderData[c4d.RDATA_FRAMEFROM].GetFrame(doc.GetFps()) FrameEnd = RenderData[c4d.RDATA_FRAMETO].GetFrame(doc.GetFps()) while c4d.CheckIsRunning ( c4d.CHECKISRUNNING_EXTERNALRENDERING ) : #print(c4d.RENDERRESULT_OK) time.sleep(1) print("render complete.") def main() : c4d.CallCommand(12099) #Render To PV if c4d.CheckIsRunning ( c4d.CHECKISRUNNING_EXTERNALRENDERING ) : _thread.start_new(isRendering,(time,os)) if __name__=='__main__': main()
Hello,
I am trying to write a script to be able to read the progress of a render. I would like to be able to output the frame number that the current render is on. I just need to be able to output it into the console - the rest I can figure out.
I basically already have code that listens to if the render is starting and complete - now I would like to have interval console outputs whenever a new frame is being rendered.
I looked into the python syntaxes but I couldn't get anything useful! Anyone know how to solve this??
Thanks in advance!