AWS Thinkbox Discussion Forums

draft 1.2 open colour io LUT

Hi Folks,

I’ve been adding in a few features to our quicktime maker via draft and we’re on to adding custom lut support. Andrea very kindly added me into the deadline 7 beta for Cube lut support and I’m having the following issue.

In my submission dialog I’m using :

## UI BIT HERE

scriptDialog.AddControl( "InputLabel", "LabelControl", "Custom Lut file", labelWidth, -1, "The input file(s) on which to apply the Draft script." )
    scriptDialog.AddSelectionControl( "LutBox", "MultiFileBrowserControl", "", "Cube (*.cube)", tabWidth - labelWidth - 24, -1 )

## PASSING ARG BIT HERE

if scriptDialog.GetValue( "DestColorComboBox" ) == "From Lut":
            args.append( 'LutFile="%s" ' % scriptDialog.GetValue( "LutBox" ) )

Then on the draft script side I’m using:

if ( params['outColor'] == "From Lut"):
        print ( "Trying to use a custom lut" )
        LutFile = Draft.LUT.CreateOCIOFromFile( params['LutFile'] )
        inverseLut = LutFile.Inverse()
        inverseLut.Apply( bgFrame )
        ## Apply a normal quicktime look
        QtLut = Draft.LUT.CreateGamma( qtGamma )
        QtLut.Apply( bgFrame )

Which is giving me

0: STDOUT: LutFile = Draft.LUT.CreateOCIOFromFile( params['LutFile'] ) 0: STDOUT: AttributeError: type object 'LUT' has no attribute 'CreateOCIOFromFile'

As the error. I pulled this code from a discussion on the normal draft forum but could I get a confirmation on what the attributes are to apply a lut file?

Cheers!

John

Judging from the Draft docs, it seems the function should be “CreateOCIOProcessorFromFile”, but looks like you may have already figured that out, based on your post in the Draft forums :slight_smile:

Cheers,
Jon

Privacy | Site terms | Cookie preferences