I think it would be better to do a pre-render script instead. Just query the destination dir, see what frames are there and then change the frame range in the driver.
Sean Lewkiw CG Supervisor Machine FX - Cinesite MTL
Not a bad idea at all, Thanks a lot! Love the out of the box (my box) thinking. Problem will be the Frame range list. I know hscript ‘render’ command has a ‘consolidade list’ arg. which i never played with. So it seems the time has come to check it out
I am not accepting the fact you cant just skip a frame tho.. lol. There must be a way. I mean ultimately write ur won ROP then. lol
Ill try ur idea for sure and come back with it. Cheers!
I had to actually do just this today, (render only missing frames). This still needs a bit of work to make it less hard-codey, but you can source this in a python shell and it renders only missing frames:
importosimporthoudirn="/path/to/dir"name="logo"ROP="/out/logo"defdoit(start,end,ROP=ROP):whilestart<=end:filename="%s.%s.%s"%(name,start,"exr")file=os.path.join(dirn,filename)ifos.path.exists(file):print"x Skip %s"%fileelse:print"o Render %s"%filen=hou.node(ROP)# switch to current frame modep=n.parm("trange")p.set(0)# turn off "non blocking current frame rendering" for Redshifttry:p=n.parm("RS_nonBlockingRendering")p.set(0)except:pass# move to current framehou.setFrame(start)# press buttonbutton="%s/%s"%(ROP,"execute")hou.parm(button).pressButton()start=start+1
Sean Lewkiw CG Supervisor Machine FX - Cinesite MTL
That's inspiring stuff, thanks very much! I will still need to find a way to skip frames on a per-frame basis. The idea is to cache using as many machines avail. as possible. So all frames are missing theoretically before i press ‘the button’. I just need to write a 1k file pre-frame, while houdini builds the cache of that frame on a given machine. (Sidefx could have done this already if im honest - request?) Since my first post above, I couldnt find the time to research this topic again. But I will as soon as im in front of the pc next week. Your code tells me Im better off writing my own ‘File cache ROP’. And thats exciting and frustrating at the same time. Cheers!