Unfortunately I don’t have an answer as far as the problem is concerned, but I do have a workaround.
We’re using CDL transforms from CCC files on a current show as well, but since ours are malformed (missing some top-level XML keys), Nuke is unable to parse them properly. Instead, I’ve just got a function to manually parse them and apply the data programmatically using xml.etree.ElementTree. It’s pretty trivial to do as an automated process, so that’s where I would start if you need to be sure about things working. The other things that come immediately to mind as being worth trying are to see if using cdl['file'].fromUserText() instead of .setValue() triggers something, or to try manually calling cdl.forceValidate() before rendering (after setting everything up). I haven’t been in this exact situation though, so I can’t definitively tell you that one will work. -Nathan From: throb Sent: Tuesday, July 10, 2012 1:16 PM To: [email protected] Subject: [Nuke-python] OpenColorIO (OCIOCDLTransform) via python I am working on our output processing and we have a 3dl for display and a ccc per shot. I can use the ccc in the gui no problem. However, when I try to create all this procedurally via python, the ccc does not take. example : Code: import nuke check = nuke.nodes.CheckerBoard() cdl = nuke.nodes.OCIOCDLTransform() cdl['read_from_file'].setValue(True) cdl['file'].setValue(cdlFile) write = nuke.nodes.Write(file = outputFile) write['file_type'].setValue('jpeg') write['colorspace'].setValue('sRGB') write['_jpeg_sub_sampling'].setValue('4:4:4') write['_jpeg_quality'].setValue('1') write.setInput(0,cdl) cdl.setInput(0,check) nuke.execute(write,1,1) I can load this script into nuke and yes the ccc is transforming the image properly. However, via python only (using nuke -t) this does not apply the ccc. Anyone have any success or ideas to help me out with this? Thanks of course in advance! Rob -------------------------------------------------------------------------------- _______________________________________________ Nuke-python mailing list [email protected], http://forums.thefoundry.co.uk/ http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
_______________________________________________ Nuke-python mailing list [email protected], http://forums.thefoundry.co.uk/ http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
