Skip to content

OCIO CDL Transform bug [NUKE] not applying via cmd line #277

@throb

Description

@throb

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    To Closetemp label to help triage closable issues for review

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions