New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OCIO CDL Transform bug [NUKE] not applying via cmd line #277
Comments
Thanks for the report. Adding @slooper |
cheers. robert nederhorst | vfx | http://throb.net | 3106210103 On Wed, Jul 11, 2012 at 11:22 AM, Jeremy Selan <
|
here is the full python script I use for this: "c:\Program Files\Nuke6.3v7\Nuke6.3.exe" -t z:\job\after_earth\common\nuke\python\shot_to_jpg.py Z:/job/after_earth/shots/ra/ra035_010/plates/images/RA035_010_BS1_4K_V02/4096x2160/RA035_010_BS1_4K_V02.%04d.exr 1001 1003 |
I can confirm this issue using 6.3v8 and the latest OCIO build. The error I get is this: [11:33.01] ERROR: OCIOCDLTransform1: Error loading CDL xml. Source file not specified. The script works fine interactively. |
ok I did more digging on this... however, if i load that script and immediately save it from the gui i get this : the actual reading of the file never happens. there is some kind of manual process that needs to happen and that manual process needs to be removed so that we can access this data easily with nerd badass-ness. the workaround would be some py code that helps me read the xml data and passes it to the nuke node. that would get me rolling on my pipeline now while the nodes are fixed for future software revs |
In the source code, there's a function loadCDLFromFile() that doesn't Either way, I'm suspicious of the various places that loadCDLFromFile is -sean On Wed, Jul 11, 2012 at 5:48 PM, Robert Nederhorst <
|
We are also hitting this bug (no attribute 'PythonPanel') when rendering on the command-line (i.e. render farm). Any work around for this? |
The nuke devs have also not found this bug. I am prepping a script to send robert nederhorst | vfx | http://throb.net | 3106210103 On Mon, Oct 15, 2012 at 1:23 PM, iangodin notifications@github.com wrote:
|
nukescripts.PythonPanel isn't defined until menu.py time, so which causes errors if ocionuke.cdl is imported in a non-GUI session Fixes part of AcademySoftwareFoundation#277
There's two problems here:
Rather late response, but: the Not tested, but something like this should be close:
|
core: Better error when loading bad cccid Adds single-quotes around cccid, to be consistent with other errors, and avoid confusion when loading a blank cccid: The specified cccid '' could not be found in file '/tmp/test.ccc'. nuke: delay import of nukescripts in ocionuke.cdl nukescripts.PythonPanel isn't defined until menu.py time, so which causes errors if ocionuke.cdl is imported in a non-GUI session Fixes part of AcademySoftwareFoundation#277
core: Better error when loading bad cccid Adds single-quotes around cccid, to be consistent with other errors, and avoid confusion when loading a blank cccid: The specified cccid '' could not be found in file '/tmp/test.ccc'. nuke: delay import of nukescripts in ocionuke.cdl nukescripts.PythonPanel isn't defined until menu.py time, so which causes errors if ocionuke.cdl is imported in a non-GUI session Fixes part of AcademySoftwareFoundation#277
core: Better error when loading bad cccid Adds single-quotes around cccid, to be consistent with other errors, and avoid confusion when loading a blank cccid: The specified cccid '' could not be found in file '/tmp/test.ccc'. nuke: delay import of nukescripts in ocionuke.cdl nukescripts.PythonPanel isn't defined until menu.py time, so which causes errors if ocionuke.cdl is imported in a non-GUI session Fixes part of AcademySoftwareFoundation#277
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 script no problem.
However, when I try to create all this procedurally via python, the ccc does not take.
example :
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.
additionally, when i set the
cdl['read_from_file'].setValue(True)
i get this error on stdout :
Traceback (most recent call last):
File "", line 1, in
File "c:/Program Files/Nuke6.3v7/plugins\ocionuke\cdl.py", line 104, in
class SelectCCCIDPanel(nukescripts.PythonPanel):
AttributeError: 'module' object has no attribute 'PythonPanel'
Please advise to the best way of dealing with this issue.
The text was updated successfully, but these errors were encountered: