On 07/11/2016 at 17:15, xxxxxxxx wrote:
I have a desire to use Distributed Rendering of an image sequence using the existing Team Render setup.
I attempted to setup something using Automator on OS X, but it is a little sporadic in success.
What I'm trying to do:
Have a python script (or plug) that reads the c4d.RDATA_FRAMEFROM and c4d.RDATA_FRAMETO.
I'd then want to have it place the current time to the start frame, and kick off a Team Render for only that frame. When that frame is finished, it should increment up a step and repeat the process until all the frames in the frame range have been rendered.
This will allow me to do image sequence renders using Team Render's great Distributed Render buckets.
My script is getting hung up on the c4d.RDATA_FRAMEFROM
That specific part of my code is:
doc = c4d.documents.GetActiveDocument();
rd = doc.GetActiveRenderData();
startFrame = rd[c4d.RDATA_FRAMEFROM];
print "START FRAME: %s" % startFrame;
When I execut it I get this:
START FRAME: <c4d.BaseTime object at 0x124b25120> (and that hex code changes each time I run it)
What I need is a frame integer.
Or perhaps one of you awesome python guys can point me in a smarter direction altogether?
Thanks in advance for any help you can provide
Cheers