Mine is even more simplified, and as I said, is split into three scripts. It also relies on a certain naming convention.
But here goes. By the way, exrzip1 is the first python script I ever wrote... Ron Ganbar email: [email protected] tel: +44 (0)7968 007 309 [UK] +972 (0)54 255 9765 [Israel] url: http://ronganbar.wordpress.com/ On 13 August 2012 20:05, irwit <[email protected]> wrote: > ** > Lo > > Id love a copy to compare but I ended up writing my own this afternoon. > Its a bit destructive at the moment, could do with a list you can tick box > but at the moment it works on selected nodes. > > Anyway, heres the code, rip it to bits if you like, my python isnt great! > > *Code:* selection = nuke.selectedNodes() > readnodes = [] > > for i in selection: > if i.Class() == "Read": > print i.dependencies() > readnodes.append(i) > > for i in readnodes: > xpos = i['xpos'].value() > ypos = i['ypos'].value() > > origpath = i.knob("file").value() > folder = os.path.dirname(i.knob("file").value()) > path = folder+"/"+i.name()+'_####.exr' > startframe = i.knob("origfirst").value() > endframe = i.knob("origlast").value() > dependants = i.dependent() > > > writenode = nuke.nodes.Write( file = path, name = i.name()+"write", > first = startframe, last = endframe) > writenode.setInput(0,i) > > writenode.knob("channels").setValue("all") > writenode.knob("raw").setValue(True) > writenode.knob("file_type").setValue("exr") > writenode.knob("autocrop").setValue(True) > writenode.knob("datatype").setValue("32 bit float") > writenode.knob("compression").setValue("Zip (16 scanlines") > > > nuke.execute(writenode.name(), startframe, endframe) > > nuke.delete(writenode) > > newread = nuke.nodes.Read(file = path, first = startframe, last = > endframe, origfirst = startframe, origlast = endframe) > newread.setXpos(xpos + 100) > newread.setYpos(ypos) > > for x in dependants: > x.setInput(0,newread) > > _______________________________________________ > Nuke-users mailing list > [email protected], http://forums.thefoundry.co.uk/ > http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users >
exrzip1.py
Description: Binary data
renderMany.py
Description: Binary data
toggleZip1.py
Description: Binary data
_______________________________________________ Nuke-users mailing list [email protected], http://forums.thefoundry.co.uk/ http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users
