import Gaffer import GafferImage import GafferOSL import GafferScene import IECore import imath Gaffer.Metadata.registerValue( parent, "serialiser:milestoneVersion", 1, persistent=False ) Gaffer.Metadata.registerValue( parent, "serialiser:majorVersion", 3, persistent=False ) Gaffer.Metadata.registerValue( parent, "serialiser:minorVersion", 1, persistent=False ) Gaffer.Metadata.registerValue( parent, "serialiser:patchVersion", 0, persistent=False ) __children = {} parent["variables"].addChild( Gaffer.NameValuePlug( "image:catalogue:port", Gaffer.IntPlug( "value", defaultValue = 0, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ), "imageCataloguePort", Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic ) ) parent["variables"].addChild( Gaffer.NameValuePlug( "project:name", Gaffer.StringPlug( "value", defaultValue = 'default', flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ), "projectName", Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic ) ) parent["variables"].addChild( Gaffer.NameValuePlug( "project:rootDirectory", Gaffer.StringPlug( "value", defaultValue = '$HOME/gaffer/projects/${project:name}', flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ), "projectRootDirectory", Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic ) ) __children["openColorIO"] = GafferImage.OpenColorIOConfigPlug( "openColorIO", flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) parent.addChild( __children["openColorIO"] ) __children["defaultFormat"] = GafferImage.FormatPlug( "defaultFormat", defaultValue = GafferImage.Format( 1920, 1080, 1.000 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) parent.addChild( __children["defaultFormat"] ) __children["Expression"] = Gaffer.Expression( "Expression" ) parent.addChild( __children["Expression"] ) __children["Expression"]["__in"].addChild( Gaffer.V2iPlug( "p0", defaultValue = imath.V2i( 6, 3 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["Expression"]["__in"].addChild( Gaffer.IntPlug( "p1", defaultValue = 0, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["Expression"]["__out"].addChild( Gaffer.FloatPlug( "p0", direction = Gaffer.Plug.Direction.Out, defaultValue = 0.0, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["Expression"].addChild( Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["inLayer"] = GafferOSL.OSLCode( "inLayer" ) parent.addChild( __children["inLayer"] ) __children["inLayer"]["out"].addChild( Gaffer.Color3fPlug( "out", direction = Gaffer.Plug.Direction.Out, defaultValue = imath.Color3f( 0, 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["inLayer"].addChild( Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["OSLImage"] = GafferOSL.OSLImage( "OSLImage" ) parent.addChild( __children["OSLImage"] ) __children["OSLImage"]["channels"].addChild( Gaffer.NameValuePlug( "", Gaffer.Color3fPlug( "value", defaultValue = imath.Color3f( 1, 1, 1 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ), True, "channel", Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic ) ) __children["OSLImage"].addChild( Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["Backdrop"] = Gaffer.Backdrop( "Backdrop" ) parent.addChild( __children["Backdrop"] ) __children["Backdrop"].addChild( Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["Backdrop"].addChild( Gaffer.Box2fPlug( "__uiBound", defaultValue = imath.Box2f( imath.V2f( -10, -10 ), imath.V2f( 10, 10 ) ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["Dot"] = Gaffer.Dot( "Dot" ) parent.addChild( __children["Dot"] ) __children["Dot"].setup( GafferImage.ImagePlug( "in", ) ) __children["Dot"].addChild( Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["Switch1"] = Gaffer.Switch( "Switch1" ) parent.addChild( __children["Switch1"] ) __children["Switch1"].setup( Gaffer.Color3fPlug( "in", defaultValue = imath.Color3f( 0, 0, 0 ), ) ) __children["Switch1"]["in"].addChild( Gaffer.Color3fPlug( "in1", defaultValue = imath.Color3f( 0, 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["Switch1"]["in"].addChild( Gaffer.Color3fPlug( "in2", defaultValue = imath.Color3f( 0, 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["Switch1"].addChild( Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["oslGamutConvert"] = Gaffer.Box( "oslGamutConvert" ) parent.addChild( __children["oslGamutConvert"] ) __children["oslGamutConvert"].addChild( Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["oslGamutConvert"].addChild( GafferOSL.OSLCode( "ColorMatrix" ) ) __children["oslGamutConvert"]["ColorMatrix"]["parameters"].addChild( Gaffer.V3fPlug( "m0", defaultValue = imath.V3f( 0, 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, interpretation = IECore.GeometricData.Interpretation.Vector ) ) __children["oslGamutConvert"]["ColorMatrix"]["parameters"].addChild( Gaffer.V3fPlug( "m1", defaultValue = imath.V3f( 0, 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, interpretation = IECore.GeometricData.Interpretation.Vector ) ) __children["oslGamutConvert"]["ColorMatrix"]["parameters"].addChild( Gaffer.V3fPlug( "m2", defaultValue = imath.V3f( 0, 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, interpretation = IECore.GeometricData.Interpretation.Vector ) ) __children["oslGamutConvert"]["ColorMatrix"]["parameters"].addChild( Gaffer.Color3fPlug( "in", defaultValue = imath.Color3f( 0, 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["oslGamutConvert"]["ColorMatrix"]["out"].addChild( Gaffer.Color3fPlug( "out", direction = Gaffer.Plug.Direction.Out, defaultValue = imath.Color3f( 0, 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["oslGamutConvert"]["ColorMatrix"].addChild( Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["oslGamutConvert"].addChild( Gaffer.Expression( "Expression4" ) ) __children["oslGamutConvert"]["Expression4"]["__in"].addChild( Gaffer.StringPlug( "p0", defaultValue = 'XYZ', flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["oslGamutConvert"]["Expression4"]["__in"].addChild( Gaffer.StringPlug( "p1", defaultValue = 'XYZ', flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["oslGamutConvert"]["Expression4"]["__out"].addChild( Gaffer.V3fPlug( "p0", direction = Gaffer.Plug.Direction.Out, defaultValue = imath.V3f( 0, 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, interpretation = IECore.GeometricData.Interpretation.Vector ) ) __children["oslGamutConvert"]["Expression4"]["__out"].addChild( Gaffer.V3fPlug( "p1", direction = Gaffer.Plug.Direction.Out, defaultValue = imath.V3f( 0, 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, interpretation = IECore.GeometricData.Interpretation.Vector ) ) __children["oslGamutConvert"]["Expression4"]["__out"].addChild( Gaffer.V3fPlug( "p2", direction = Gaffer.Plug.Direction.Out, defaultValue = imath.V3f( 0, 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, interpretation = IECore.GeometricData.Interpretation.Vector ) ) __children["oslGamutConvert"]["Expression4"].addChild( Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["oslGamutConvert"].addChild( Gaffer.BoxIn( "BoxIn" ) ) __children["oslGamutConvert"]["BoxIn"].setup( Gaffer.Color3fPlug( "out", defaultValue = imath.Color3f( 0, 0, 0 ), ) ) __children["oslGamutConvert"]["BoxIn"].addChild( Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["oslGamutConvert"].addChild( Gaffer.Color3fPlug( "in", defaultValue = imath.Color3f( 0, 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["oslGamutConvert"].addChild( Gaffer.BoxOut( "BoxOut" ) ) __children["oslGamutConvert"]["BoxOut"].setup( Gaffer.Color3fPlug( "in", defaultValue = imath.Color3f( 0, 0, 0 ), ) ) __children["oslGamutConvert"]["BoxOut"].addChild( Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["oslGamutConvert"].addChild( Gaffer.Color3fPlug( "out", direction = Gaffer.Plug.Direction.Out, defaultValue = imath.Color3f( 0, 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["oslGamutConvert"].addChild( Gaffer.StringPlug( "gamutIn", defaultValue = 'XYZ', flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["oslGamutConvert"].addChild( Gaffer.StringPlug( "gamutOut", defaultValue = 'XYZ', flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["oslGamutConvert"].addChild( Gaffer.BoolPlug( "enabled", defaultValue = True, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["Hellwig2022_JMh1"] = Gaffer.Box( "Hellwig2022_JMh1" ) parent.addChild( __children["Hellwig2022_JMh1"] ) __children["Hellwig2022_JMh1"].addChild( Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["Hellwig2022_JMh1"].addChild( Gaffer.BoxIn( "BoxIn" ) ) __children["Hellwig2022_JMh1"]["BoxIn"].setup( Gaffer.Color3fPlug( "out", defaultValue = imath.Color3f( 0, 0, 0 ), ) ) __children["Hellwig2022_JMh1"]["BoxIn"].addChild( Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["Hellwig2022_JMh1"].addChild( Gaffer.BoxOut( "BoxOut" ) ) __children["Hellwig2022_JMh1"]["BoxOut"].setup( Gaffer.Color3fPlug( "in", defaultValue = imath.Color3f( 0, 0, 0 ), ) ) __children["Hellwig2022_JMh1"]["BoxOut"].addChild( Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["Hellwig2022_JMh1"].addChild( Gaffer.Color3fPlug( "in", defaultValue = imath.Color3f( 0, 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["Hellwig2022_JMh1"].addChild( Gaffer.Color3fPlug( "out", direction = Gaffer.Plug.Direction.Out, defaultValue = imath.Color3f( 0, 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["Hellwig2022_JMh1"].addChild( Gaffer.BoolPlug( "enabled", defaultValue = True, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["Hellwig2022_JMh1"].addChild( GafferOSL.OSLCode( "code" ) ) __children["Hellwig2022_JMh1"]["code"]["parameters"].addChild( Gaffer.Color3fPlug( "XYZ", defaultValue = imath.Color3f( 0, 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["Hellwig2022_JMh1"]["code"]["parameters"].addChild( Gaffer.IntPlug( "compressMode", defaultValue = 0, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["Hellwig2022_JMh1"]["code"]["parameters"].addChild( Gaffer.IntPlug( "viewingConditions", defaultValue = 0, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["Hellwig2022_JMh1"]["code"]["parameters"].addChild( Gaffer.IntPlug( "invert", defaultValue = 0, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["Hellwig2022_JMh1"]["code"]["parameters"].addChild( Gaffer.IntPlug( "whitepoint", defaultValue = 0, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["Hellwig2022_JMh1"]["code"]["out"].addChild( Gaffer.Color3fPlug( "out", direction = Gaffer.Plug.Direction.Out, defaultValue = imath.Color3f( 0, 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["Hellwig2022_JMh1"]["code"].addChild( Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["Hellwig2022_JMh1"].addChild( Gaffer.BoolPlug( "compressMode", defaultValue = True, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["Hellwig2022_JMh1"].addChild( Gaffer.IntPlug( "viewingConditions", defaultValue = 1, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["Hellwig2022_JMh1"].addChild( Gaffer.BoolPlug( "invert", defaultValue = False, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["Hellwig2022_JMh1"].addChild( Gaffer.IntPlug( "whitepoint", defaultValue = 0, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["oslGamutConvert1"] = Gaffer.Box( "oslGamutConvert1" ) parent.addChild( __children["oslGamutConvert1"] ) __children["oslGamutConvert1"].addChild( Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["oslGamutConvert1"].addChild( GafferOSL.OSLCode( "ColorMatrix" ) ) __children["oslGamutConvert1"]["ColorMatrix"]["parameters"].addChild( Gaffer.V3fPlug( "m0", defaultValue = imath.V3f( 0, 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, interpretation = IECore.GeometricData.Interpretation.Vector ) ) __children["oslGamutConvert1"]["ColorMatrix"]["parameters"].addChild( Gaffer.V3fPlug( "m1", defaultValue = imath.V3f( 0, 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, interpretation = IECore.GeometricData.Interpretation.Vector ) ) __children["oslGamutConvert1"]["ColorMatrix"]["parameters"].addChild( Gaffer.V3fPlug( "m2", defaultValue = imath.V3f( 0, 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, interpretation = IECore.GeometricData.Interpretation.Vector ) ) __children["oslGamutConvert1"]["ColorMatrix"]["parameters"].addChild( Gaffer.Color3fPlug( "in", defaultValue = imath.Color3f( 0, 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["oslGamutConvert1"]["ColorMatrix"]["out"].addChild( Gaffer.Color3fPlug( "out", direction = Gaffer.Plug.Direction.Out, defaultValue = imath.Color3f( 0, 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["oslGamutConvert1"]["ColorMatrix"].addChild( Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["oslGamutConvert1"].addChild( Gaffer.Expression( "Expression4" ) ) __children["oslGamutConvert1"]["Expression4"]["__in"].addChild( Gaffer.StringPlug( "p0", defaultValue = 'XYZ', flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["oslGamutConvert1"]["Expression4"]["__in"].addChild( Gaffer.StringPlug( "p1", defaultValue = 'XYZ', flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["oslGamutConvert1"]["Expression4"]["__out"].addChild( Gaffer.V3fPlug( "p0", direction = Gaffer.Plug.Direction.Out, defaultValue = imath.V3f( 0, 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, interpretation = IECore.GeometricData.Interpretation.Vector ) ) __children["oslGamutConvert1"]["Expression4"]["__out"].addChild( Gaffer.V3fPlug( "p1", direction = Gaffer.Plug.Direction.Out, defaultValue = imath.V3f( 0, 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, interpretation = IECore.GeometricData.Interpretation.Vector ) ) __children["oslGamutConvert1"]["Expression4"]["__out"].addChild( Gaffer.V3fPlug( "p2", direction = Gaffer.Plug.Direction.Out, defaultValue = imath.V3f( 0, 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, interpretation = IECore.GeometricData.Interpretation.Vector ) ) __children["oslGamutConvert1"]["Expression4"].addChild( Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["oslGamutConvert1"].addChild( Gaffer.BoxIn( "BoxIn" ) ) __children["oslGamutConvert1"]["BoxIn"].setup( Gaffer.Color3fPlug( "out", defaultValue = imath.Color3f( 0, 0, 0 ), ) ) __children["oslGamutConvert1"]["BoxIn"].addChild( Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["oslGamutConvert1"].addChild( Gaffer.Color3fPlug( "in", defaultValue = imath.Color3f( 0, 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["oslGamutConvert1"].addChild( Gaffer.BoxOut( "BoxOut" ) ) __children["oslGamutConvert1"]["BoxOut"].setup( Gaffer.Color3fPlug( "in", defaultValue = imath.Color3f( 0, 0, 0 ), ) ) __children["oslGamutConvert1"]["BoxOut"].addChild( Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["oslGamutConvert1"].addChild( Gaffer.Color3fPlug( "out", direction = Gaffer.Plug.Direction.Out, defaultValue = imath.Color3f( 0, 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["oslGamutConvert1"].addChild( Gaffer.StringPlug( "gamutIn", defaultValue = 'XYZ', flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["oslGamutConvert1"].addChild( Gaffer.StringPlug( "gamutOut", defaultValue = 'XYZ', flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["oslGamutConvert1"].addChild( Gaffer.BoolPlug( "enabled", defaultValue = True, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["tonescale_daniele_evo"] = Gaffer.Box( "tonescale_daniele_evo" ) parent.addChild( __children["tonescale_daniele_evo"] ) __children["tonescale_daniele_evo"].addChild( Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["tonescale_daniele_evo"].addChild( Gaffer.BoxIn( "BoxIn" ) ) __children["tonescale_daniele_evo"]["BoxIn"].setup( Gaffer.Color3fPlug( "out", defaultValue = imath.Color3f( 0, 0, 0 ), ) ) __children["tonescale_daniele_evo"]["BoxIn"].addChild( Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["tonescale_daniele_evo"].addChild( Gaffer.Color3fPlug( "in", defaultValue = imath.Color3f( 0, 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["tonescale_daniele_evo"].addChild( Gaffer.BoxOut( "BoxOut" ) ) __children["tonescale_daniele_evo"]["BoxOut"].setup( Gaffer.Color3fPlug( "in", defaultValue = imath.Color3f( 0, 0, 0 ), ) ) __children["tonescale_daniele_evo"]["BoxOut"].addChild( Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["tonescale_daniele_evo"].addChild( Gaffer.Color3fPlug( "f", direction = Gaffer.Plug.Direction.Out, defaultValue = imath.Color3f( 0, 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["tonescale_daniele_evo"].addChild( Gaffer.BoolPlug( "enabled", defaultValue = True, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["tonescale_daniele_evo"].addChild( GafferOSL.OSLCode( "OSLCode" ) ) __children["tonescale_daniele_evo"]["OSLCode"]["parameters"].addChild( Gaffer.FloatPlug( "Y", defaultValue = 0.0, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["tonescale_daniele_evo"]["OSLCode"]["parameters"].addChild( Gaffer.FloatPlug( "s2", defaultValue = 0.0, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["tonescale_daniele_evo"]["OSLCode"]["parameters"].addChild( Gaffer.FloatPlug( "g", defaultValue = 0.0, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["tonescale_daniele_evo"]["OSLCode"]["parameters"].addChild( Gaffer.FloatPlug( "m2", defaultValue = 0.0, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["tonescale_daniele_evo"]["OSLCode"]["parameters"].addChild( Gaffer.FloatPlug( "t1", defaultValue = 0.0, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["tonescale_daniele_evo"]["OSLCode"]["parameters"].addChild( Gaffer.IntPlug( "invert", defaultValue = 0, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["tonescale_daniele_evo"]["OSLCode"]["out"].addChild( Gaffer.FloatPlug( "f", direction = Gaffer.Plug.Direction.Out, defaultValue = 0.0, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["tonescale_daniele_evo"]["OSLCode"]["out"].addChild( Gaffer.FloatPlug( "h", direction = Gaffer.Plug.Direction.Out, defaultValue = 0.0, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["tonescale_daniele_evo"]["OSLCode"].addChild( Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["tonescale_daniele_evo"].addChild( Gaffer.Expression( "Expression" ) ) __children["tonescale_daniele_evo"]["Expression"]["__in"].addChild( Gaffer.FloatPlug( "p0", defaultValue = 128.0, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["tonescale_daniele_evo"]["Expression"]["__in"].addChild( Gaffer.FloatPlug( "p1", defaultValue = 896.0, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["tonescale_daniele_evo"]["Expression"]["__in"].addChild( Gaffer.FloatPlug( "p2", defaultValue = 0.0, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["tonescale_daniele_evo"]["Expression"]["__in"].addChild( Gaffer.FloatPlug( "p3", defaultValue = 0.0, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["tonescale_daniele_evo"]["Expression"]["__in"].addChild( Gaffer.FloatPlug( "p4", defaultValue = 0.0, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["tonescale_daniele_evo"]["Expression"]["__in"].addChild( Gaffer.FloatPlug( "p5", defaultValue = 0.0, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["tonescale_daniele_evo"]["Expression"]["__in"].addChild( Gaffer.FloatPlug( "p6", defaultValue = 0.0, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["tonescale_daniele_evo"]["Expression"]["__in"].addChild( Gaffer.FloatPlug( "p7", defaultValue = 0.0, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["tonescale_daniele_evo"]["Expression"]["__in"].addChild( Gaffer.FloatPlug( "p8", defaultValue = 0.0, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["tonescale_daniele_evo"]["Expression"]["__out"].addChild( Gaffer.FloatPlug( "p0", direction = Gaffer.Plug.Direction.Out, defaultValue = 0.0, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["tonescale_daniele_evo"]["Expression"]["__out"].addChild( Gaffer.FloatPlug( "p1", direction = Gaffer.Plug.Direction.Out, defaultValue = 0.0, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["tonescale_daniele_evo"]["Expression"]["__out"].addChild( Gaffer.FloatPlug( "p2", direction = Gaffer.Plug.Direction.Out, defaultValue = 0.0, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["tonescale_daniele_evo"]["Expression"]["__out"].addChild( Gaffer.FloatPlug( "p3", direction = Gaffer.Plug.Direction.Out, defaultValue = 0.0, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["tonescale_daniele_evo"]["Expression"]["__out"].addChild( Gaffer.FloatPlug( "p4", direction = Gaffer.Plug.Direction.Out, defaultValue = 0.0, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["tonescale_daniele_evo"]["Expression"]["__out"].addChild( Gaffer.FloatPlug( "p5", direction = Gaffer.Plug.Direction.Out, defaultValue = 0.0, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["tonescale_daniele_evo"]["Expression"].addChild( Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["tonescale_daniele_evo"].addChild( Gaffer.FloatPlug( "rhit_min", defaultValue = 128.0, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["tonescale_daniele_evo"].addChild( Gaffer.FloatPlug( "rhit_max", defaultValue = 896.0, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["tonescale_daniele_evo"].addChild( Gaffer.FloatPlug( "n", defaultValue = 100.0, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["tonescale_daniele_evo"].addChild( Gaffer.FloatPlug( "n_r", defaultValue = 100.0, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["tonescale_daniele_evo"].addChild( Gaffer.BoolPlug( "invert", defaultValue = False, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["tonescale_daniele_evo"].addChild( Gaffer.FloatPlug( "c_d", defaultValue = 10.012999534606934, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["tonescale_daniele_evo"].addChild( Gaffer.FloatPlug( "c", defaultValue = 0.18000000715255737, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["tonescale_daniele_evo"].addChild( Gaffer.FloatPlug( "t1", defaultValue = 0.03999999910593033, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["tonescale_daniele_evo"].addChild( Gaffer.FloatPlug( "w_g", defaultValue = 0.14000000059604645, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["tonescale_daniele_evo"].addChild( Gaffer.FloatPlug( "g", defaultValue = 1.149999976158142, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["tonescale_daniele_evo"].addChild( Gaffer.FloatPlug( "mmScaleFactor", defaultValue = 100.0, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["tonescale_daniele_evo"].addChild( Gaffer.BoxOut( "BoxOut1" ) ) __children["tonescale_daniele_evo"]["BoxOut1"].setup( Gaffer.Color3fPlug( "in", defaultValue = imath.Color3f( 0, 0, 0 ), ) ) __children["tonescale_daniele_evo"]["BoxOut1"].addChild( Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["tonescale_daniele_evo"].addChild( Gaffer.Color3fPlug( "h", direction = Gaffer.Plug.Direction.Out, defaultValue = imath.Color3f( 0, 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["tonescale_daniele_evo"].addChild( Gaffer.FloatPlug( "daniele_m_0", defaultValue = 0.0, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["tonescale_daniele_evo"].addChild( Gaffer.FloatPlug( "daniele_c_t", defaultValue = 0.0, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["FloatToColor"] = GafferOSL.OSLShader( "FloatToColor" ) parent.addChild( __children["FloatToColor"] ) __children["FloatToColor"].loadShader( "Conversion/FloatToColor" ) __children["FloatToColor"].addChild( Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["ColorToFloat"] = GafferOSL.OSLShader( "ColorToFloat" ) parent.addChild( __children["ColorToFloat"] ) __children["ColorToFloat"].loadShader( "Conversion/ColorToFloat" ) __children["ColorToFloat"].addChild( Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["Hellwig2022_JMh6"] = Gaffer.Box( "Hellwig2022_JMh6" ) parent.addChild( __children["Hellwig2022_JMh6"] ) __children["Hellwig2022_JMh6"].addChild( Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["Hellwig2022_JMh6"].addChild( Gaffer.BoxIn( "BoxIn" ) ) __children["Hellwig2022_JMh6"]["BoxIn"].setup( Gaffer.Color3fPlug( "out", defaultValue = imath.Color3f( 0, 0, 0 ), ) ) __children["Hellwig2022_JMh6"]["BoxIn"].addChild( Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["Hellwig2022_JMh6"].addChild( Gaffer.BoxOut( "BoxOut" ) ) __children["Hellwig2022_JMh6"]["BoxOut"].setup( Gaffer.Color3fPlug( "in", defaultValue = imath.Color3f( 0, 0, 0 ), ) ) __children["Hellwig2022_JMh6"]["BoxOut"].addChild( Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["Hellwig2022_JMh6"].addChild( Gaffer.Color3fPlug( "in", defaultValue = imath.Color3f( 0, 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["Hellwig2022_JMh6"].addChild( Gaffer.Color3fPlug( "out", direction = Gaffer.Plug.Direction.Out, defaultValue = imath.Color3f( 0, 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["Hellwig2022_JMh6"].addChild( Gaffer.BoolPlug( "enabled", defaultValue = True, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["Hellwig2022_JMh6"].addChild( GafferOSL.OSLCode( "code" ) ) __children["Hellwig2022_JMh6"]["code"]["parameters"].addChild( Gaffer.Color3fPlug( "XYZ", defaultValue = imath.Color3f( 0, 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["Hellwig2022_JMh6"]["code"]["parameters"].addChild( Gaffer.IntPlug( "compressMode", defaultValue = 0, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["Hellwig2022_JMh6"]["code"]["parameters"].addChild( Gaffer.IntPlug( "viewingConditions", defaultValue = 0, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["Hellwig2022_JMh6"]["code"]["parameters"].addChild( Gaffer.IntPlug( "invert", defaultValue = 0, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["Hellwig2022_JMh6"]["code"]["parameters"].addChild( Gaffer.IntPlug( "whitepoint", defaultValue = 0, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["Hellwig2022_JMh6"]["code"]["out"].addChild( Gaffer.Color3fPlug( "out", direction = Gaffer.Plug.Direction.Out, defaultValue = imath.Color3f( 0, 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["Hellwig2022_JMh6"]["code"].addChild( Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["Hellwig2022_JMh6"].addChild( Gaffer.BoolPlug( "compressMode", defaultValue = True, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["Hellwig2022_JMh6"].addChild( Gaffer.IntPlug( "viewingConditions", defaultValue = 1, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["Hellwig2022_JMh6"].addChild( Gaffer.BoolPlug( "invert", defaultValue = False, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["Hellwig2022_JMh6"].addChild( Gaffer.IntPlug( "whitepoint", defaultValue = 0, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["Hellwig2022_JMh7"] = Gaffer.Box( "Hellwig2022_JMh7" ) parent.addChild( __children["Hellwig2022_JMh7"] ) __children["Hellwig2022_JMh7"].addChild( Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["Hellwig2022_JMh7"].addChild( Gaffer.BoxIn( "BoxIn" ) ) __children["Hellwig2022_JMh7"]["BoxIn"].setup( Gaffer.Color3fPlug( "out", defaultValue = imath.Color3f( 0, 0, 0 ), ) ) __children["Hellwig2022_JMh7"]["BoxIn"].addChild( Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["Hellwig2022_JMh7"].addChild( Gaffer.BoxOut( "BoxOut" ) ) __children["Hellwig2022_JMh7"]["BoxOut"].setup( Gaffer.Color3fPlug( "in", defaultValue = imath.Color3f( 0, 0, 0 ), ) ) __children["Hellwig2022_JMh7"]["BoxOut"].addChild( Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["Hellwig2022_JMh7"].addChild( Gaffer.Color3fPlug( "in", defaultValue = imath.Color3f( 0, 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["Hellwig2022_JMh7"].addChild( Gaffer.Color3fPlug( "out", direction = Gaffer.Plug.Direction.Out, defaultValue = imath.Color3f( 0, 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["Hellwig2022_JMh7"].addChild( Gaffer.BoolPlug( "enabled", defaultValue = True, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["Hellwig2022_JMh7"].addChild( GafferOSL.OSLCode( "code" ) ) __children["Hellwig2022_JMh7"]["code"]["parameters"].addChild( Gaffer.Color3fPlug( "XYZ", defaultValue = imath.Color3f( 0, 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["Hellwig2022_JMh7"]["code"]["parameters"].addChild( Gaffer.IntPlug( "compressMode", defaultValue = 0, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["Hellwig2022_JMh7"]["code"]["parameters"].addChild( Gaffer.IntPlug( "viewingConditions", defaultValue = 0, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["Hellwig2022_JMh7"]["code"]["parameters"].addChild( Gaffer.IntPlug( "invert", defaultValue = 0, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["Hellwig2022_JMh7"]["code"]["parameters"].addChild( Gaffer.IntPlug( "whitepoint", defaultValue = 0, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["Hellwig2022_JMh7"]["code"]["out"].addChild( Gaffer.Color3fPlug( "out", direction = Gaffer.Plug.Direction.Out, defaultValue = imath.Color3f( 0, 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["Hellwig2022_JMh7"]["code"].addChild( Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["Hellwig2022_JMh7"].addChild( Gaffer.BoolPlug( "compressMode", defaultValue = True, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["Hellwig2022_JMh7"].addChild( Gaffer.IntPlug( "viewingConditions", defaultValue = 1, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["Hellwig2022_JMh7"].addChild( Gaffer.BoolPlug( "invert", defaultValue = False, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["Hellwig2022_JMh7"].addChild( Gaffer.IntPlug( "whitepoint", defaultValue = 0, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["Hellwig2022_JMh8"] = Gaffer.Box( "Hellwig2022_JMh8" ) parent.addChild( __children["Hellwig2022_JMh8"] ) __children["Hellwig2022_JMh8"].addChild( Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["Hellwig2022_JMh8"].addChild( Gaffer.BoxIn( "BoxIn" ) ) __children["Hellwig2022_JMh8"]["BoxIn"].setup( Gaffer.Color3fPlug( "out", defaultValue = imath.Color3f( 0, 0, 0 ), ) ) __children["Hellwig2022_JMh8"]["BoxIn"].addChild( Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["Hellwig2022_JMh8"].addChild( Gaffer.BoxOut( "BoxOut" ) ) __children["Hellwig2022_JMh8"]["BoxOut"].setup( Gaffer.Color3fPlug( "in", defaultValue = imath.Color3f( 0, 0, 0 ), ) ) __children["Hellwig2022_JMh8"]["BoxOut"].addChild( Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["Hellwig2022_JMh8"].addChild( Gaffer.Color3fPlug( "in", defaultValue = imath.Color3f( 0, 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["Hellwig2022_JMh8"].addChild( Gaffer.Color3fPlug( "out", direction = Gaffer.Plug.Direction.Out, defaultValue = imath.Color3f( 0, 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["Hellwig2022_JMh8"].addChild( Gaffer.BoolPlug( "enabled", defaultValue = True, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["Hellwig2022_JMh8"].addChild( GafferOSL.OSLCode( "code" ) ) __children["Hellwig2022_JMh8"]["code"]["parameters"].addChild( Gaffer.Color3fPlug( "XYZ", defaultValue = imath.Color3f( 0, 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["Hellwig2022_JMh8"]["code"]["parameters"].addChild( Gaffer.IntPlug( "compressMode", defaultValue = 0, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["Hellwig2022_JMh8"]["code"]["parameters"].addChild( Gaffer.IntPlug( "viewingConditions", defaultValue = 0, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["Hellwig2022_JMh8"]["code"]["parameters"].addChild( Gaffer.IntPlug( "invert", defaultValue = 0, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["Hellwig2022_JMh8"]["code"]["parameters"].addChild( Gaffer.IntPlug( "whitepoint", defaultValue = 0, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["Hellwig2022_JMh8"]["code"]["out"].addChild( Gaffer.Color3fPlug( "out", direction = Gaffer.Plug.Direction.Out, defaultValue = imath.Color3f( 0, 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["Hellwig2022_JMh8"]["code"].addChild( Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["Hellwig2022_JMh8"].addChild( Gaffer.BoolPlug( "compressMode", defaultValue = True, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["Hellwig2022_JMh8"].addChild( Gaffer.IntPlug( "viewingConditions", defaultValue = 1, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["Hellwig2022_JMh8"].addChild( Gaffer.BoolPlug( "invert", defaultValue = False, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["Hellwig2022_JMh8"].addChild( Gaffer.IntPlug( "whitepoint", defaultValue = 0, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["Multiply2"] = Gaffer.Box( "Multiply2" ) parent.addChild( __children["Multiply2"] ) __children["Multiply2"].addChild( Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["Multiply2"].addChild( Gaffer.BoxIn( "BoxIn" ) ) __children["Multiply2"]["BoxIn"].setup( Gaffer.Color3fPlug( "out", defaultValue = imath.Color3f( 0, 0, 0 ), ) ) __children["Multiply2"]["BoxIn"].addChild( Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["Multiply2"].addChild( Gaffer.Color3fPlug( "in", defaultValue = imath.Color3f( 0, 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["Multiply2"].addChild( Gaffer.BoxOut( "BoxOut" ) ) __children["Multiply2"]["BoxOut"].setup( Gaffer.Color3fPlug( "in", defaultValue = imath.Color3f( 0, 0, 0 ), ) ) __children["Multiply2"]["BoxOut"].addChild( Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["Multiply2"].addChild( Gaffer.Color3fPlug( "out", direction = Gaffer.Plug.Direction.Out, defaultValue = imath.Color3f( 0, 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["Multiply2"].addChild( GafferOSL.OSLShader( "MultiplyColor1" ) ) __children["Multiply2"]["MultiplyColor1"].loadShader( "Maths/MultiplyColor" ) __children["Multiply2"]["MultiplyColor1"].addChild( Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["Multiply2"].addChild( Gaffer.BoolPlug( "enabled", defaultValue = True, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["Multiply2"].addChild( Gaffer.BoxIn( "BoxIn1" ) ) __children["Multiply2"]["BoxIn1"].setup( Gaffer.Color3fPlug( "out", defaultValue = imath.Color3f( 1, 1, 1 ), ) ) __children["Multiply2"]["BoxIn1"].addChild( Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["Multiply2"].addChild( Gaffer.Color3fPlug( "multiply", defaultValue = imath.Color3f( 1, 1, 1 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["oslGamutConvert3"] = Gaffer.Box( "oslGamutConvert3" ) parent.addChild( __children["oslGamutConvert3"] ) __children["oslGamutConvert3"].addChild( Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["oslGamutConvert3"].addChild( GafferOSL.OSLCode( "ColorMatrix" ) ) __children["oslGamutConvert3"]["ColorMatrix"]["parameters"].addChild( Gaffer.V3fPlug( "m0", defaultValue = imath.V3f( 0, 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, interpretation = IECore.GeometricData.Interpretation.Vector ) ) __children["oslGamutConvert3"]["ColorMatrix"]["parameters"].addChild( Gaffer.V3fPlug( "m1", defaultValue = imath.V3f( 0, 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, interpretation = IECore.GeometricData.Interpretation.Vector ) ) __children["oslGamutConvert3"]["ColorMatrix"]["parameters"].addChild( Gaffer.V3fPlug( "m2", defaultValue = imath.V3f( 0, 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, interpretation = IECore.GeometricData.Interpretation.Vector ) ) __children["oslGamutConvert3"]["ColorMatrix"]["parameters"].addChild( Gaffer.Color3fPlug( "in", defaultValue = imath.Color3f( 0, 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["oslGamutConvert3"]["ColorMatrix"]["out"].addChild( Gaffer.Color3fPlug( "out", direction = Gaffer.Plug.Direction.Out, defaultValue = imath.Color3f( 0, 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["oslGamutConvert3"]["ColorMatrix"].addChild( Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["oslGamutConvert3"].addChild( Gaffer.Expression( "Expression4" ) ) __children["oslGamutConvert3"]["Expression4"]["__in"].addChild( Gaffer.StringPlug( "p0", defaultValue = 'XYZ', flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["oslGamutConvert3"]["Expression4"]["__in"].addChild( Gaffer.StringPlug( "p1", defaultValue = 'XYZ', flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["oslGamutConvert3"]["Expression4"]["__out"].addChild( Gaffer.V3fPlug( "p0", direction = Gaffer.Plug.Direction.Out, defaultValue = imath.V3f( 0, 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, interpretation = IECore.GeometricData.Interpretation.Vector ) ) __children["oslGamutConvert3"]["Expression4"]["__out"].addChild( Gaffer.V3fPlug( "p1", direction = Gaffer.Plug.Direction.Out, defaultValue = imath.V3f( 0, 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, interpretation = IECore.GeometricData.Interpretation.Vector ) ) __children["oslGamutConvert3"]["Expression4"]["__out"].addChild( Gaffer.V3fPlug( "p2", direction = Gaffer.Plug.Direction.Out, defaultValue = imath.V3f( 0, 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, interpretation = IECore.GeometricData.Interpretation.Vector ) ) __children["oslGamutConvert3"]["Expression4"].addChild( Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["oslGamutConvert3"].addChild( Gaffer.BoxIn( "BoxIn" ) ) __children["oslGamutConvert3"]["BoxIn"].setup( Gaffer.Color3fPlug( "out", defaultValue = imath.Color3f( 0, 0, 0 ), ) ) __children["oslGamutConvert3"]["BoxIn"].addChild( Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["oslGamutConvert3"].addChild( Gaffer.Color3fPlug( "in", defaultValue = imath.Color3f( 0, 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["oslGamutConvert3"].addChild( Gaffer.BoxOut( "BoxOut" ) ) __children["oslGamutConvert3"]["BoxOut"].setup( Gaffer.Color3fPlug( "in", defaultValue = imath.Color3f( 0, 0, 0 ), ) ) __children["oslGamutConvert3"]["BoxOut"].addChild( Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["oslGamutConvert3"].addChild( Gaffer.Color3fPlug( "out", direction = Gaffer.Plug.Direction.Out, defaultValue = imath.Color3f( 0, 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["oslGamutConvert3"].addChild( Gaffer.StringPlug( "gamutIn", defaultValue = 'XYZ', flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["oslGamutConvert3"].addChild( Gaffer.StringPlug( "gamutOut", defaultValue = 'XYZ', flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["oslGamutConvert3"].addChild( Gaffer.BoolPlug( "enabled", defaultValue = True, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["Hellwig2022_JMh9"] = Gaffer.Box( "Hellwig2022_JMh9" ) parent.addChild( __children["Hellwig2022_JMh9"] ) __children["Hellwig2022_JMh9"].addChild( Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["Hellwig2022_JMh9"].addChild( Gaffer.BoxIn( "BoxIn" ) ) __children["Hellwig2022_JMh9"]["BoxIn"].setup( Gaffer.Color3fPlug( "out", defaultValue = imath.Color3f( 0, 0, 0 ), ) ) __children["Hellwig2022_JMh9"]["BoxIn"].addChild( Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["Hellwig2022_JMh9"].addChild( Gaffer.BoxOut( "BoxOut" ) ) __children["Hellwig2022_JMh9"]["BoxOut"].setup( Gaffer.Color3fPlug( "in", defaultValue = imath.Color3f( 0, 0, 0 ), ) ) __children["Hellwig2022_JMh9"]["BoxOut"].addChild( Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["Hellwig2022_JMh9"].addChild( Gaffer.Color3fPlug( "in", defaultValue = imath.Color3f( 0, 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["Hellwig2022_JMh9"].addChild( Gaffer.Color3fPlug( "out", direction = Gaffer.Plug.Direction.Out, defaultValue = imath.Color3f( 0, 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["Hellwig2022_JMh9"].addChild( Gaffer.BoolPlug( "enabled", defaultValue = True, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["Hellwig2022_JMh9"].addChild( GafferOSL.OSLCode( "code" ) ) __children["Hellwig2022_JMh9"]["code"]["parameters"].addChild( Gaffer.Color3fPlug( "XYZ", defaultValue = imath.Color3f( 0, 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["Hellwig2022_JMh9"]["code"]["parameters"].addChild( Gaffer.IntPlug( "compressMode", defaultValue = 0, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["Hellwig2022_JMh9"]["code"]["parameters"].addChild( Gaffer.IntPlug( "viewingConditions", defaultValue = 0, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["Hellwig2022_JMh9"]["code"]["parameters"].addChild( Gaffer.IntPlug( "invert", defaultValue = 0, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["Hellwig2022_JMh9"]["code"]["parameters"].addChild( Gaffer.IntPlug( "whitepoint", defaultValue = 0, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["Hellwig2022_JMh9"]["code"]["out"].addChild( Gaffer.Color3fPlug( "out", direction = Gaffer.Plug.Direction.Out, defaultValue = imath.Color3f( 0, 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["Hellwig2022_JMh9"]["code"].addChild( Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["Hellwig2022_JMh9"].addChild( Gaffer.BoolPlug( "compressMode", defaultValue = True, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["Hellwig2022_JMh9"].addChild( Gaffer.IntPlug( "viewingConditions", defaultValue = 1, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["Hellwig2022_JMh9"].addChild( Gaffer.BoolPlug( "invert", defaultValue = False, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["Hellwig2022_JMh9"].addChild( Gaffer.IntPlug( "whitepoint", defaultValue = 0, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["oslGamutConvert4"] = Gaffer.Box( "oslGamutConvert4" ) parent.addChild( __children["oslGamutConvert4"] ) __children["oslGamutConvert4"].addChild( Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["oslGamutConvert4"].addChild( GafferOSL.OSLCode( "ColorMatrix" ) ) __children["oslGamutConvert4"]["ColorMatrix"]["parameters"].addChild( Gaffer.V3fPlug( "m0", defaultValue = imath.V3f( 0, 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, interpretation = IECore.GeometricData.Interpretation.Vector ) ) __children["oslGamutConvert4"]["ColorMatrix"]["parameters"].addChild( Gaffer.V3fPlug( "m1", defaultValue = imath.V3f( 0, 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, interpretation = IECore.GeometricData.Interpretation.Vector ) ) __children["oslGamutConvert4"]["ColorMatrix"]["parameters"].addChild( Gaffer.V3fPlug( "m2", defaultValue = imath.V3f( 0, 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, interpretation = IECore.GeometricData.Interpretation.Vector ) ) __children["oslGamutConvert4"]["ColorMatrix"]["parameters"].addChild( Gaffer.Color3fPlug( "in", defaultValue = imath.Color3f( 0, 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["oslGamutConvert4"]["ColorMatrix"]["out"].addChild( Gaffer.Color3fPlug( "out", direction = Gaffer.Plug.Direction.Out, defaultValue = imath.Color3f( 0, 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["oslGamutConvert4"]["ColorMatrix"].addChild( Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["oslGamutConvert4"].addChild( Gaffer.Expression( "Expression4" ) ) __children["oslGamutConvert4"]["Expression4"]["__in"].addChild( Gaffer.StringPlug( "p0", defaultValue = 'XYZ', flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["oslGamutConvert4"]["Expression4"]["__in"].addChild( Gaffer.StringPlug( "p1", defaultValue = 'XYZ', flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["oslGamutConvert4"]["Expression4"]["__out"].addChild( Gaffer.V3fPlug( "p0", direction = Gaffer.Plug.Direction.Out, defaultValue = imath.V3f( 0, 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, interpretation = IECore.GeometricData.Interpretation.Vector ) ) __children["oslGamutConvert4"]["Expression4"]["__out"].addChild( Gaffer.V3fPlug( "p1", direction = Gaffer.Plug.Direction.Out, defaultValue = imath.V3f( 0, 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, interpretation = IECore.GeometricData.Interpretation.Vector ) ) __children["oslGamutConvert4"]["Expression4"]["__out"].addChild( Gaffer.V3fPlug( "p2", direction = Gaffer.Plug.Direction.Out, defaultValue = imath.V3f( 0, 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, interpretation = IECore.GeometricData.Interpretation.Vector ) ) __children["oslGamutConvert4"]["Expression4"].addChild( Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["oslGamutConvert4"].addChild( Gaffer.BoxIn( "BoxIn" ) ) __children["oslGamutConvert4"]["BoxIn"].setup( Gaffer.Color3fPlug( "out", defaultValue = imath.Color3f( 0, 0, 0 ), ) ) __children["oslGamutConvert4"]["BoxIn"].addChild( Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["oslGamutConvert4"].addChild( Gaffer.Color3fPlug( "in", defaultValue = imath.Color3f( 0, 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["oslGamutConvert4"].addChild( Gaffer.BoxOut( "BoxOut" ) ) __children["oslGamutConvert4"]["BoxOut"].setup( Gaffer.Color3fPlug( "in", defaultValue = imath.Color3f( 0, 0, 0 ), ) ) __children["oslGamutConvert4"]["BoxOut"].addChild( Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["oslGamutConvert4"].addChild( Gaffer.Color3fPlug( "out", direction = Gaffer.Plug.Direction.Out, defaultValue = imath.Color3f( 0, 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["oslGamutConvert4"].addChild( Gaffer.StringPlug( "gamutIn", defaultValue = 'XYZ', flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["oslGamutConvert4"].addChild( Gaffer.StringPlug( "gamutOut", defaultValue = 'XYZ', flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["oslGamutConvert4"].addChild( Gaffer.BoolPlug( "enabled", defaultValue = True, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["chromaCompression"] = Gaffer.Box( "chromaCompression" ) parent.addChild( __children["chromaCompression"] ) __children["chromaCompression"].addChild( Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["chromaCompression"].addChild( Gaffer.BoxIn( "BoxIn" ) ) __children["chromaCompression"]["BoxIn"].setup( Gaffer.Color3fPlug( "out", defaultValue = imath.Color3f( 0, 0, 0 ), ) ) __children["chromaCompression"]["BoxIn"].addChild( Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["chromaCompression"].addChild( Gaffer.Color3fPlug( "in", defaultValue = imath.Color3f( 0, 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["chromaCompression"].addChild( Gaffer.BoxOut( "BoxOut" ) ) __children["chromaCompression"]["BoxOut"].setup( Gaffer.Color3fPlug( "in", defaultValue = imath.Color3f( 0, 0, 0 ), ) ) __children["chromaCompression"]["BoxOut"].addChild( Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["chromaCompression"].addChild( Gaffer.Color3fPlug( "out", direction = Gaffer.Plug.Direction.Out, defaultValue = imath.Color3f( 0, 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["chromaCompression"].addChild( Gaffer.BoolPlug( "enabled", defaultValue = True, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["chromaCompression"].addChild( GafferOSL.OSLCode( "OSLCode" ) ) __children["chromaCompression"]["OSLCode"]["parameters"].addChild( Gaffer.Color3fPlug( "JMh", defaultValue = imath.Color3f( 0, 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["chromaCompression"]["OSLCode"]["parameters"].addChild( Gaffer.FloatPlug( "origJ", defaultValue = 0.0, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["chromaCompression"]["OSLCode"]["parameters"].addChild( Gaffer.FloatPlug( "TS", defaultValue = 0.0, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["chromaCompression"]["OSLCode"]["parameters"].addChild( Gaffer.IntPlug( "invert", defaultValue = 0, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["chromaCompression"]["OSLCode"]["parameters"].addChild( Gaffer.FloatPlug( "Mcusp", defaultValue = 0.0, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["chromaCompression"]["OSLCode"]["parameters"].addChild( Gaffer.IntPlug( "applyInGamutCompression", defaultValue = 0, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["chromaCompression"]["OSLCode"]["parameters"].addChild( Gaffer.FloatPlug( "daniele_n", defaultValue = 0.0, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["chromaCompression"]["OSLCode"]["parameters"].addChild( Gaffer.FloatPlug( "daniele_m_0", defaultValue = 0.0, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["chromaCompression"]["OSLCode"]["parameters"].addChild( Gaffer.FloatPlug( "daniele_c_t", defaultValue = 0.0, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["chromaCompression"]["OSLCode"]["out"].addChild( Gaffer.Color3fPlug( "out", direction = Gaffer.Plug.Direction.Out, defaultValue = imath.Color3f( 0, 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["chromaCompression"]["OSLCode"].addChild( Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["chromaCompression"].addChild( Gaffer.BoxIn( "BoxIn1" ) ) __children["chromaCompression"]["BoxIn1"].setup( Gaffer.FloatPlug( "out", defaultValue = 0.0, ) ) __children["chromaCompression"]["BoxIn1"].addChild( Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["chromaCompression"].addChild( Gaffer.FloatPlug( "origJ", defaultValue = 0.0, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["chromaCompression"].addChild( Gaffer.BoxIn( "BoxIn2" ) ) __children["chromaCompression"]["BoxIn2"].setup( Gaffer.FloatPlug( "out", defaultValue = 0.0, ) ) __children["chromaCompression"]["BoxIn2"].addChild( Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["chromaCompression"].addChild( Gaffer.FloatPlug( "TS", defaultValue = 0.0, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["chromaCompression"].addChild( GafferOSL.OSLCode( "cusp_with_eccentricity_factor" ) ) __children["chromaCompression"]["cusp_with_eccentricity_factor"]["parameters"].addChild( Gaffer.FloatPlug( "h", defaultValue = 0.0, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["chromaCompression"]["cusp_with_eccentricity_factor"]["parameters"].addChild( Gaffer.IntPlug( "compressMode", defaultValue = 0, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["chromaCompression"]["cusp_with_eccentricity_factor"]["parameters"].addChild( Gaffer.V3fPlug( "sstsLuminance", defaultValue = imath.V3f( 0, 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, interpretation = IECore.GeometricData.Interpretation.Vector ) ) __children["chromaCompression"]["cusp_with_eccentricity_factor"]["parameters"].addChild( Gaffer.FloatPlug( "referenceLuminance", defaultValue = 0.0, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["chromaCompression"]["cusp_with_eccentricity_factor"]["out"].addChild( Gaffer.FloatPlug( "M", direction = Gaffer.Plug.Direction.Out, defaultValue = 0.0, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["chromaCompression"]["cusp_with_eccentricity_factor"]["out"].addChild( Gaffer.Color3fPlug( "test", direction = Gaffer.Plug.Direction.Out, defaultValue = imath.Color3f( 0, 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["chromaCompression"]["cusp_with_eccentricity_factor"].addChild( Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["PlotRGBPoints"] = Gaffer.Box( "PlotRGBPoints" ) parent.addChild( __children["PlotRGBPoints"] ) __children["PlotRGBPoints"].addChild( Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["PlotRGBPoints"].addChild( GafferScene.ImageToPoints( "ImageToPoints" ) ) __children["PlotRGBPoints"]["ImageToPoints"].addChild( Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["PlotRGBPoints"].addChild( Gaffer.BoxIn( "BoxIn" ) ) __children["PlotRGBPoints"]["BoxIn"].setup( GafferImage.ImagePlug( "out", ) ) __children["PlotRGBPoints"]["BoxIn"].addChild( Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["PlotRGBPoints"].addChild( GafferImage.ImagePlug( "image", flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["PlotRGBPoints"].addChild( Gaffer.BoxOut( "BoxOut" ) ) __children["PlotRGBPoints"]["BoxOut"].setup( GafferScene.ScenePlug( "in", ) ) __children["PlotRGBPoints"]["BoxOut"].addChild( Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["PlotRGBPoints"].addChild( GafferScene.ScenePlug( "out", direction = Gaffer.Plug.Direction.Out, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["PlotRGBPoints"].addChild( GafferScene.Transform( "Transform" ) ) __children["PlotRGBPoints"]["Transform"].addChild( Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["PlotRGBPoints"].addChild( GafferScene.PathFilter( "PathFilter" ) ) __children["PlotRGBPoints"]["PathFilter"].addChild( Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["PlotRGBPoints"].addChild( Gaffer.Expression( "Expression" ) ) __children["PlotRGBPoints"]["Expression"]["__in"].addChild( Gaffer.BoolPlug( "p0", defaultValue = False, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["PlotRGBPoints"]["Expression"]["__out"].addChild( Gaffer.FloatPlug( "p0", direction = Gaffer.Plug.Direction.Out, defaultValue = 0.0, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["PlotRGBPoints"]["Expression"]["__out"].addChild( Gaffer.BoolPlug( "p1", direction = Gaffer.Plug.Direction.Out, defaultValue = True, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["PlotRGBPoints"]["Expression"].addChild( Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["PlotRGBPoints"].addChild( Gaffer.BoolPlug( "achromaticUp", defaultValue = True, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["PlotRGBPoints"].addChild( GafferScene.Parent( "Parent" ) ) __children["PlotRGBPoints"]["Parent"]["children"].addChild( GafferScene.ScenePlug( "child1", flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["PlotRGBPoints"]["Parent"].addChild( Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["PlotRGBPoints"].addChild( GafferScene.ImageToPoints( "ImageToPoints1" ) ) __children["PlotRGBPoints"]["ImageToPoints1"].addChild( Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["PlotRGBPoints"].addChild( GafferOSL.OSLImage( "OSLImage" ) ) __children["PlotRGBPoints"]["OSLImage"]["channels"].addChild( Gaffer.NameValuePlug( "", Gaffer.Color3fPlug( "value", defaultValue = imath.Color3f( 1, 1, 1 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ), True, "channel", Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic ) ) __children["PlotRGBPoints"]["OSLImage"].addChild( Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["PlotRGBPoints"].addChild( GafferOSL.OSLCode( "OSLCode" ) ) __children["PlotRGBPoints"]["OSLCode"]["parameters"].addChild( Gaffer.FloatPlug( "scale", defaultValue = 0.0, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["PlotRGBPoints"]["OSLCode"]["parameters"].addChild( Gaffer.IntPlug( "hueQ", defaultValue = 0, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["PlotRGBPoints"]["OSLCode"]["parameters"].addChild( Gaffer.IntPlug( "valQ", defaultValue = 0, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["PlotRGBPoints"]["OSLCode"]["parameters"].addChild( Gaffer.IntPlug( "hueQ2", defaultValue = 0, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["PlotRGBPoints"]["OSLCode"]["parameters"].addChild( Gaffer.IntPlug( "valQ2", defaultValue = 0, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["PlotRGBPoints"]["OSLCode"]["parameters"].addChild( Gaffer.IntPlug( "enableCube2", defaultValue = 0, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["PlotRGBPoints"]["OSLCode"]["parameters"].addChild( Gaffer.IntPlug( "enableCube", defaultValue = 0, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["PlotRGBPoints"]["OSLCode"]["parameters"].addChild( Gaffer.FloatPlug( "scale2", defaultValue = 0.0, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["PlotRGBPoints"]["OSLCode"]["out"].addChild( Gaffer.Color3fPlug( "out", direction = Gaffer.Plug.Direction.Out, defaultValue = imath.Color3f( 0, 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["PlotRGBPoints"]["OSLCode"].addChild( Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["PlotRGBPoints"].addChild( Gaffer.BoolPlug( "enabled", defaultValue = True, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["PlotRGBPoints"].addChild( Gaffer.Backdrop( "Backdrop" ) ) __children["PlotRGBPoints"]["Backdrop"].addChild( Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["PlotRGBPoints"]["Backdrop"].addChild( Gaffer.Box2fPlug( "__uiBound", defaultValue = imath.Box2f( imath.V2f( -10, -10 ), imath.V2f( 10, 10 ) ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["PlotRGBPoints"].addChild( Gaffer.BoxIn( "BoxIn5" ) ) __children["PlotRGBPoints"]["BoxIn5"].setup( Gaffer.FloatPlug( "out", defaultValue = 0.0, ) ) __children["PlotRGBPoints"]["BoxIn5"].addChild( Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["PlotRGBPoints"].addChild( Gaffer.FloatPlug( "scale", defaultValue = 1.0, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["PlotRGBPoints"].addChild( Gaffer.BoxIn( "BoxIn6" ) ) __children["PlotRGBPoints"]["BoxIn6"].setup( Gaffer.IntPlug( "out", defaultValue = 0, ) ) __children["PlotRGBPoints"]["BoxIn6"].addChild( Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["PlotRGBPoints"].addChild( Gaffer.IntPlug( "hueQ", defaultValue = 6, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["PlotRGBPoints"].addChild( Gaffer.BoxIn( "BoxIn7" ) ) __children["PlotRGBPoints"]["BoxIn7"].setup( Gaffer.IntPlug( "out", defaultValue = 0, ) ) __children["PlotRGBPoints"]["BoxIn7"].addChild( Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["PlotRGBPoints"].addChild( Gaffer.IntPlug( "valQ", defaultValue = 0, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["PlotRGBPoints"].addChild( Gaffer.BoxIn( "BoxIn8" ) ) __children["PlotRGBPoints"]["BoxIn8"].setup( Gaffer.IntPlug( "out", defaultValue = 0, ) ) __children["PlotRGBPoints"]["BoxIn8"].addChild( Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["PlotRGBPoints"].addChild( Gaffer.IntPlug( "hueQ2", defaultValue = 0, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["PlotRGBPoints"].addChild( Gaffer.BoxIn( "BoxIn9" ) ) __children["PlotRGBPoints"]["BoxIn9"].setup( Gaffer.IntPlug( "out", defaultValue = 0, ) ) __children["PlotRGBPoints"]["BoxIn9"].addChild( Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["PlotRGBPoints"].addChild( Gaffer.IntPlug( "valQ2", defaultValue = 1, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["PlotRGBPoints"].addChild( Gaffer.BoxIn( "BoxIn10" ) ) __children["PlotRGBPoints"]["BoxIn10"].setup( Gaffer.IntPlug( "out", defaultValue = 0, ) ) __children["PlotRGBPoints"]["BoxIn10"].addChild( Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["PlotRGBPoints"].addChild( Gaffer.IntPlug( "enableCube2", defaultValue = 1, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["PlotRGBPoints"].addChild( Gaffer.BoxIn( "BoxIn11" ) ) __children["PlotRGBPoints"]["BoxIn11"].setup( Gaffer.IntPlug( "out", defaultValue = 0, ) ) __children["PlotRGBPoints"]["BoxIn11"].addChild( Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["PlotRGBPoints"].addChild( Gaffer.IntPlug( "enableCube", defaultValue = 1, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["PlotRGBPoints"].addChild( Gaffer.BoxIn( "BoxIn12" ) ) __children["PlotRGBPoints"]["BoxIn12"].setup( Gaffer.FloatPlug( "out", defaultValue = 0.0, ) ) __children["PlotRGBPoints"]["BoxIn12"].addChild( Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["PlotRGBPoints"].addChild( Gaffer.FloatPlug( "scale2", defaultValue = 1.0, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["PlotRGBPoints"].addChild( Gaffer.Box( "ShuffleLayer" ) ) __children["PlotRGBPoints"]["ShuffleLayer"].addChild( Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["PlotRGBPoints"]["ShuffleLayer"].addChild( GafferImage.Shuffle( "ShuffleLayer" ) ) __children["PlotRGBPoints"]["ShuffleLayer"]["ShuffleLayer"]["user"].addChild( Gaffer.StringPlug( "inLayer", defaultValue = '', flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["PlotRGBPoints"]["ShuffleLayer"]["ShuffleLayer"]["user"].addChild( Gaffer.StringPlug( "outLayer", defaultValue = '', flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["PlotRGBPoints"]["ShuffleLayer"]["ShuffleLayer"]["channels"].addChild( GafferImage.Shuffle.ChannelPlug( "channel", flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["PlotRGBPoints"]["ShuffleLayer"]["ShuffleLayer"]["channels"].addChild( GafferImage.Shuffle.ChannelPlug( "channel1", flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["PlotRGBPoints"]["ShuffleLayer"]["ShuffleLayer"]["channels"].addChild( GafferImage.Shuffle.ChannelPlug( "channel2", flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["PlotRGBPoints"]["ShuffleLayer"]["ShuffleLayer"]["channels"].addChild( GafferImage.Shuffle.ChannelPlug( "channel3", flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["PlotRGBPoints"]["ShuffleLayer"]["ShuffleLayer"].addChild( Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["PlotRGBPoints"]["ShuffleLayer"].addChild( GafferImage.ImagePlug( "in", flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["PlotRGBPoints"]["ShuffleLayer"].addChild( Gaffer.Expression( "Expression3" ) ) __children["PlotRGBPoints"]["ShuffleLayer"]["Expression3"]["__in"].addChild( Gaffer.StringPlug( "p0", defaultValue = '', flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["PlotRGBPoints"]["ShuffleLayer"]["Expression3"]["__in"].addChild( Gaffer.StringPlug( "p1", defaultValue = '', flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["PlotRGBPoints"]["ShuffleLayer"]["Expression3"]["__out"].addChild( Gaffer.StringPlug( "p0", direction = Gaffer.Plug.Direction.Out, defaultValue = '', flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["PlotRGBPoints"]["ShuffleLayer"]["Expression3"]["__out"].addChild( Gaffer.StringPlug( "p1", direction = Gaffer.Plug.Direction.Out, defaultValue = '', flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["PlotRGBPoints"]["ShuffleLayer"]["Expression3"]["__out"].addChild( Gaffer.StringPlug( "p2", direction = Gaffer.Plug.Direction.Out, defaultValue = '', flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["PlotRGBPoints"]["ShuffleLayer"]["Expression3"]["__out"].addChild( Gaffer.StringPlug( "p3", direction = Gaffer.Plug.Direction.Out, defaultValue = '', flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["PlotRGBPoints"]["ShuffleLayer"]["Expression3"]["__out"].addChild( Gaffer.StringPlug( "p4", direction = Gaffer.Plug.Direction.Out, defaultValue = '', flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["PlotRGBPoints"]["ShuffleLayer"]["Expression3"]["__out"].addChild( Gaffer.StringPlug( "p5", direction = Gaffer.Plug.Direction.Out, defaultValue = '', flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["PlotRGBPoints"]["ShuffleLayer"]["Expression3"]["__out"].addChild( Gaffer.StringPlug( "p6", direction = Gaffer.Plug.Direction.Out, defaultValue = '', flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["PlotRGBPoints"]["ShuffleLayer"]["Expression3"]["__out"].addChild( Gaffer.StringPlug( "p7", direction = Gaffer.Plug.Direction.Out, defaultValue = '', flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["PlotRGBPoints"]["ShuffleLayer"]["Expression3"].addChild( Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["PlotRGBPoints"]["ShuffleLayer"].addChild( Gaffer.BoxIn( "BoxIn" ) ) __children["PlotRGBPoints"]["ShuffleLayer"]["BoxIn"].setup( GafferImage.ImagePlug( "out", ) ) __children["PlotRGBPoints"]["ShuffleLayer"]["BoxIn"].addChild( Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["PlotRGBPoints"]["ShuffleLayer"].addChild( Gaffer.BoxOut( "BoxOut" ) ) __children["PlotRGBPoints"]["ShuffleLayer"]["BoxOut"].setup( GafferImage.ImagePlug( "in", ) ) __children["PlotRGBPoints"]["ShuffleLayer"]["BoxOut"].addChild( Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["PlotRGBPoints"]["ShuffleLayer"].addChild( GafferImage.ImagePlug( "out", direction = Gaffer.Plug.Direction.Out, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["PlotRGBPoints"]["ShuffleLayer"].addChild( Gaffer.BoolPlug( "enabled", defaultValue = True, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["PlotRGBPoints"]["ShuffleLayer"].addChild( Gaffer.StringPlug( "inLayer", defaultValue = '', flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["PlotRGBPoints"]["ShuffleLayer"].addChild( Gaffer.StringPlug( "outLayer", defaultValue = '', flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["oslNormLuminance"] = Gaffer.Box( "oslNormLuminance" ) parent.addChild( __children["oslNormLuminance"] ) __children["oslNormLuminance"].addChild( Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["oslNormLuminance"].addChild( Gaffer.BoxIn( "BoxIn" ) ) __children["oslNormLuminance"]["BoxIn"].setup( Gaffer.Color3fPlug( "out", defaultValue = imath.Color3f( 0, 0, 0 ), ) ) __children["oslNormLuminance"]["BoxIn"].addChild( Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["oslNormLuminance"].addChild( Gaffer.Color3fPlug( "in", defaultValue = imath.Color3f( 0, 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["oslNormLuminance"].addChild( Gaffer.BoxOut( "BoxOut" ) ) __children["oslNormLuminance"]["BoxOut"].setup( Gaffer.Color3fPlug( "in", defaultValue = imath.Color3f( 0, 0, 0 ), ) ) __children["oslNormLuminance"]["BoxOut"].addChild( Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["oslNormLuminance"].addChild( Gaffer.Color3fPlug( "out", direction = Gaffer.Plug.Direction.Out, defaultValue = imath.Color3f( 0, 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["oslNormLuminance"].addChild( Gaffer.BoolPlug( "enabled", defaultValue = True, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["oslNormLuminance"].addChild( GafferOSL.OSLCode( "c" ) ) __children["oslNormLuminance"]["c"]["parameters"].addChild( Gaffer.Color3fPlug( "in", defaultValue = imath.Color3f( 0, 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["oslNormLuminance"]["c"]["parameters"].addChild( Gaffer.Color3fPlug( "w", defaultValue = imath.Color3f( 0, 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["oslNormLuminance"]["c"]["out"].addChild( Gaffer.FloatPlug( "out", direction = Gaffer.Plug.Direction.Out, defaultValue = 0.0, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["oslNormLuminance"]["c"].addChild( Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["oslNormLuminance"].addChild( Gaffer.BoxIn( "BoxIn1" ) ) __children["oslNormLuminance"]["BoxIn1"].setup( Gaffer.Color3fPlug( "out", defaultValue = imath.Color3f( 0, 0, 0 ), ) ) __children["oslNormLuminance"]["BoxIn1"].addChild( Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["oslNormLuminance"].addChild( Gaffer.Color3fPlug( "w", defaultValue = imath.Color3f( 0.212599993, 0.715200007, 0.0720999986 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["DivideColor"] = GafferOSL.OSLShader( "DivideColor" ) parent.addChild( __children["DivideColor"] ) __children["DivideColor"].loadShader( "Maths/DivideColor" ) __children["DivideColor"].addChild( Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["Dot2"] = Gaffer.Dot( "Dot2" ) parent.addChild( __children["Dot2"] ) __children["Dot2"].setup( Gaffer.Color3fPlug( "in", defaultValue = imath.Color3f( 0, 0, 0 ), ) ) __children["Dot2"].addChild( Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["MultiplyColor"] = GafferOSL.OSLShader( "MultiplyColor" ) parent.addChild( __children["MultiplyColor"] ) __children["MultiplyColor"].loadShader( "Maths/MultiplyColor" ) __children["MultiplyColor"].addChild( Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["Dot3"] = Gaffer.Dot( "Dot3" ) parent.addChild( __children["Dot3"] ) __children["Dot3"].setup( Gaffer.Color3fPlug( "in", defaultValue = imath.Color3f( 0, 0, 0 ), ) ) __children["Dot3"].addChild( Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["tonescale_daniele_evo1"] = Gaffer.Box( "tonescale_daniele_evo1" ) parent.addChild( __children["tonescale_daniele_evo1"] ) __children["tonescale_daniele_evo1"].addChild( Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["tonescale_daniele_evo1"].addChild( Gaffer.BoxIn( "BoxIn" ) ) __children["tonescale_daniele_evo1"]["BoxIn"].setup( Gaffer.Color3fPlug( "out", defaultValue = imath.Color3f( 0, 0, 0 ), ) ) __children["tonescale_daniele_evo1"]["BoxIn"].addChild( Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["tonescale_daniele_evo1"].addChild( Gaffer.Color3fPlug( "in", defaultValue = imath.Color3f( 0, 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["tonescale_daniele_evo1"].addChild( Gaffer.BoxOut( "BoxOut" ) ) __children["tonescale_daniele_evo1"]["BoxOut"].setup( Gaffer.Color3fPlug( "in", defaultValue = imath.Color3f( 0, 0, 0 ), ) ) __children["tonescale_daniele_evo1"]["BoxOut"].addChild( Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["tonescale_daniele_evo1"].addChild( Gaffer.Color3fPlug( "f", direction = Gaffer.Plug.Direction.Out, defaultValue = imath.Color3f( 0, 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["tonescale_daniele_evo1"].addChild( Gaffer.BoolPlug( "enabled", defaultValue = True, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["tonescale_daniele_evo1"].addChild( GafferOSL.OSLCode( "OSLCode" ) ) __children["tonescale_daniele_evo1"]["OSLCode"]["parameters"].addChild( Gaffer.FloatPlug( "Y", defaultValue = 0.0, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["tonescale_daniele_evo1"]["OSLCode"]["parameters"].addChild( Gaffer.FloatPlug( "s2", defaultValue = 0.0, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["tonescale_daniele_evo1"]["OSLCode"]["parameters"].addChild( Gaffer.FloatPlug( "g", defaultValue = 0.0, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["tonescale_daniele_evo1"]["OSLCode"]["parameters"].addChild( Gaffer.FloatPlug( "m2", defaultValue = 0.0, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["tonescale_daniele_evo1"]["OSLCode"]["parameters"].addChild( Gaffer.FloatPlug( "t1", defaultValue = 0.0, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["tonescale_daniele_evo1"]["OSLCode"]["parameters"].addChild( Gaffer.IntPlug( "invert", defaultValue = 0, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["tonescale_daniele_evo1"]["OSLCode"]["out"].addChild( Gaffer.FloatPlug( "f", direction = Gaffer.Plug.Direction.Out, defaultValue = 0.0, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["tonescale_daniele_evo1"]["OSLCode"]["out"].addChild( Gaffer.FloatPlug( "h", direction = Gaffer.Plug.Direction.Out, defaultValue = 0.0, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["tonescale_daniele_evo1"]["OSLCode"].addChild( Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["tonescale_daniele_evo1"].addChild( Gaffer.Expression( "Expression" ) ) __children["tonescale_daniele_evo1"]["Expression"]["__in"].addChild( Gaffer.FloatPlug( "p0", defaultValue = 128.0, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["tonescale_daniele_evo1"]["Expression"]["__in"].addChild( Gaffer.FloatPlug( "p1", defaultValue = 896.0, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["tonescale_daniele_evo1"]["Expression"]["__in"].addChild( Gaffer.FloatPlug( "p2", defaultValue = 0.0, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["tonescale_daniele_evo1"]["Expression"]["__in"].addChild( Gaffer.FloatPlug( "p3", defaultValue = 0.0, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["tonescale_daniele_evo1"]["Expression"]["__in"].addChild( Gaffer.FloatPlug( "p4", defaultValue = 0.0, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["tonescale_daniele_evo1"]["Expression"]["__in"].addChild( Gaffer.FloatPlug( "p5", defaultValue = 0.0, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["tonescale_daniele_evo1"]["Expression"]["__in"].addChild( Gaffer.FloatPlug( "p6", defaultValue = 0.0, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["tonescale_daniele_evo1"]["Expression"]["__in"].addChild( Gaffer.FloatPlug( "p7", defaultValue = 0.0, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["tonescale_daniele_evo1"]["Expression"]["__in"].addChild( Gaffer.FloatPlug( "p8", defaultValue = 0.0, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["tonescale_daniele_evo1"]["Expression"]["__out"].addChild( Gaffer.FloatPlug( "p0", direction = Gaffer.Plug.Direction.Out, defaultValue = 0.0, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["tonescale_daniele_evo1"]["Expression"]["__out"].addChild( Gaffer.FloatPlug( "p1", direction = Gaffer.Plug.Direction.Out, defaultValue = 0.0, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["tonescale_daniele_evo1"]["Expression"]["__out"].addChild( Gaffer.FloatPlug( "p2", direction = Gaffer.Plug.Direction.Out, defaultValue = 0.0, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["tonescale_daniele_evo1"]["Expression"]["__out"].addChild( Gaffer.FloatPlug( "p3", direction = Gaffer.Plug.Direction.Out, defaultValue = 0.0, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["tonescale_daniele_evo1"]["Expression"]["__out"].addChild( Gaffer.FloatPlug( "p4", direction = Gaffer.Plug.Direction.Out, defaultValue = 0.0, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["tonescale_daniele_evo1"]["Expression"]["__out"].addChild( Gaffer.FloatPlug( "p5", direction = Gaffer.Plug.Direction.Out, defaultValue = 0.0, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["tonescale_daniele_evo1"]["Expression"].addChild( Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["tonescale_daniele_evo1"].addChild( Gaffer.FloatPlug( "rhit_min", defaultValue = 128.0, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["tonescale_daniele_evo1"].addChild( Gaffer.FloatPlug( "rhit_max", defaultValue = 896.0, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["tonescale_daniele_evo1"].addChild( Gaffer.FloatPlug( "n", defaultValue = 100.0, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["tonescale_daniele_evo1"].addChild( Gaffer.FloatPlug( "n_r", defaultValue = 100.0, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["tonescale_daniele_evo1"].addChild( Gaffer.BoolPlug( "invert", defaultValue = False, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["tonescale_daniele_evo1"].addChild( Gaffer.FloatPlug( "c_d", defaultValue = 10.012999534606934, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["tonescale_daniele_evo1"].addChild( Gaffer.FloatPlug( "c", defaultValue = 0.18000000715255737, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["tonescale_daniele_evo1"].addChild( Gaffer.FloatPlug( "t1", defaultValue = 0.03999999910593033, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["tonescale_daniele_evo1"].addChild( Gaffer.FloatPlug( "w_g", defaultValue = 0.14000000059604645, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["tonescale_daniele_evo1"].addChild( Gaffer.FloatPlug( "g", defaultValue = 1.149999976158142, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["tonescale_daniele_evo1"].addChild( Gaffer.FloatPlug( "mmScaleFactor", defaultValue = 100.0, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["tonescale_daniele_evo1"].addChild( Gaffer.BoxOut( "BoxOut1" ) ) __children["tonescale_daniele_evo1"]["BoxOut1"].setup( Gaffer.Color3fPlug( "in", defaultValue = imath.Color3f( 0, 0, 0 ), ) ) __children["tonescale_daniele_evo1"]["BoxOut1"].addChild( Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["tonescale_daniele_evo1"].addChild( Gaffer.Color3fPlug( "h", direction = Gaffer.Plug.Direction.Out, defaultValue = imath.Color3f( 0, 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["tonescale_daniele_evo1"].addChild( Gaffer.FloatPlug( "daniele_m_0", defaultValue = 0.0, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["tonescale_daniele_evo1"].addChild( Gaffer.FloatPlug( "daniele_c_t", defaultValue = 0.0, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["Dot4"] = Gaffer.Dot( "Dot4" ) parent.addChild( __children["Dot4"] ) __children["Dot4"].setup( Gaffer.Color3fPlug( "in", defaultValue = imath.Color3f( 0, 0, 0 ), ) ) __children["Dot4"].addChild( Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["Dot5"] = Gaffer.Dot( "Dot5" ) parent.addChild( __children["Dot5"] ) __children["Dot5"].setup( Gaffer.Color3fPlug( "in", defaultValue = imath.Color3f( 0, 0, 0 ), ) ) __children["Dot5"].addChild( Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["HueSwatch"] = Gaffer.Box( "HueSwatch" ) parent.addChild( __children["HueSwatch"] ) __children["HueSwatch"].addChild( Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["HueSwatch"].addChild( Gaffer.BoxOut( "BoxOut" ) ) __children["HueSwatch"]["BoxOut"].setup( GafferImage.ImagePlug( "in", ) ) __children["HueSwatch"]["BoxOut"].addChild( Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["HueSwatch"].addChild( GafferImage.ImagePlug( "out", direction = Gaffer.Plug.Direction.Out, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["HueSwatch"].addChild( Gaffer.BoolPlug( "enabled", defaultValue = True, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["HueSwatch"].addChild( GafferOSL.OSLImage( "OSLImage" ) ) __children["HueSwatch"]["OSLImage"]["channels"].addChild( Gaffer.NameValuePlug( "", Gaffer.Color3fPlug( "value", defaultValue = imath.Color3f( 1, 1, 1 ), ), True, "channel", Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic ) ) __children["HueSwatch"]["OSLImage"].addChild( Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["HueSwatch"].addChild( GafferOSL.OSLCode( "OSLCode" ) ) __children["HueSwatch"]["OSLCode"]["parameters"].addChild( Gaffer.FloatPlug( "hue", defaultValue = 0.0, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["HueSwatch"]["OSLCode"]["parameters"].addChild( Gaffer.IntPlug( "valQ", defaultValue = 0, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["HueSwatch"]["OSLCode"]["parameters"].addChild( Gaffer.IntPlug( "satQ", defaultValue = 0, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["HueSwatch"]["OSLCode"]["parameters"].addChild( Gaffer.FloatPlug( "valM", defaultValue = 0.0, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["HueSwatch"]["OSLCode"]["parameters"].addChild( Gaffer.IntPlug( "steps", defaultValue = 0, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["HueSwatch"]["OSLCode"]["parameters"].addChild( Gaffer.FloatPlug( "valp", defaultValue = 0.0, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["HueSwatch"]["OSLCode"]["parameters"].addChild( Gaffer.IntPlug( "mode", defaultValue = 0, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["HueSwatch"]["OSLCode"]["out"].addChild( Gaffer.Color3fPlug( "out", direction = Gaffer.Plug.Direction.Out, defaultValue = imath.Color3f( 0, 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["HueSwatch"]["OSLCode"].addChild( Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["HueSwatch"].addChild( Gaffer.BoxIn( "BoxIn" ) ) __children["HueSwatch"]["BoxIn"].setup( Gaffer.FloatPlug( "out", defaultValue = 0.0, ) ) __children["HueSwatch"]["BoxIn"].addChild( Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["HueSwatch"].addChild( Gaffer.FloatPlug( "hue", defaultValue = 0.0, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["HueSwatch"].addChild( Gaffer.V2iPlug( "format", defaultValue = imath.V2i( 512, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["HueSwatch"].addChild( Gaffer.Expression( "Expression" ) ) __children["HueSwatch"]["Expression"]["__in"].addChild( Gaffer.IntPlug( "p0", defaultValue = 0, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["HueSwatch"]["Expression"]["__in"].addChild( Gaffer.IntPlug( "p1", defaultValue = 0, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["HueSwatch"]["Expression"]["__out"].addChild( Gaffer.IntPlug( "p0", direction = Gaffer.Plug.Direction.Out, defaultValue = -2147483648, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["HueSwatch"]["Expression"]["__out"].addChild( Gaffer.IntPlug( "p1", direction = Gaffer.Plug.Direction.Out, defaultValue = -2147483648, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["HueSwatch"]["Expression"].addChild( Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["HueSwatch"].addChild( Gaffer.BoxIn( "BoxIn3" ) ) __children["HueSwatch"]["BoxIn3"].setup( Gaffer.IntPlug( "out", defaultValue = 0, ) ) __children["HueSwatch"]["BoxIn3"].addChild( Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["HueSwatch"].addChild( Gaffer.IntPlug( "valQ", defaultValue = 0, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["HueSwatch"].addChild( Gaffer.BoxIn( "BoxIn4" ) ) __children["HueSwatch"]["BoxIn4"].setup( Gaffer.IntPlug( "out", defaultValue = 0, ) ) __children["HueSwatch"]["BoxIn4"].addChild( Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["HueSwatch"].addChild( Gaffer.IntPlug( "satQ", defaultValue = 0, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["HueSwatch"].addChild( Gaffer.BoxIn( "BoxIn5" ) ) __children["HueSwatch"]["BoxIn5"].setup( Gaffer.FloatPlug( "out", defaultValue = 0.0, ) ) __children["HueSwatch"]["BoxIn5"].addChild( Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["HueSwatch"].addChild( Gaffer.FloatPlug( "valM", defaultValue = 0.0, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["HueSwatch"].addChild( Gaffer.BoxIn( "BoxIn6" ) ) __children["HueSwatch"]["BoxIn6"].setup( Gaffer.IntPlug( "out", defaultValue = 0, ) ) __children["HueSwatch"]["BoxIn6"].addChild( Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["HueSwatch"].addChild( Gaffer.IntPlug( "steps", defaultValue = 4, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["HueSwatch"].addChild( Gaffer.BoxIn( "BoxIn7" ) ) __children["HueSwatch"]["BoxIn7"].setup( Gaffer.FloatPlug( "out", defaultValue = 0.0, ) ) __children["HueSwatch"]["BoxIn7"].addChild( Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["HueSwatch"].addChild( Gaffer.FloatPlug( "valp", defaultValue = 2.0, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["HueSwatch"].addChild( Gaffer.BoxIn( "BoxIn8" ) ) __children["HueSwatch"]["BoxIn8"].setup( Gaffer.IntPlug( "out", defaultValue = 0, ) ) __children["HueSwatch"]["BoxIn8"].addChild( Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["HueSwatch"].addChild( Gaffer.IntPlug( "mode", defaultValue = 0, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["BFD"] = Gaffer.Box( "BFD" ) parent.addChild( __children["BFD"] ) __children["BFD"].addChild( Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["BFD"].addChild( Gaffer.BoxOut( "BoxOut1" ) ) __children["BFD"]["BoxOut1"].setup( GafferImage.ImagePlug( "in", ) ) __children["BFD"]["BoxOut1"].addChild( Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["BFD"].addChild( GafferImage.ImagePlug( "out", direction = Gaffer.Plug.Direction.Out, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["BFD"].addChild( Gaffer.Loop( "Loop" ) ) __children["BFD"]["Loop"].setup( GafferImage.ImagePlug( "in", ) ) __children["BFD"]["Loop"].addChild( Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["BFD"].addChild( GafferImage.Merge( "Merge" ) ) __children["BFD"]["Merge"]["in"].addChild( GafferImage.ImagePlug( "in2", flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["BFD"]["Merge"].addChild( Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["BFD"].addChild( GafferImage.Constant( "Constant" ) ) __children["BFD"]["Constant"].addChild( Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["BFD"].addChild( Gaffer.Dot( "Dot17" ) ) __children["BFD"]["Dot17"].setup( GafferImage.ImagePlug( "in", flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.AcceptsDependencyCycles, ) ) __children["BFD"]["Dot17"].addChild( Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["BFD"].addChild( Gaffer.Expression( "Expression" ) ) __children["BFD"]["Expression"]["__in"].addChild( GafferImage.AtomicFormatPlug( "p0", defaultValue = GafferImage.Format(), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["BFD"]["Expression"]["__in"].addChild( Gaffer.FloatPlug( "p1", defaultValue = 0.0, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["BFD"]["Expression"]["__in"].addChild( Gaffer.IntPlug( "p2", defaultValue = 0, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["BFD"]["Expression"]["__in"].addChild( Gaffer.IntPlug( "p3", defaultValue = 0, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["BFD"]["Expression"]["__out"].addChild( Gaffer.V2iPlug( "p0", direction = Gaffer.Plug.Direction.Out, defaultValue = imath.V2i( -2147483648, -2147483648 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["BFD"]["Expression"]["__out"].addChild( Gaffer.IntPlug( "p1", direction = Gaffer.Plug.Direction.Out, defaultValue = 0, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["BFD"]["Expression"]["__out"].addChild( Gaffer.IntPlug( "p2", direction = Gaffer.Plug.Direction.Out, defaultValue = 0, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["BFD"]["Expression"]["__out"].addChild( Gaffer.V2iPlug( "p3", direction = Gaffer.Plug.Direction.Out, defaultValue = imath.V2i( -2147483648, -2147483648 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["BFD"]["Expression"].addChild( Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["BFD"].addChild( GafferImage.Resize( "Resize" ) ) __children["BFD"]["Resize"].addChild( Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["BFD"].addChild( Gaffer.Expression( "Expression4" ) ) __children["BFD"]["Expression4"]["__in"].addChild( Gaffer.IntPlug( "p0", defaultValue = 6, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["BFD"]["Expression4"]["__in"].addChild( Gaffer.IntPlug( "p1", defaultValue = 3, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["BFD"]["Expression4"]["__out"].addChild( Gaffer.IntPlug( "p0", direction = Gaffer.Plug.Direction.Out, defaultValue = 10, minValue = 0, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["BFD"]["Expression4"].addChild( Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["BFD"].addChild( Gaffer.BoxIn( "BoxIn" ) ) __children["BFD"]["BoxIn"].setup( GafferImage.ImagePlug( "out", ) ) __children["BFD"]["BoxIn"].addChild( Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["BFD"].addChild( GafferImage.ImagePlug( "in", flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["BFD"].addChild( Gaffer.BoolPlug( "enabled", defaultValue = True, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["BFD"].addChild( Gaffer.V2iPlug( "grid", defaultValue = imath.V2i( 6, 3 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["BFD"].addChild( Gaffer.FloatPlug( "div", defaultValue = 2.0, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["BFD"].addChild( GafferImage.Offset( "Offset" ) ) __children["BFD"]["Offset"].addChild( Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["BFD"].addChild( Gaffer.IntPlug( "index", defaultValue = 0, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["BFD"].addChild( Gaffer.Expression( "exprSetParentIDX" ) ) __children["BFD"]["exprSetParentIDX"]["__out"].addChild( Gaffer.IntPlug( "p0", direction = Gaffer.Plug.Direction.Out, defaultValue = 0, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["BFD"]["exprSetParentIDX"].addChild( Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["Dot6"] = Gaffer.Dot( "Dot6" ) parent.addChild( __children["Dot6"] ) __children["Dot6"].setup( Gaffer.Color3fPlug( "in", defaultValue = imath.Color3f( 0, 0, 0 ), ) ) __children["Dot6"].addChild( Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["Dot7"] = Gaffer.Dot( "Dot7" ) parent.addChild( __children["Dot7"] ) __children["Dot7"].setup( GafferImage.ImagePlug( "in", ) ) __children["Dot7"].addChild( Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) parent["frame"].setValue( 3.0 ) parent["variables"]["imageCataloguePort"]["value"].setValue( 40983 ) Gaffer.Metadata.registerValue( parent["variables"]["imageCataloguePort"], 'readOnly', True ) Gaffer.Metadata.registerValue( parent["variables"]["projectName"]["name"], 'readOnly', True ) Gaffer.Metadata.registerValue( parent["variables"]["projectRootDirectory"]["name"], 'readOnly', True ) __children["openColorIO"]["config"].setValue( 'ocio://studio-config-v1.0.0_aces-v1.3_ocio-v2.1' ) __children["openColorIO"]["displayTransform"].setValue( 'sRGB - Display/Raw' ) Gaffer.Metadata.registerValue( __children["Expression"], 'noduleLayout:customGadget:addButtonTop:visible', True ) Gaffer.Metadata.registerValue( __children["Expression"], 'noduleLayout:customGadget:addButtonBottom:visible', True ) Gaffer.Metadata.registerValue( __children["Expression"], 'noduleLayout:customGadget:addButtonLeft:visible', True ) Gaffer.Metadata.registerValue( __children["Expression"], 'noduleLayout:customGadget:addButtonRight:visible', True ) __children["Expression"]["__in"]["p0"].setInput( __children["BFD"]["grid"] ) __children["Expression"]["__in"]["p1"].setInput( __children["BFD"]["index"] ) __children["Expression"]["__uiPosition"].setValue( imath.V2f( -42.2971535, 15.7843046 ) ) Gaffer.Metadata.registerValue( __children["inLayer"], 'noduleLayout:customGadget:addButtonTop:visible', True ) Gaffer.Metadata.registerValue( __children["inLayer"], 'noduleLayout:customGadget:addButtonBottom:visible', True ) Gaffer.Metadata.registerValue( __children["inLayer"], 'noduleLayout:customGadget:addButtonLeft:visible', True ) Gaffer.Metadata.registerValue( __children["inLayer"], 'noduleLayout:customGadget:addButtonRight:visible', True ) __children["inLayer"]["code"].setValue( 'color rgb = inLayer("", 0);\n\nout = rgb;' ) __children["inLayer"]["__uiPosition"].setValue( imath.V2f( -316.113892, 69.3596115 ) ) __children["OSLImage"]["in"].setInput( __children["Dot7"]["out"] ) __children["OSLImage"]["channels"]["channel"]["value"].setInput( __children["Switch1"]["out"] ) __children["OSLImage"]["__uiPosition"].setValue( imath.V2f( -52.4921112, -84.7723312 ) ) Gaffer.Metadata.registerValue( __children["Backdrop"], 'nodeGadget:color', imath.Color3f( 0.075000003, 0.075000003, 0.075000003 ) ) __children["Backdrop"]["title"].setValue( '' ) __children["Backdrop"]["scale"].setValue( 2.0 ) __children["Backdrop"]["__uiPosition"].setValue( imath.V2f( -58.9547882, 90.8881989 ) ) __children["Backdrop"]["__uiBound"].setValue( imath.Box2f( imath.V2f( -265.062134, -194.609894 ), imath.V2f( -14.2956772, 0.0544586182 ) ) ) Gaffer.MetadataAlgo.setNumericBookmark( __children["Dot"].scriptNode(), 5, __children["Dot"] ) __children["Dot"]["in"].setInput( __children["OSLImage"]["out"] ) __children["Dot"]["__uiPosition"].setValue( imath.V2f( -52.4921112, -101.197327 ) ) Gaffer.Metadata.registerValue( __children["Switch1"], 'noduleLayout:customGadget:addButtonTop:visible', True ) Gaffer.Metadata.registerValue( __children["Switch1"], 'noduleLayout:customGadget:addButtonBottom:visible', True ) Gaffer.Metadata.registerValue( __children["Switch1"], 'noduleLayout:customGadget:addButtonLeft:visible', True ) Gaffer.Metadata.registerValue( __children["Switch1"], 'noduleLayout:customGadget:addButtonRight:visible', True ) __children["Switch1"]["index"].setValue( 1 ) Gaffer.Metadata.registerValue( __children["Switch1"]["in"], 'noduleLayout:section', 'top' ) __children["Switch1"]["in"][0].setInput( __children["Dot6"]["out"] ) __children["Switch1"]["in"][1].setInput( __children["MultiplyColor"]["out"]["out"] ) Gaffer.Metadata.registerValue( __children["Switch1"]["out"], 'noduleLayout:section', 'bottom' ) __children["Switch1"]["__uiPosition"].setValue( imath.V2f( -112.268463, -79.9300842 ) ) Gaffer.Metadata.registerValue( __children["oslGamutConvert"], 'noduleLayout:customGadget:addButtonTop:visible', False ) Gaffer.Metadata.registerValue( __children["oslGamutConvert"], 'noduleLayout:customGadget:addButtonBottom:visible', False ) Gaffer.Metadata.registerValue( __children["oslGamutConvert"], 'noduleLayout:customGadget:addButtonLeft:visible', False ) Gaffer.Metadata.registerValue( __children["oslGamutConvert"], 'noduleLayout:customGadget:addButtonRight:visible', False ) Gaffer.Metadata.registerValue( __children["oslGamutConvert"], 'description', '' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert"], 'uiEditor:emptySections', IECore.StringVectorData( [ ] ) ) Gaffer.Metadata.registerValue( __children["oslGamutConvert"], 'uiEditor:emptySectionIndices', IECore.IntVectorData( [ ] ) ) __children["oslGamutConvert"]["__uiPosition"].setValue( imath.V2f( -298.993896, 64.8563461 ) ) Gaffer.Metadata.registerValue( __children["oslGamutConvert"]["ColorMatrix"], 'noduleLayout:customGadget:addButtonTop:visible', True ) Gaffer.Metadata.registerValue( __children["oslGamutConvert"]["ColorMatrix"], 'noduleLayout:customGadget:addButtonBottom:visible', True ) Gaffer.Metadata.registerValue( __children["oslGamutConvert"]["ColorMatrix"], 'noduleLayout:customGadget:addButtonLeft:visible', True ) Gaffer.Metadata.registerValue( __children["oslGamutConvert"]["ColorMatrix"], 'noduleLayout:customGadget:addButtonRight:visible', True ) __children["oslGamutConvert"]["ColorMatrix"]["parameters"]["m0"].setInput( __children["oslGamutConvert"]["Expression4"]["__out"]["p0"] ) __children["oslGamutConvert"]["ColorMatrix"]["parameters"]["m1"].setInput( __children["oslGamutConvert"]["Expression4"]["__out"]["p1"] ) __children["oslGamutConvert"]["ColorMatrix"]["parameters"]["m2"].setInput( __children["oslGamutConvert"]["Expression4"]["__out"]["p2"] ) __children["oslGamutConvert"]["ColorMatrix"]["parameters"]["in"].setInput( __children["oslGamutConvert"]["BoxIn"]["out"] ) __children["oslGamutConvert"]["ColorMatrix"]["code"].setValue( 'out.r = dot(m0, in);\nout.g = dot(m1, in);\nout.b = dot(m2, in);' ) __children["oslGamutConvert"]["ColorMatrix"]["__uiPosition"].setValue( imath.V2f( -593.35083, 5.33377171 ) ) __children["oslGamutConvert"]["Expression4"]["__in"]["p0"].setInput( __children["oslGamutConvert"]["gamutIn"] ) __children["oslGamutConvert"]["Expression4"]["__in"]["p1"].setInput( __children["oslGamutConvert"]["gamutOut"] ) __children["oslGamutConvert"]["Expression4"]["__uiPosition"].setValue( imath.V2f( -600.471619, 12.8735418 ) ) __children["oslGamutConvert"]["BoxIn"]["__in"].setInput( __children["oslGamutConvert"]["in"] ) Gaffer.Metadata.registerValue( __children["oslGamutConvert"]["BoxIn"]["__in"], 'nodule:color', imath.Color3f( 0.689999998, 0.537800014, 0.228300005 ) ) Gaffer.Metadata.registerValue( __children["oslGamutConvert"]["BoxIn"]["__in"], 'noduleLayout:section', 'left' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert"]["BoxIn"]["__in"], 'userDefault', None ) Gaffer.Metadata.registerValue( __children["oslGamutConvert"]["BoxIn"]["__in"], 'description', '' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert"]["BoxIn"]["__in"], 'label', 'c' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert"]["BoxIn"]["__in"], 'presetNames', None ) Gaffer.Metadata.registerValue( __children["oslGamutConvert"]["BoxIn"]["__in"], 'presetValues', None ) Gaffer.Metadata.registerValue( __children["oslGamutConvert"]["BoxIn"]["__in"], 'plugValueWidget:type', None ) Gaffer.Metadata.registerValue( __children["oslGamutConvert"]["BoxIn"]["__in"], 'nodule:type', None ) Gaffer.Metadata.registerValue( __children["oslGamutConvert"]["BoxIn"]["__in"], 'noduleLayout:visible', True ) Gaffer.Metadata.registerValue( __children["oslGamutConvert"]["BoxIn"]["__in"], 'noduleLayout:label', None ) Gaffer.Metadata.registerValue( __children["oslGamutConvert"]["BoxIn"]["__in"], 'renameable', True ) Gaffer.Metadata.registerValue( __children["oslGamutConvert"]["BoxIn"]["__in"], 'deletable', True ) Gaffer.Metadata.registerValue( __children["oslGamutConvert"]["BoxIn"]["__in"]["r"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) Gaffer.Metadata.registerValue( __children["oslGamutConvert"]["BoxIn"]["__in"]["r"], 'noduleLayout:section', 'left' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert"]["BoxIn"]["__in"]["r"], 'userDefault', None ) Gaffer.Metadata.registerValue( __children["oslGamutConvert"]["BoxIn"]["__in"]["r"], 'noduleLayout:label', 'c.r' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert"]["BoxIn"]["__in"]["g"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) Gaffer.Metadata.registerValue( __children["oslGamutConvert"]["BoxIn"]["__in"]["g"], 'noduleLayout:section', 'left' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert"]["BoxIn"]["__in"]["g"], 'userDefault', None ) Gaffer.Metadata.registerValue( __children["oslGamutConvert"]["BoxIn"]["__in"]["g"], 'noduleLayout:label', 'c.g' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert"]["BoxIn"]["__in"]["b"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) Gaffer.Metadata.registerValue( __children["oslGamutConvert"]["BoxIn"]["__in"]["b"], 'noduleLayout:section', 'left' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert"]["BoxIn"]["__in"]["b"], 'userDefault', None ) Gaffer.Metadata.registerValue( __children["oslGamutConvert"]["BoxIn"]["__in"]["b"], 'noduleLayout:label', 'c.b' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert"]["BoxIn"]["out"], 'noduleLayout:section', 'right' ) __children["oslGamutConvert"]["BoxIn"]["__uiPosition"].setValue( imath.V2f( -608.49762, 9.83449078 ) ) __children["oslGamutConvert"]["in"].setInput( __children["Dot4"]["out"] ) Gaffer.Metadata.registerValue( __children["oslGamutConvert"]["in"], 'nodule:color', imath.Color3f( 0.689999998, 0.537800014, 0.228300005 ) ) Gaffer.Metadata.registerValue( __children["oslGamutConvert"]["in"], 'noduleLayout:section', 'top' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert"]["in"], 'userDefault', None ) Gaffer.Metadata.registerValue( __children["oslGamutConvert"]["in"], 'description', '' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert"]["in"], 'presetNames', None ) Gaffer.Metadata.registerValue( __children["oslGamutConvert"]["in"], 'presetValues', None ) Gaffer.Metadata.registerValue( __children["oslGamutConvert"]["in"], 'plugValueWidget:type', '' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert"]["in"], 'nodule:type', None ) Gaffer.Metadata.registerValue( __children["oslGamutConvert"]["in"], 'noduleLayout:visible', True ) Gaffer.Metadata.registerValue( __children["oslGamutConvert"]["in"], 'noduleLayout:label', None ) Gaffer.Metadata.registerValue( __children["oslGamutConvert"]["in"], 'renameable', True ) Gaffer.Metadata.registerValue( __children["oslGamutConvert"]["in"], 'deletable', True ) Gaffer.Metadata.registerValue( __children["oslGamutConvert"]["in"], 'layout:section', 'Settings' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert"]["in"], 'layout:index', 0 ) Gaffer.Metadata.registerValue( __children["oslGamutConvert"]["in"]["r"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) Gaffer.Metadata.registerValue( __children["oslGamutConvert"]["in"]["r"], 'noduleLayout:section', 'left' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert"]["in"]["r"], 'userDefault', None ) Gaffer.Metadata.registerValue( __children["oslGamutConvert"]["in"]["r"], 'noduleLayout:label', 'c.r' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert"]["in"]["g"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) Gaffer.Metadata.registerValue( __children["oslGamutConvert"]["in"]["g"], 'noduleLayout:section', 'left' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert"]["in"]["g"], 'userDefault', None ) Gaffer.Metadata.registerValue( __children["oslGamutConvert"]["in"]["g"], 'noduleLayout:label', 'c.g' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert"]["in"]["b"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) Gaffer.Metadata.registerValue( __children["oslGamutConvert"]["in"]["b"], 'noduleLayout:section', 'left' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert"]["in"]["b"], 'userDefault', None ) Gaffer.Metadata.registerValue( __children["oslGamutConvert"]["in"]["b"], 'noduleLayout:label', 'c.b' ) __children["oslGamutConvert"]["BoxOut"]["in"].setInput( __children["oslGamutConvert"]["ColorMatrix"]["out"]["out"] ) Gaffer.Metadata.registerValue( __children["oslGamutConvert"]["BoxOut"]["in"], 'noduleLayout:section', 'left' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert"]["BoxOut"]["__out"], 'nodule:color', imath.Color3f( 0.689999998, 0.537800014, 0.228300005 ) ) Gaffer.Metadata.registerValue( __children["oslGamutConvert"]["BoxOut"]["__out"], 'noduleLayout:section', 'right' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert"]["BoxOut"]["__out"], 'noduleLayout:visible', True ) Gaffer.Metadata.registerValue( __children["oslGamutConvert"]["BoxOut"]["__out"], 'noduleLayout:label', None ) Gaffer.Metadata.registerValue( __children["oslGamutConvert"]["BoxOut"]["__out"], 'renameable', True ) Gaffer.Metadata.registerValue( __children["oslGamutConvert"]["BoxOut"]["__out"], 'deletable', True ) Gaffer.Metadata.registerValue( __children["oslGamutConvert"]["BoxOut"]["__out"], 'label', 'out' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert"]["BoxOut"]["__out"]["r"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) Gaffer.Metadata.registerValue( __children["oslGamutConvert"]["BoxOut"]["__out"]["g"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) Gaffer.Metadata.registerValue( __children["oslGamutConvert"]["BoxOut"]["__out"]["b"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) __children["oslGamutConvert"]["BoxOut"]["passThrough"].setInput( __children["oslGamutConvert"]["BoxIn"]["out"] ) __children["oslGamutConvert"]["BoxOut"]["enabled"].setInput( __children["oslGamutConvert"]["enabled"] ) __children["oslGamutConvert"]["BoxOut"]["__uiPosition"].setValue( imath.V2f( -581.270325, 5.33377171 ) ) __children["oslGamutConvert"]["out"].setInput( __children["oslGamutConvert"]["BoxOut"]["__out"] ) Gaffer.Metadata.registerValue( __children["oslGamutConvert"]["out"], 'nodule:color', imath.Color3f( 0.689999998, 0.537800014, 0.228300005 ) ) Gaffer.Metadata.registerValue( __children["oslGamutConvert"]["out"], 'noduleLayout:section', 'bottom' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert"]["out"], 'noduleLayout:visible', True ) Gaffer.Metadata.registerValue( __children["oslGamutConvert"]["out"], 'noduleLayout:label', None ) Gaffer.Metadata.registerValue( __children["oslGamutConvert"]["out"], 'renameable', True ) Gaffer.Metadata.registerValue( __children["oslGamutConvert"]["out"], 'deletable', True ) Gaffer.Metadata.registerValue( __children["oslGamutConvert"]["out"], 'label', 'out' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert"]["out"], 'layout:section', 'Settings' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert"]["out"], 'layout:index', 1 ) Gaffer.Metadata.registerValue( __children["oslGamutConvert"]["out"], 'plugValueWidget:type', '' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert"]["out"]["r"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) Gaffer.Metadata.registerValue( __children["oslGamutConvert"]["out"]["g"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) Gaffer.Metadata.registerValue( __children["oslGamutConvert"]["out"]["b"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) __children["oslGamutConvert"]["gamutIn"].setValue( 'Rec709' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert"]["gamutIn"], 'nodule:type', '' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert"]["gamutIn"], 'layout:section', 'Settings' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert"]["gamutIn"], 'plugValueWidget:type', 'GafferUI.PresetsPlugValueWidget' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert"]["gamutIn"], 'description', '' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert"]["gamutIn"], 'layout:index', 2 ) Gaffer.Metadata.registerValue( __children["oslGamutConvert"]["gamutIn"], 'preset:XYZ', 'XYZ' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert"]["gamutIn"], 'preset:ACES', 'ACES' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert"]["gamutIn"], 'preset:ACEScg', 'ACEScg' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert"]["gamutIn"], 'preset:FilmlightEGamut', 'FilmlightEGamut' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert"]["gamutIn"], 'preset:DavinciWideGamut', 'DavinciWideGamut' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert"]["gamutIn"], 'preset:Rec709', 'Rec709' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert"]["gamutIn"], 'preset:Rec2020', 'Rec2020' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert"]["gamutIn"], 'preset:P3D65', 'P3D65' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert"]["gamutIn"], 'preset:ArriWideGamut3', 'ArriWideGamut3' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert"]["gamutIn"], 'preset:ArriWideGamut4', 'ArriWideGamut4' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert"]["gamutIn"], 'preset:RedWideGamutRGB', 'ArriWideGamut4' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert"]["gamutIn"], 'preset:SonySGamut3', 'SonySGamut3' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert"]["gamutIn"], 'preset:SonySGamut3.Cine', 'SonySGamut3.Cine' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert"]["gamutIn"], 'preset:PanasonicVGamut', 'PanasonicVGamut' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert"]["gamutIn"], 'preset:DJIDGamut', 'DJIDGamut' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert"]["gamutIn"], 'preset:BlackmagicWideGamut', 'BlackmagicWideGamut' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert"]["gamutOut"], 'nodule:type', '' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert"]["gamutOut"], 'layout:section', 'Settings' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert"]["gamutOut"], 'plugValueWidget:type', 'GafferUI.PresetsPlugValueWidget' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert"]["gamutOut"], 'preset:XYZ', 'XYZ' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert"]["gamutOut"], 'preset:ACES', 'ACES' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert"]["gamutOut"], 'preset:ACEScg', 'ACEScg' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert"]["gamutOut"], 'preset:FilmlightEGamut', 'FilmlightEGamut' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert"]["gamutOut"], 'preset:DavinciWideGamut', 'DavinciWideGamut' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert"]["gamutOut"], 'preset:Rec709', 'Rec709' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert"]["gamutOut"], 'preset:Rec2020', 'Rec2020' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert"]["gamutOut"], 'preset:P3D65', 'P3D65' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert"]["gamutOut"], 'preset:ArriWideGamut3', 'ArriWideGamut3' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert"]["gamutOut"], 'preset:ArriWideGamut4', 'ArriWideGamut4' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert"]["gamutOut"], 'preset:RedWideGamutRGB', 'ArriWideGamut4' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert"]["gamutOut"], 'preset:SonySGamut3', 'SonySGamut3' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert"]["gamutOut"], 'preset:SonySGamut3.Cine', 'SonySGamut3.Cine' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert"]["gamutOut"], 'preset:PanasonicVGamut', 'PanasonicVGamut' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert"]["gamutOut"], 'preset:DJIDGamut', 'DJIDGamut' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert"]["gamutOut"], 'preset:BlackmagicWideGamut', 'BlackmagicWideGamut' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert"]["gamutOut"], 'layout:index', 3 ) Gaffer.Metadata.registerValue( __children["oslGamutConvert"]["enabled"], 'layout:section', 'Node' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert"]["enabled"], 'layout:index', 4 ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh1"], 'description', '' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh1"], 'documentation:url', '' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh1"], 'noduleLayout:customGadget:addButtonTop:visible', False ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh1"], 'noduleLayout:customGadget:addButtonBottom:visible', False ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh1"], 'noduleLayout:customGadget:addButtonLeft:visible', False ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh1"], 'noduleLayout:customGadget:addButtonRight:visible', False ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh1"], 'uiEditor:emptySections', IECore.StringVectorData( [ ] ) ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh1"], 'uiEditor:emptySectionIndices', IECore.IntVectorData( [ ] ) ) __children["Hellwig2022_JMh1"]["__uiPosition"].setValue( imath.V2f( -298.993896, 56.3563614 ) ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh1"]["BoxIn"], 'noduleLayout:customGadget:addButtonTop:visible', True ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh1"]["BoxIn"], 'noduleLayout:customGadget:addButtonBottom:visible', True ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh1"]["BoxIn"], 'noduleLayout:customGadget:addButtonLeft:visible', True ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh1"]["BoxIn"], 'noduleLayout:customGadget:addButtonRight:visible', True ) __children["Hellwig2022_JMh1"]["BoxIn"]["__in"].setInput( __children["Hellwig2022_JMh1"]["in"] ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh1"]["BoxIn"]["__in"], 'nodule:color', imath.Color3f( 0.689999998, 0.537800014, 0.228300005 ) ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh1"]["BoxIn"]["__in"], 'noduleLayout:section', 'right' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh1"]["BoxIn"]["__in"], 'noduleLayout:visible', True ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh1"]["BoxIn"]["__in"], 'noduleLayout:label', None ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh1"]["BoxIn"]["__in"], 'renameable', True ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh1"]["BoxIn"]["__in"], 'deletable', True ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh1"]["BoxIn"]["__in"], 'label', 'out' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh1"]["BoxIn"]["__in"]["r"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh1"]["BoxIn"]["__in"]["g"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh1"]["BoxIn"]["__in"]["b"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh1"]["BoxIn"]["out"], 'noduleLayout:section', 'bottom' ) __children["Hellwig2022_JMh1"]["BoxIn"]["__uiPosition"].setValue( imath.V2f( -10.6072626, 0.199999809 ) ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh1"]["BoxOut"], 'noduleLayout:customGadget:addButtonTop:visible', True ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh1"]["BoxOut"], 'noduleLayout:customGadget:addButtonBottom:visible', True ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh1"]["BoxOut"], 'noduleLayout:customGadget:addButtonLeft:visible', True ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh1"]["BoxOut"], 'noduleLayout:customGadget:addButtonRight:visible', True ) __children["Hellwig2022_JMh1"]["BoxOut"]["in"].setInput( __children["Hellwig2022_JMh1"]["code"]["out"]["out"] ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh1"]["BoxOut"]["in"], 'noduleLayout:section', 'top' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh1"]["BoxOut"]["__out"], 'nodule:color', imath.Color3f( 0.689999998, 0.537800014, 0.228300005 ) ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh1"]["BoxOut"]["__out"], 'deletable', True ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh1"]["BoxOut"]["__out"], 'renameable', True ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh1"]["BoxOut"]["__out"], 'noduleLayout:section', 'top' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh1"]["BoxOut"]["__out"], 'userDefault', None ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh1"]["BoxOut"]["__out"], 'description', '' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh1"]["BoxOut"]["__out"], 'label', 'in' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh1"]["BoxOut"]["__out"], 'presetNames', None ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh1"]["BoxOut"]["__out"], 'presetValues', None ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh1"]["BoxOut"]["__out"], 'plugValueWidget:type', '' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh1"]["BoxOut"]["__out"], 'noduleLayout:visible', True ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh1"]["BoxOut"]["__out"], 'noduleLayout:label', None ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh1"]["BoxOut"]["__out"]["r"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh1"]["BoxOut"]["__out"]["r"], 'noduleLayout:section', 'left' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh1"]["BoxOut"]["__out"]["r"], 'userDefault', None ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh1"]["BoxOut"]["__out"]["r"], 'noduleLayout:label', 'in.r' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh1"]["BoxOut"]["__out"]["g"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh1"]["BoxOut"]["__out"]["g"], 'noduleLayout:section', 'left' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh1"]["BoxOut"]["__out"]["g"], 'userDefault', None ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh1"]["BoxOut"]["__out"]["g"], 'noduleLayout:label', 'in.g' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh1"]["BoxOut"]["__out"]["b"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh1"]["BoxOut"]["__out"]["b"], 'noduleLayout:section', 'left' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh1"]["BoxOut"]["__out"]["b"], 'userDefault', None ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh1"]["BoxOut"]["__out"]["b"], 'noduleLayout:label', 'in.b' ) __children["Hellwig2022_JMh1"]["BoxOut"]["passThrough"].setInput( __children["Hellwig2022_JMh1"]["BoxIn"]["out"] ) __children["Hellwig2022_JMh1"]["BoxOut"]["enabled"].setInput( __children["Hellwig2022_JMh1"]["enabled"] ) __children["Hellwig2022_JMh1"]["BoxOut"]["__uiPosition"].setValue( imath.V2f( 3.43021488, -8.30000019 ) ) __children["Hellwig2022_JMh1"]["in"].setInput( __children["oslGamutConvert"]["out"] ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh1"]["in"], 'nodule:color', imath.Color3f( 0.689999998, 0.537800014, 0.228300005 ) ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh1"]["in"], 'noduleLayout:section', 'top' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh1"]["in"], 'noduleLayout:visible', True ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh1"]["in"], 'noduleLayout:label', None ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh1"]["in"], 'renameable', True ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh1"]["in"], 'deletable', True ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh1"]["in"], 'label', 'out' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh1"]["in"], 'plugValueWidget:type', '' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh1"]["in"], 'layout:section', 'Settings' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh1"]["in"], 'layout:index', 0 ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh1"]["in"]["r"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh1"]["in"]["g"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh1"]["in"]["b"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) __children["Hellwig2022_JMh1"]["out"].setInput( __children["Hellwig2022_JMh1"]["BoxOut"]["__out"] ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh1"]["out"], 'nodule:color', imath.Color3f( 0.689999998, 0.537800014, 0.228300005 ) ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh1"]["out"], 'deletable', True ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh1"]["out"], 'renameable', True ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh1"]["out"], 'noduleLayout:section', 'bottom' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh1"]["out"], 'userDefault', None ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh1"]["out"], 'description', '' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh1"]["out"], 'label', 'in' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh1"]["out"], 'presetNames', None ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh1"]["out"], 'presetValues', None ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh1"]["out"], 'noduleLayout:visible', True ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh1"]["out"], 'noduleLayout:label', None ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh1"]["out"], 'plugValueWidget:type', '' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh1"]["out"], 'layout:section', 'Settings' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh1"]["out"], 'layout:index', 1 ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh1"]["out"]["r"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh1"]["out"]["r"], 'noduleLayout:section', 'left' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh1"]["out"]["r"], 'userDefault', None ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh1"]["out"]["r"], 'noduleLayout:label', 'in.r' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh1"]["out"]["g"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh1"]["out"]["g"], 'noduleLayout:section', 'left' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh1"]["out"]["g"], 'userDefault', None ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh1"]["out"]["g"], 'noduleLayout:label', 'in.g' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh1"]["out"]["b"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh1"]["out"]["b"], 'noduleLayout:section', 'left' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh1"]["out"]["b"], 'userDefault', None ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh1"]["out"]["b"], 'noduleLayout:label', 'in.b' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh1"]["enabled"], 'layout:section', 'Node' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh1"]["enabled"], 'layout:index', 6 ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh1"]["code"], 'noduleLayout:customGadget:addButtonTop:visible', True ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh1"]["code"], 'noduleLayout:customGadget:addButtonBottom:visible', True ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh1"]["code"], 'noduleLayout:customGadget:addButtonLeft:visible', True ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh1"]["code"], 'noduleLayout:customGadget:addButtonRight:visible', True ) __children["Hellwig2022_JMh1"]["code"]["parameters"]["XYZ"].setInput( __children["Hellwig2022_JMh1"]["BoxIn"]["out"] ) __children["Hellwig2022_JMh1"]["code"]["parameters"]["compressMode"].setInput( __children["Hellwig2022_JMh1"]["compressMode"] ) __children["Hellwig2022_JMh1"]["code"]["parameters"]["viewingConditions"].setInput( __children["Hellwig2022_JMh1"]["viewingConditions"] ) __children["Hellwig2022_JMh1"]["code"]["parameters"]["invert"].setInput( __children["Hellwig2022_JMh1"]["invert"] ) __children["Hellwig2022_JMh1"]["code"]["parameters"]["whitepoint"].setInput( __children["Hellwig2022_JMh1"]["whitepoint"] ) __children["Hellwig2022_JMh1"]["code"]["code"].setValue( '// Multiply 3x3 matrix m and color v\ncolor vdot(float m[], color v) {\n\treturn color(m[0]*v[0] + m[1]*v[1] + m[2]*v[2], m[3]*v[0] + m[4]*v[1] + m[5]*v[2], m[6]*v[0] + m[7]*v[1] + m[8]*v[2]);\n}\n\n\ncolor compress_bjorn (color xyz) {\n float x = xyz.r;\n float y = xyz.g;\n float z = xyz.b;\n\n float C = (x+y+z)/3;\n if (C == 0.0) return xyz;\n\n float R = sqrt(pow((x-C),2) + pow((y-C),2) + pow((z-C),2));\n R = R * 0.816496580927726;\n\n if (R != 0.0) {\n x = (x-C)/R;\n y = (y-C)/R;\n z = (z-C)/R;\n }\n\n float r = R/C;\n float s = -min(x, min(y, z));\n\n float t = 0.0;\n if (r > 0.000001) {\n t = (0.5+pow((pow((s-0.5),2) + pow((sqrt(4/pow(r,2)+1)-1),2)/4),0.5));\n if (t < 0.000001) return xyz;\n t = 1/t;\n }\n\n x = C*x*t + C;\n y = C*y*t + C;\n z = C*z*t + C;\n\n return color(x,y,z);\n}\n\n\ncolor uncompress_bjorn (color xyz) {\n float x = xyz.r;\n float y = xyz.g;\n float z = xyz.b;\n\n float C = (x+y+z)*(1.0/3.0);\n if (C == 0.0) return xyz;\n\n float R = sqrt(pow((x-C),2) + pow((y-C),2) + pow((z-C),2));\n R = R * 0.816496580927726;\n\n if (R != 0.0) {\n x = (x-C)/R;\n y = (y-C)/R;\n z = (z-C)/R;\n }\n\n float t = R/C;\n float s = -min(x, min(y, z));\n\n float r = 0.0;\n if (t > 0.000001) {\n r = sqrt(pow((2*sqrt(pow((1/t-0.5),2)-pow((s-0.5),2))+1),2)-1);\n if (r < 0.000001)\n return xyz;\n r = 2/r;\n }\n\n x = C*x*r + C;\n y = C*y*r + C;\n z = C*z*r + C;\n\n return color(x,y,z);\n}\n\n\n\n\n\n\ncolor surround;\nif (viewingConditions == 0) // "Dark": InductionFactors_CIECAM02(0.8, 0.525, 0.8),\n\tsurround = color(0.8, 0.525, 0.8);\nelse if (viewingConditions == 1) // "Dim": InductionFactors_CIECAM02(0.9, 0.59, 0.9),\n\tsurround = color(0.9, 0.59, 0.9);\nelse if (viewingConditions == 2) // "Average": InductionFactors_CIECAM02(1, 0.69, 1),\n\tsurround = color(1.0, 0.69, 1.0);\n\n\nfloat referenceLuminance = 100.0;\n\n\n// Matrix converts from the custom CAMDRT v42-pex chromaticity coordinates: \n// 0.82 0.175 -1.3 1.8 0.13 -0.1 0.333 0.333 to XYZ\nfloat MATRIX_16[9] = { 0.595158, 0.439409, -0.0344635, -0.233358, 1.08935, 0.143579, 0.0572735, -0.303878, 1.24287 };\n\ncolor XYZ_w;\nif (whitepoint == 0) XYZ_w = color(1,1,1); // referenceWhite\nelse if (whitepoint == 1) XYZ_w = color(0.950684, 1.0, 1.088867); // limitWhite :thinking_face:\nelse if (whitepoint == 2) XYZ_w = color(0.950455927052, 1.0, 1.08905775076); // D65\nelse if (whitepoint == 3) XYZ_w = color(0.95264607457, 1.0, 1.00882518435); // ACES white (~D60)\n\n\nfloat XYZ_w_scaler = 100.0;\nXYZ_w = XYZ_w * XYZ_w_scaler;\nfloat Y_w = XYZ_w.g;\n\nfloat L_A = 100.0; // input adapting field\nfloat Y_b = 20.0; // input background luminance\n\ncolor RGB_w = vdot(MATRIX_16, XYZ_w);\nfloat D = 1.0; // discountIlluminant disabled\n\n// # Viewing conditions dependent parameters\nfloat k = 1 / (5 * L_A + 1);\nfloat k4 = pow(k,4);\nfloat F_L = 0.2 * k4 * (5.0 * L_A) + 0.1 * pow((1.0 - k4), 2.0) * pow(5.0 * L_A, 1.0 / 3.0);\nfloat n = Y_b / Y_w;\nfloat z = 1.48 + sqrt(n);\n\ncolor D_RGB = D * Y_w / RGB_w + 1 - D;\ncolor RGB_wc = D_RGB * RGB_w;\n\n// # Applying forward post-adaptation non-linear response compression.\ncolor F_L_RGB = pow(F_L * abs(RGB_wc) / 100.0, 0.42);\ncolor RGB_aw = (400.0 * sign(RGB_wc) * F_L_RGB) / (27.13 + F_L_RGB);\n\nfloat R_aw = RGB_aw.r;\nfloat G_aw = RGB_aw.g;\nfloat B_aw = RGB_aw.b;\nfloat ra = 2.0;\nfloat ba = 0.05;\nfloat A_w = ra * R_aw + G_aw + ba * B_aw;\n\n\n\n\n\nif (invert == 0) {\n// # Step 1\n// # Converting *CIE XYZ* tristimulus values to sharpened *RGB* values.\ncolor RGB = vdot(MATRIX_16, XYZ*referenceLuminance);\n\n// # Step 2\ncolor RGB_c = D_RGB * RGB;\n\n// # Step 3\n// # Applying forward post-adaptation non-linear response compression.\n\nif (compressMode) \tRGB_c = compress_bjorn(RGB_c);\n\n// post_adaptation_non_linear_response_compression_forward\ncolor F_L_RGB2 = pow(F_L * abs(RGB_c) / 100.0, 0.42);\ncolor RGB_a = (400.0 * sign(RGB_c) * F_L_RGB2) / (27.13 + F_L_RGB2);\n\nif (compressMode) \tRGB_a = uncompress_bjorn(RGB_a);\n\n// # Step 4\n// # Converting to preliminary cartesian coordinates.\nfloat R_a = RGB_a.r;\nfloat G_a = RGB_a.g;\nfloat B_a = RGB_a.b;\nfloat a = R_a - 12.0 * G_a / 11.0 + B_a / 11.0;\nfloat b = (R_a + G_a - 2.0 * B_a) / 9.0;\n\nfloat h = mod(degrees(atan2(b, a)), 360.0);\n\nfloat R_a2 = RGB_a.r;\nfloat G_a2 = RGB_a.g;\nfloat B_a2 = RGB_a.b;\nfloat A = ra * R_a2 + G_a2 + ba * B_a2;\n\n// # Step 7\n// # Computing the correlate of *Lightness* :math:`J`.\nfloat J = 100.0 * pow(A / A_w, surround.g * z);\n\n// # Step 8\n// # Computing the correlate of *brightness* :math:`Q`.\n// float Q = (2.0 / float(surround.g)) * (J / 100.0) * A_w;\n\n// # Step 9\n// # Computing the correlate of *colourfulness* :math:`M`.\nfloat M = J == 0.0 ? 0.0 : 43.0 * surround.b * sqrt(a * a + b * b);\n\n// # Computing the correlate of *chroma* :math:`C`.\n// float C = 35.0 * M / A_w;\n\n// # Computing the correlate of *saturation* :math:`s`.\n// float s = 100.0 * M / Q;\n \nout = color(J,M,h);\n\n\n} else {\n// In inverse mode, input XYZ will be JMh\nfloat J = XYZ.r;\nfloat M = XYZ.g;\nfloat h = XYZ.b;\n\nfloat hr = radians(h);\n\n// # Computing achromatic response :math:`A` for the stimulus.\nfloat A = A_w * pow(J / 100.0, 1.0 / (float(surround.g) * z));\n\n// # Computing *P_p_1* to *P_p_2*.\nfloat P_p_1 = 43.0 * surround.b;\nfloat P_p_2 = A;\n\n// # Step 3\n// # Computing opponent colour dimensions :math:`a` and :math:`b`.\nfloat gamma = M / P_p_1;\nfloat a = gamma * cos(hr);\nfloat b = gamma * sin(hr);\n\n// # Step 4\n// # Applying post-adaptation non-linear response compression matrix.\n\nfloat panlrcm[9] = {460.0, 451.0, 288.0, 460.0, -891.0, -261.0, 460.0, -220.0, -6300.0};\ncolor RGB_a = vdot(panlrcm, color(P_p_2, a, b)) / 1403.0;\n\n// # Step 5\n// # Applying inverse post-adaptation non-linear response compression.\nif (compressMode) \tRGB_a = compress_bjorn(RGB_a);\n\n// post_adaptation_non_linear_response_compression_inverse\ncolor RGB_c = (sign(RGB_a) * 100.0 / F_L * pow((27.13 * abs(RGB_a)) / (400.0 - abs(RGB_a)), 1.0 / 0.42));\n\nif (compressMode) \tRGB_c = uncompress_bjorn(RGB_c);\n\n// # Step 6\ncolor RGB = RGB_c / D_RGB;\n\n// # Step 7\n// float MATRIX_INVERSE_16[9] = {1.86207, -1.01125, 0.149187, 0.387527, 0.621447, -0.00897398, -0.0158415, -0.0341229, 1.04996};\nfloat MATRIX_INVERSE_16[9] = {1.45196, -0.556511, 0.10455, 0.30987, 0.770554, -0.0804234, 0.00885342, 0.214043, 0.780107};\ncolor XYZ = vdot(MATRIX_INVERSE_16, RGB);\n\nout = XYZ/100.0;\n\n}' ) __children["Hellwig2022_JMh1"]["code"]["__uiPosition"].setValue( imath.V2f( -3.68817878, -4.99635363 ) ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh1"]["compressMode"], 'nodule:type', '' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh1"]["compressMode"], 'layout:section', 'Settings' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh1"]["compressMode"], 'layout:index', 2 ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh1"]["viewingConditions"], 'nodule:type', '' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh1"]["viewingConditions"], 'plugValueWidget:type', 'GafferUI.PresetsPlugValueWidget' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh1"]["viewingConditions"], 'preset:Dark', 0 ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh1"]["viewingConditions"], 'preset:Dim', 1 ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh1"]["viewingConditions"], 'preset:Average', 2 ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh1"]["viewingConditions"], 'layout:section', 'Settings' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh1"]["viewingConditions"], 'layout:index', 3 ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh1"]["invert"], 'nodule:type', '' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh1"]["invert"], 'layout:section', 'Settings' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh1"]["invert"], 'layout:index', 5 ) __children["Hellwig2022_JMh1"]["whitepoint"].setValue( 1 ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh1"]["whitepoint"], 'nodule:type', '' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh1"]["whitepoint"], 'layout:section', 'Settings' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh1"]["whitepoint"], 'layout:index', 4 ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh1"]["whitepoint"], 'plugValueWidget:type', 'GafferUI.PresetsPlugValueWidget' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh1"]["whitepoint"], 'preset:referenceWhite', 0 ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh1"]["whitepoint"], 'preset:limitWhite', 1 ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh1"]["whitepoint"], 'preset:D65', 2 ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh1"]["whitepoint"], 'preset:ACES White ~D60', 3 ) Gaffer.Metadata.registerValue( __children["oslGamutConvert1"], 'noduleLayout:customGadget:addButtonTop:visible', False ) Gaffer.Metadata.registerValue( __children["oslGamutConvert1"], 'noduleLayout:customGadget:addButtonBottom:visible', False ) Gaffer.Metadata.registerValue( __children["oslGamutConvert1"], 'noduleLayout:customGadget:addButtonLeft:visible', False ) Gaffer.Metadata.registerValue( __children["oslGamutConvert1"], 'noduleLayout:customGadget:addButtonRight:visible', False ) Gaffer.Metadata.registerValue( __children["oslGamutConvert1"], 'description', '' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert1"], 'uiEditor:emptySections', IECore.StringVectorData( [ ] ) ) Gaffer.Metadata.registerValue( __children["oslGamutConvert1"], 'uiEditor:emptySectionIndices', IECore.IntVectorData( [ ] ) ) __children["oslGamutConvert1"]["__uiPosition"].setValue( imath.V2f( -236.016678, -33.3596764 ) ) Gaffer.Metadata.registerValue( __children["oslGamutConvert1"]["ColorMatrix"], 'noduleLayout:customGadget:addButtonTop:visible', True ) Gaffer.Metadata.registerValue( __children["oslGamutConvert1"]["ColorMatrix"], 'noduleLayout:customGadget:addButtonBottom:visible', True ) Gaffer.Metadata.registerValue( __children["oslGamutConvert1"]["ColorMatrix"], 'noduleLayout:customGadget:addButtonLeft:visible', True ) Gaffer.Metadata.registerValue( __children["oslGamutConvert1"]["ColorMatrix"], 'noduleLayout:customGadget:addButtonRight:visible', True ) __children["oslGamutConvert1"]["ColorMatrix"]["parameters"]["m0"].setInput( __children["oslGamutConvert1"]["Expression4"]["__out"]["p0"] ) __children["oslGamutConvert1"]["ColorMatrix"]["parameters"]["m1"].setInput( __children["oslGamutConvert1"]["Expression4"]["__out"]["p1"] ) __children["oslGamutConvert1"]["ColorMatrix"]["parameters"]["m2"].setInput( __children["oslGamutConvert1"]["Expression4"]["__out"]["p2"] ) __children["oslGamutConvert1"]["ColorMatrix"]["parameters"]["in"].setInput( __children["oslGamutConvert1"]["BoxIn"]["out"] ) __children["oslGamutConvert1"]["ColorMatrix"]["code"].setValue( 'out.r = dot(m0, in);\nout.g = dot(m1, in);\nout.b = dot(m2, in);' ) __children["oslGamutConvert1"]["ColorMatrix"]["__uiPosition"].setValue( imath.V2f( -593.35083, 5.33377171 ) ) __children["oslGamutConvert1"]["Expression4"]["__in"]["p0"].setInput( __children["oslGamutConvert1"]["gamutIn"] ) __children["oslGamutConvert1"]["Expression4"]["__in"]["p1"].setInput( __children["oslGamutConvert1"]["gamutOut"] ) __children["oslGamutConvert1"]["Expression4"]["__uiPosition"].setValue( imath.V2f( -600.471619, 12.8735418 ) ) __children["oslGamutConvert1"]["BoxIn"]["__in"].setInput( __children["oslGamutConvert1"]["in"] ) Gaffer.Metadata.registerValue( __children["oslGamutConvert1"]["BoxIn"]["__in"], 'nodule:color', imath.Color3f( 0.689999998, 0.537800014, 0.228300005 ) ) Gaffer.Metadata.registerValue( __children["oslGamutConvert1"]["BoxIn"]["__in"], 'noduleLayout:section', 'left' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert1"]["BoxIn"]["__in"], 'userDefault', None ) Gaffer.Metadata.registerValue( __children["oslGamutConvert1"]["BoxIn"]["__in"], 'description', '' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert1"]["BoxIn"]["__in"], 'label', 'c' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert1"]["BoxIn"]["__in"], 'presetNames', None ) Gaffer.Metadata.registerValue( __children["oslGamutConvert1"]["BoxIn"]["__in"], 'presetValues', None ) Gaffer.Metadata.registerValue( __children["oslGamutConvert1"]["BoxIn"]["__in"], 'plugValueWidget:type', None ) Gaffer.Metadata.registerValue( __children["oslGamutConvert1"]["BoxIn"]["__in"], 'nodule:type', None ) Gaffer.Metadata.registerValue( __children["oslGamutConvert1"]["BoxIn"]["__in"], 'noduleLayout:visible', True ) Gaffer.Metadata.registerValue( __children["oslGamutConvert1"]["BoxIn"]["__in"], 'noduleLayout:label', None ) Gaffer.Metadata.registerValue( __children["oslGamutConvert1"]["BoxIn"]["__in"], 'renameable', True ) Gaffer.Metadata.registerValue( __children["oslGamutConvert1"]["BoxIn"]["__in"], 'deletable', True ) Gaffer.Metadata.registerValue( __children["oslGamutConvert1"]["BoxIn"]["__in"]["r"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) Gaffer.Metadata.registerValue( __children["oslGamutConvert1"]["BoxIn"]["__in"]["r"], 'noduleLayout:section', 'left' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert1"]["BoxIn"]["__in"]["r"], 'userDefault', None ) Gaffer.Metadata.registerValue( __children["oslGamutConvert1"]["BoxIn"]["__in"]["r"], 'noduleLayout:label', 'c.r' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert1"]["BoxIn"]["__in"]["g"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) Gaffer.Metadata.registerValue( __children["oslGamutConvert1"]["BoxIn"]["__in"]["g"], 'noduleLayout:section', 'left' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert1"]["BoxIn"]["__in"]["g"], 'userDefault', None ) Gaffer.Metadata.registerValue( __children["oslGamutConvert1"]["BoxIn"]["__in"]["g"], 'noduleLayout:label', 'c.g' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert1"]["BoxIn"]["__in"]["b"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) Gaffer.Metadata.registerValue( __children["oslGamutConvert1"]["BoxIn"]["__in"]["b"], 'noduleLayout:section', 'left' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert1"]["BoxIn"]["__in"]["b"], 'userDefault', None ) Gaffer.Metadata.registerValue( __children["oslGamutConvert1"]["BoxIn"]["__in"]["b"], 'noduleLayout:label', 'c.b' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert1"]["BoxIn"]["out"], 'noduleLayout:section', 'right' ) __children["oslGamutConvert1"]["BoxIn"]["__uiPosition"].setValue( imath.V2f( -608.49762, 9.83449078 ) ) __children["oslGamutConvert1"]["in"].setInput( __children["Hellwig2022_JMh6"]["out"] ) Gaffer.Metadata.registerValue( __children["oslGamutConvert1"]["in"], 'nodule:color', imath.Color3f( 0.689999998, 0.537800014, 0.228300005 ) ) Gaffer.Metadata.registerValue( __children["oslGamutConvert1"]["in"], 'noduleLayout:section', 'top' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert1"]["in"], 'userDefault', None ) Gaffer.Metadata.registerValue( __children["oslGamutConvert1"]["in"], 'description', '' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert1"]["in"], 'presetNames', None ) Gaffer.Metadata.registerValue( __children["oslGamutConvert1"]["in"], 'presetValues', None ) Gaffer.Metadata.registerValue( __children["oslGamutConvert1"]["in"], 'plugValueWidget:type', '' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert1"]["in"], 'nodule:type', None ) Gaffer.Metadata.registerValue( __children["oslGamutConvert1"]["in"], 'noduleLayout:visible', True ) Gaffer.Metadata.registerValue( __children["oslGamutConvert1"]["in"], 'noduleLayout:label', None ) Gaffer.Metadata.registerValue( __children["oslGamutConvert1"]["in"], 'renameable', True ) Gaffer.Metadata.registerValue( __children["oslGamutConvert1"]["in"], 'deletable', True ) Gaffer.Metadata.registerValue( __children["oslGamutConvert1"]["in"], 'layout:section', 'Settings' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert1"]["in"], 'layout:index', 0 ) Gaffer.Metadata.registerValue( __children["oslGamutConvert1"]["in"]["r"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) Gaffer.Metadata.registerValue( __children["oslGamutConvert1"]["in"]["r"], 'noduleLayout:section', 'left' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert1"]["in"]["r"], 'userDefault', None ) Gaffer.Metadata.registerValue( __children["oslGamutConvert1"]["in"]["r"], 'noduleLayout:label', 'c.r' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert1"]["in"]["g"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) Gaffer.Metadata.registerValue( __children["oslGamutConvert1"]["in"]["g"], 'noduleLayout:section', 'left' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert1"]["in"]["g"], 'userDefault', None ) Gaffer.Metadata.registerValue( __children["oslGamutConvert1"]["in"]["g"], 'noduleLayout:label', 'c.g' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert1"]["in"]["b"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) Gaffer.Metadata.registerValue( __children["oslGamutConvert1"]["in"]["b"], 'noduleLayout:section', 'left' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert1"]["in"]["b"], 'userDefault', None ) Gaffer.Metadata.registerValue( __children["oslGamutConvert1"]["in"]["b"], 'noduleLayout:label', 'c.b' ) __children["oslGamutConvert1"]["BoxOut"]["in"].setInput( __children["oslGamutConvert1"]["ColorMatrix"]["out"]["out"] ) Gaffer.Metadata.registerValue( __children["oslGamutConvert1"]["BoxOut"]["in"], 'noduleLayout:section', 'left' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert1"]["BoxOut"]["__out"], 'nodule:color', imath.Color3f( 0.689999998, 0.537800014, 0.228300005 ) ) Gaffer.Metadata.registerValue( __children["oslGamutConvert1"]["BoxOut"]["__out"], 'noduleLayout:section', 'right' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert1"]["BoxOut"]["__out"], 'noduleLayout:visible', True ) Gaffer.Metadata.registerValue( __children["oslGamutConvert1"]["BoxOut"]["__out"], 'noduleLayout:label', None ) Gaffer.Metadata.registerValue( __children["oslGamutConvert1"]["BoxOut"]["__out"], 'renameable', True ) Gaffer.Metadata.registerValue( __children["oslGamutConvert1"]["BoxOut"]["__out"], 'deletable', True ) Gaffer.Metadata.registerValue( __children["oslGamutConvert1"]["BoxOut"]["__out"], 'label', 'out' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert1"]["BoxOut"]["__out"]["r"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) Gaffer.Metadata.registerValue( __children["oslGamutConvert1"]["BoxOut"]["__out"]["g"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) Gaffer.Metadata.registerValue( __children["oslGamutConvert1"]["BoxOut"]["__out"]["b"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) __children["oslGamutConvert1"]["BoxOut"]["passThrough"].setInput( __children["oslGamutConvert1"]["BoxIn"]["out"] ) __children["oslGamutConvert1"]["BoxOut"]["enabled"].setInput( __children["oslGamutConvert1"]["enabled"] ) __children["oslGamutConvert1"]["BoxOut"]["__uiPosition"].setValue( imath.V2f( -581.270325, 5.33377171 ) ) __children["oslGamutConvert1"]["out"].setInput( __children["oslGamutConvert1"]["BoxOut"]["__out"] ) Gaffer.Metadata.registerValue( __children["oslGamutConvert1"]["out"], 'nodule:color', imath.Color3f( 0.689999998, 0.537800014, 0.228300005 ) ) Gaffer.Metadata.registerValue( __children["oslGamutConvert1"]["out"], 'noduleLayout:section', 'bottom' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert1"]["out"], 'noduleLayout:visible', True ) Gaffer.Metadata.registerValue( __children["oslGamutConvert1"]["out"], 'noduleLayout:label', None ) Gaffer.Metadata.registerValue( __children["oslGamutConvert1"]["out"], 'renameable', True ) Gaffer.Metadata.registerValue( __children["oslGamutConvert1"]["out"], 'deletable', True ) Gaffer.Metadata.registerValue( __children["oslGamutConvert1"]["out"], 'label', 'out' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert1"]["out"], 'layout:section', 'Settings' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert1"]["out"], 'layout:index', 1 ) Gaffer.Metadata.registerValue( __children["oslGamutConvert1"]["out"], 'plugValueWidget:type', '' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert1"]["out"]["r"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) Gaffer.Metadata.registerValue( __children["oslGamutConvert1"]["out"]["g"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) Gaffer.Metadata.registerValue( __children["oslGamutConvert1"]["out"]["b"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) Gaffer.Metadata.registerValue( __children["oslGamutConvert1"]["gamutIn"], 'nodule:type', '' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert1"]["gamutIn"], 'layout:section', 'Settings' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert1"]["gamutIn"], 'plugValueWidget:type', 'GafferUI.PresetsPlugValueWidget' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert1"]["gamutIn"], 'description', '' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert1"]["gamutIn"], 'layout:index', 2 ) Gaffer.Metadata.registerValue( __children["oslGamutConvert1"]["gamutIn"], 'preset:XYZ', 'XYZ' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert1"]["gamutIn"], 'preset:ACES', 'ACES' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert1"]["gamutIn"], 'preset:ACEScg', 'ACEScg' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert1"]["gamutIn"], 'preset:FilmlightEGamut', 'FilmlightEGamut' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert1"]["gamutIn"], 'preset:DavinciWideGamut', 'DavinciWideGamut' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert1"]["gamutIn"], 'preset:Rec709', 'Rec709' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert1"]["gamutIn"], 'preset:Rec2020', 'Rec2020' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert1"]["gamutIn"], 'preset:P3D65', 'P3D65' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert1"]["gamutIn"], 'preset:ArriWideGamut3', 'ArriWideGamut3' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert1"]["gamutIn"], 'preset:ArriWideGamut4', 'ArriWideGamut4' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert1"]["gamutIn"], 'preset:RedWideGamutRGB', 'ArriWideGamut4' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert1"]["gamutIn"], 'preset:SonySGamut3', 'SonySGamut3' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert1"]["gamutIn"], 'preset:SonySGamut3.Cine', 'SonySGamut3.Cine' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert1"]["gamutIn"], 'preset:PanasonicVGamut', 'PanasonicVGamut' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert1"]["gamutIn"], 'preset:DJIDGamut', 'DJIDGamut' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert1"]["gamutIn"], 'preset:BlackmagicWideGamut', 'BlackmagicWideGamut' ) __children["oslGamutConvert1"]["gamutOut"].setValue( 'Rec709' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert1"]["gamutOut"], 'nodule:type', '' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert1"]["gamutOut"], 'layout:section', 'Settings' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert1"]["gamutOut"], 'plugValueWidget:type', 'GafferUI.PresetsPlugValueWidget' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert1"]["gamutOut"], 'preset:XYZ', 'XYZ' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert1"]["gamutOut"], 'preset:ACES', 'ACES' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert1"]["gamutOut"], 'preset:ACEScg', 'ACEScg' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert1"]["gamutOut"], 'preset:FilmlightEGamut', 'FilmlightEGamut' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert1"]["gamutOut"], 'preset:DavinciWideGamut', 'DavinciWideGamut' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert1"]["gamutOut"], 'preset:Rec709', 'Rec709' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert1"]["gamutOut"], 'preset:Rec2020', 'Rec2020' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert1"]["gamutOut"], 'preset:P3D65', 'P3D65' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert1"]["gamutOut"], 'preset:ArriWideGamut3', 'ArriWideGamut3' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert1"]["gamutOut"], 'preset:ArriWideGamut4', 'ArriWideGamut4' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert1"]["gamutOut"], 'preset:RedWideGamutRGB', 'ArriWideGamut4' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert1"]["gamutOut"], 'preset:SonySGamut3', 'SonySGamut3' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert1"]["gamutOut"], 'preset:SonySGamut3.Cine', 'SonySGamut3.Cine' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert1"]["gamutOut"], 'preset:PanasonicVGamut', 'PanasonicVGamut' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert1"]["gamutOut"], 'preset:DJIDGamut', 'DJIDGamut' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert1"]["gamutOut"], 'preset:BlackmagicWideGamut', 'BlackmagicWideGamut' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert1"]["gamutOut"], 'layout:index', 3 ) Gaffer.Metadata.registerValue( __children["oslGamutConvert1"]["enabled"], 'layout:section', 'Node' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert1"]["enabled"], 'layout:index', 4 ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"], 'noduleLayout:customGadget:addButtonTop:visible', False ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"], 'noduleLayout:customGadget:addButtonBottom:visible', False ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"], 'noduleLayout:customGadget:addButtonLeft:visible', False ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"], 'noduleLayout:customGadget:addButtonRight:visible', False ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"], 'description', '' ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"], 'uiEditor:emptySections', IECore.StringVectorData( [ ] ) ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"], 'uiEditor:emptySectionIndices', IECore.IntVectorData( [ ] ) ) __children["tonescale_daniele_evo"]["__uiPosition"].setValue( imath.V2f( -277.590942, 25.757309 ) ) __children["tonescale_daniele_evo"]["BoxIn"]["__in"].setInput( __children["tonescale_daniele_evo"]["in"] ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["BoxIn"]["__in"], 'nodule:color', imath.Color3f( 0.689999998, 0.537800014, 0.228300005 ) ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["BoxIn"]["__in"], 'deletable', True ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["BoxIn"]["__in"], 'renameable', True ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["BoxIn"]["__in"], 'noduleLayout:section', 'bottom' ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["BoxIn"]["__in"], 'userDefault', None ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["BoxIn"]["__in"], 'description', '' ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["BoxIn"]["__in"], 'label', 'in' ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["BoxIn"]["__in"], 'presetNames', None ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["BoxIn"]["__in"], 'presetValues', None ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["BoxIn"]["__in"], 'noduleLayout:visible', True ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["BoxIn"]["__in"], 'noduleLayout:label', None ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["BoxIn"]["__in"], 'plugValueWidget:type', '' ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["BoxIn"]["__in"]["r"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["BoxIn"]["__in"]["r"], 'noduleLayout:section', 'left' ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["BoxIn"]["__in"]["r"], 'userDefault', None ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["BoxIn"]["__in"]["r"], 'noduleLayout:label', 'in.r' ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["BoxIn"]["__in"]["g"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["BoxIn"]["__in"]["g"], 'noduleLayout:section', 'left' ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["BoxIn"]["__in"]["g"], 'userDefault', None ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["BoxIn"]["__in"]["g"], 'noduleLayout:label', 'in.g' ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["BoxIn"]["__in"]["b"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["BoxIn"]["__in"]["b"], 'noduleLayout:section', 'left' ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["BoxIn"]["__in"]["b"], 'userDefault', None ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["BoxIn"]["__in"]["b"], 'noduleLayout:label', 'in.b' ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["BoxIn"]["out"], 'noduleLayout:section', 'bottom' ) __children["tonescale_daniele_evo"]["BoxIn"]["__uiPosition"].setValue( imath.V2f( -136.661484, 51.6403198 ) ) __children["tonescale_daniele_evo"]["in"].setInput( __children["Hellwig2022_JMh7"]["out"] ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["in"], 'nodule:color', imath.Color3f( 0.689999998, 0.537800014, 0.228300005 ) ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["in"], 'deletable', True ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["in"], 'renameable', True ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["in"], 'noduleLayout:section', 'top' ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["in"], 'userDefault', None ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["in"], 'description', '' ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["in"], 'label', 'in' ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["in"], 'presetNames', None ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["in"], 'presetValues', None ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["in"], 'noduleLayout:visible', True ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["in"], 'noduleLayout:label', None ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["in"], 'plugValueWidget:type', '' ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["in"], 'layout:section', 'Settings' ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["in"], 'layout:index', 0 ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["in"]["r"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["in"]["r"], 'noduleLayout:section', 'left' ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["in"]["r"], 'userDefault', None ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["in"]["r"], 'noduleLayout:label', 'in.r' ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["in"]["g"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["in"]["g"], 'noduleLayout:section', 'left' ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["in"]["g"], 'userDefault', None ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["in"]["g"], 'noduleLayout:label', 'in.g' ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["in"]["b"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["in"]["b"], 'noduleLayout:section', 'left' ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["in"]["b"], 'userDefault', None ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["in"]["b"], 'noduleLayout:label', 'in.b' ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["BoxOut"], 'noduleLayout:customGadget:addButtonTop:visible', True ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["BoxOut"], 'noduleLayout:customGadget:addButtonBottom:visible', True ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["BoxOut"], 'noduleLayout:customGadget:addButtonLeft:visible', True ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["BoxOut"], 'noduleLayout:customGadget:addButtonRight:visible', True ) __children["tonescale_daniele_evo"]["BoxOut"]["name"].setValue( 'f' ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["BoxOut"]["in"], 'noduleLayout:section', 'top' ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["BoxOut"]["in"], 'compoundNumericNodule:childrenVisible', True ) __children["tonescale_daniele_evo"]["BoxOut"]["in"]["r"].setInput( __children["tonescale_daniele_evo"]["OSLCode"]["out"]["f"] ) __children["tonescale_daniele_evo"]["BoxOut"]["in"]["g"].setInput( __children["tonescale_daniele_evo"]["OSLCode"]["out"]["f"] ) __children["tonescale_daniele_evo"]["BoxOut"]["in"]["b"].setInput( __children["tonescale_daniele_evo"]["OSLCode"]["out"]["f"] ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["BoxOut"]["__out"], 'nodule:color', imath.Color3f( 0.689999998, 0.537800014, 0.228300005 ) ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["BoxOut"]["__out"], 'deletable', True ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["BoxOut"]["__out"], 'renameable', True ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["BoxOut"]["__out"], 'noduleLayout:section', 'top' ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["BoxOut"]["__out"], 'userDefault', None ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["BoxOut"]["__out"], 'description', '' ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["BoxOut"]["__out"], 'presetNames', None ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["BoxOut"]["__out"], 'presetValues', None ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["BoxOut"]["__out"], 'plugValueWidget:type', '' ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["BoxOut"]["__out"], 'nodule:type', None ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["BoxOut"]["__out"], 'noduleLayout:visible', True ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["BoxOut"]["__out"], 'noduleLayout:label', None ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["BoxOut"]["__out"]["r"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["BoxOut"]["__out"]["r"], 'noduleLayout:section', 'left' ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["BoxOut"]["__out"]["r"], 'userDefault', None ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["BoxOut"]["__out"]["r"], 'noduleLayout:label', 'c.r' ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["BoxOut"]["__out"]["g"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["BoxOut"]["__out"]["g"], 'noduleLayout:section', 'left' ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["BoxOut"]["__out"]["g"], 'userDefault', None ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["BoxOut"]["__out"]["g"], 'noduleLayout:label', 'c.g' ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["BoxOut"]["__out"]["b"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["BoxOut"]["__out"]["b"], 'noduleLayout:section', 'left' ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["BoxOut"]["__out"]["b"], 'userDefault', None ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["BoxOut"]["__out"]["b"], 'noduleLayout:label', 'c.b' ) __children["tonescale_daniele_evo"]["BoxOut"]["passThrough"].setInput( __children["tonescale_daniele_evo"]["BoxIn"]["out"] ) __children["tonescale_daniele_evo"]["BoxOut"]["enabled"].setInput( __children["tonescale_daniele_evo"]["enabled"] ) __children["tonescale_daniele_evo"]["BoxOut"]["__uiPosition"].setValue( imath.V2f( -119.545837, 31.9306412 ) ) __children["tonescale_daniele_evo"]["f"].setInput( __children["tonescale_daniele_evo"]["BoxOut"]["__out"] ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["f"], 'nodule:color', imath.Color3f( 0.689999998, 0.537800014, 0.228300005 ) ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["f"], 'deletable', True ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["f"], 'renameable', True ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["f"], 'noduleLayout:section', 'bottom' ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["f"], 'userDefault', None ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["f"], 'description', '' ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["f"], 'presetNames', None ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["f"], 'presetValues', None ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["f"], 'plugValueWidget:type', '' ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["f"], 'nodule:type', None ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["f"], 'noduleLayout:visible', True ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["f"], 'noduleLayout:label', None ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["f"], 'layout:section', 'Settings' ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["f"], 'layout:index', 1 ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["f"]["r"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["f"]["r"], 'noduleLayout:section', 'left' ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["f"]["r"], 'userDefault', None ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["f"]["r"], 'noduleLayout:label', 'c.r' ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["f"]["g"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["f"]["g"], 'noduleLayout:section', 'left' ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["f"]["g"], 'userDefault', None ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["f"]["g"], 'noduleLayout:label', 'c.g' ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["f"]["b"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["f"]["b"], 'noduleLayout:section', 'left' ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["f"]["b"], 'userDefault', None ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["f"]["b"], 'noduleLayout:label', 'c.b' ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["enabled"], 'layout:section', 'Node' ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["enabled"], 'layout:index', 12 ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["OSLCode"], 'noduleLayout:customGadget:addButtonTop:visible', True ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["OSLCode"], 'noduleLayout:customGadget:addButtonBottom:visible', True ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["OSLCode"], 'noduleLayout:customGadget:addButtonLeft:visible', True ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["OSLCode"], 'noduleLayout:customGadget:addButtonRight:visible', True ) __children["tonescale_daniele_evo"]["OSLCode"]["parameters"]["Y"].setInput( __children["tonescale_daniele_evo"]["BoxIn"]["out"]["r"] ) __children["tonescale_daniele_evo"]["OSLCode"]["parameters"]["s2"].setInput( __children["tonescale_daniele_evo"]["Expression"]["__out"]["p1"] ) __children["tonescale_daniele_evo"]["OSLCode"]["parameters"]["g"].setInput( __children["tonescale_daniele_evo"]["Expression"]["__out"]["p2"] ) __children["tonescale_daniele_evo"]["OSLCode"]["parameters"]["m2"].setInput( __children["tonescale_daniele_evo"]["Expression"]["__out"]["p0"] ) __children["tonescale_daniele_evo"]["OSLCode"]["parameters"]["t1"].setInput( __children["tonescale_daniele_evo"]["Expression"]["__out"]["p3"] ) __children["tonescale_daniele_evo"]["OSLCode"]["parameters"]["invert"].setInput( __children["tonescale_daniele_evo"]["invert"] ) __children["tonescale_daniele_evo"]["OSLCode"]["code"].setValue( 'if (invert == 0) {\n\tf = m2 * pow(max(0.0, Y) / (Y + s2), g);\n\th = max(0.0, f * f / (f + t1));\n} else {\n\th = (Y + sqrt(Y * (4.0 * t1 + Y))) / 2.0;\n\tf = s2 / (pow((m2 / h), (1.0 / g)) - 1.0);\n}' ) __children["tonescale_daniele_evo"]["OSLCode"]["__uiPosition"].setValue( imath.V2f( -131.209885, 35.8591118 ) ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["Expression"], 'noduleLayout:customGadget:addButtonTop:visible', True ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["Expression"], 'noduleLayout:customGadget:addButtonBottom:visible', True ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["Expression"], 'noduleLayout:customGadget:addButtonLeft:visible', True ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["Expression"], 'noduleLayout:customGadget:addButtonRight:visible', True ) __children["tonescale_daniele_evo"]["Expression"]["__in"]["p0"].setInput( __children["tonescale_daniele_evo"]["rhit_min"] ) __children["tonescale_daniele_evo"]["Expression"]["__in"]["p1"].setInput( __children["tonescale_daniele_evo"]["rhit_max"] ) __children["tonescale_daniele_evo"]["Expression"]["__in"]["p2"].setInput( __children["tonescale_daniele_evo"]["n"] ) __children["tonescale_daniele_evo"]["Expression"]["__in"]["p3"].setInput( __children["tonescale_daniele_evo"]["n_r"] ) __children["tonescale_daniele_evo"]["Expression"]["__in"]["p4"].setInput( __children["tonescale_daniele_evo"]["t1"] ) __children["tonescale_daniele_evo"]["Expression"]["__in"]["p5"].setInput( __children["tonescale_daniele_evo"]["g"] ) __children["tonescale_daniele_evo"]["Expression"]["__in"]["p6"].setInput( __children["tonescale_daniele_evo"]["w_g"] ) __children["tonescale_daniele_evo"]["Expression"]["__in"]["p7"].setInput( __children["tonescale_daniele_evo"]["c_d"] ) __children["tonescale_daniele_evo"]["Expression"]["__in"]["p8"].setInput( __children["tonescale_daniele_evo"]["c"] ) __children["tonescale_daniele_evo"]["Expression"]["__uiPosition"].setValue( imath.V2f( -139.64801, 38.4507561 ) ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["rhit_min"], 'nodule:type', '' ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["rhit_min"], 'layout:section', 'Settings' ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["rhit_min"], 'layout:index', 9 ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["rhit_max"], 'nodule:type', '' ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["rhit_max"], 'layout:section', 'Settings' ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["rhit_max"], 'layout:index', 10 ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["n"], 'nodule:type', '' ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["n"], 'layout:section', 'Settings' ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["n"], 'layout:index', 2 ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["n_r"], 'nodule:type', '' ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["n_r"], 'layout:section', 'Settings' ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["n_r"], 'layout:index', 3 ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["invert"], 'nodule:type', '' ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["invert"], 'layout:section', 'Settings' ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["invert"], 'layout:index', 11 ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["c_d"], 'nodule:type', '' ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["c_d"], 'layout:section', 'Settings' ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["c_d"], 'layout:index', 6 ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["c"], 'nodule:type', '' ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["c"], 'layout:section', 'Settings' ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["c"], 'layout:index', 5 ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["t1"], 'nodule:type', '' ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["t1"], 'layout:section', 'Settings' ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["t1"], 'layout:index', 8 ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["w_g"], 'nodule:type', '' ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["w_g"], 'layout:section', 'Settings' ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["w_g"], 'layout:index', 7 ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["g"], 'nodule:type', '' ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["g"], 'layout:section', 'Settings' ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["g"], 'layout:index', 4 ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["mmScaleFactor"], 'nodule:type', '' ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["BoxOut1"], 'noduleLayout:customGadget:addButtonTop:visible', True ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["BoxOut1"], 'noduleLayout:customGadget:addButtonBottom:visible', True ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["BoxOut1"], 'noduleLayout:customGadget:addButtonLeft:visible', True ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["BoxOut1"], 'noduleLayout:customGadget:addButtonRight:visible', True ) __children["tonescale_daniele_evo"]["BoxOut1"]["name"].setValue( 'h' ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["BoxOut1"]["in"], 'noduleLayout:section', 'top' ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["BoxOut1"]["in"], 'compoundNumericNodule:childrenVisible', True ) __children["tonescale_daniele_evo"]["BoxOut1"]["in"]["r"].setInput( __children["tonescale_daniele_evo"]["OSLCode"]["out"]["h"] ) __children["tonescale_daniele_evo"]["BoxOut1"]["in"]["g"].setInput( __children["tonescale_daniele_evo"]["OSLCode"]["out"]["h"] ) __children["tonescale_daniele_evo"]["BoxOut1"]["in"]["b"].setInput( __children["tonescale_daniele_evo"]["OSLCode"]["out"]["h"] ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["BoxOut1"]["__out"], 'nodule:color', imath.Color3f( 0.689999998, 0.537800014, 0.228300005 ) ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["BoxOut1"]["__out"], 'deletable', True ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["BoxOut1"]["__out"], 'renameable', True ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["BoxOut1"]["__out"], 'noduleLayout:section', 'top' ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["BoxOut1"]["__out"], 'userDefault', None ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["BoxOut1"]["__out"], 'description', '' ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["BoxOut1"]["__out"], 'presetNames', None ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["BoxOut1"]["__out"], 'presetValues', None ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["BoxOut1"]["__out"], 'plugValueWidget:type', '' ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["BoxOut1"]["__out"], 'nodule:type', None ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["BoxOut1"]["__out"], 'noduleLayout:visible', True ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["BoxOut1"]["__out"], 'noduleLayout:label', None ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["BoxOut1"]["__out"]["r"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["BoxOut1"]["__out"]["r"], 'noduleLayout:section', 'left' ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["BoxOut1"]["__out"]["r"], 'userDefault', None ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["BoxOut1"]["__out"]["r"], 'noduleLayout:label', 'c.r' ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["BoxOut1"]["__out"]["g"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["BoxOut1"]["__out"]["g"], 'noduleLayout:section', 'left' ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["BoxOut1"]["__out"]["g"], 'userDefault', None ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["BoxOut1"]["__out"]["g"], 'noduleLayout:label', 'c.g' ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["BoxOut1"]["__out"]["b"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["BoxOut1"]["__out"]["b"], 'noduleLayout:section', 'left' ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["BoxOut1"]["__out"]["b"], 'userDefault', None ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["BoxOut1"]["__out"]["b"], 'noduleLayout:label', 'c.b' ) __children["tonescale_daniele_evo"]["BoxOut1"]["passThrough"].setInput( __children["tonescale_daniele_evo"]["BoxIn"]["out"] ) __children["tonescale_daniele_evo"]["BoxOut1"]["enabled"].setInput( __children["tonescale_daniele_evo"]["enabled"] ) __children["tonescale_daniele_evo"]["BoxOut1"]["__uiPosition"].setValue( imath.V2f( -122.907066, 24.2564621 ) ) __children["tonescale_daniele_evo"]["h"].setInput( __children["tonescale_daniele_evo"]["BoxOut1"]["__out"] ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["h"], 'nodule:color', imath.Color3f( 0.689999998, 0.537800014, 0.228300005 ) ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["h"], 'deletable', True ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["h"], 'renameable', True ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["h"], 'noduleLayout:section', 'bottom' ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["h"], 'userDefault', None ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["h"], 'description', '' ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["h"], 'presetNames', None ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["h"], 'presetValues', None ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["h"], 'plugValueWidget:type', '' ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["h"], 'nodule:type', None ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["h"], 'noduleLayout:visible', True ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["h"], 'noduleLayout:label', None ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["h"]["r"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["h"]["r"], 'noduleLayout:section', 'left' ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["h"]["r"], 'userDefault', None ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["h"]["r"], 'noduleLayout:label', 'c.r' ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["h"]["g"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["h"]["g"], 'noduleLayout:section', 'left' ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["h"]["g"], 'userDefault', None ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["h"]["g"], 'noduleLayout:label', 'c.g' ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["h"]["b"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["h"]["b"], 'noduleLayout:section', 'left' ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["h"]["b"], 'userDefault', None ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["h"]["b"], 'noduleLayout:label', 'c.b' ) __children["tonescale_daniele_evo"]["daniele_m_0"].setInput( __children["tonescale_daniele_evo"]["Expression"]["__out"]["p4"] ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["daniele_m_0"], 'nodule:type', '' ) __children["tonescale_daniele_evo"]["daniele_c_t"].setInput( __children["tonescale_daniele_evo"]["Expression"]["__out"]["p5"] ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo"]["daniele_c_t"], 'nodule:type', '' ) Gaffer.Metadata.registerValue( __children["FloatToColor"], 'noduleLayout:customGadget:addButtonTop:visible', True ) Gaffer.Metadata.registerValue( __children["FloatToColor"], 'noduleLayout:customGadget:addButtonBottom:visible', True ) Gaffer.Metadata.registerValue( __children["FloatToColor"], 'noduleLayout:customGadget:addButtonLeft:visible', True ) Gaffer.Metadata.registerValue( __children["FloatToColor"], 'noduleLayout:customGadget:addButtonRight:visible', True ) __children["FloatToColor"]["parameters"]["r"].setInput( __children["Hellwig2022_JMh8"]["out"]["r"] ) __children["FloatToColor"]["parameters"]["g"].setInput( __children["ColorToFloat"]["out"]["g"] ) __children["FloatToColor"]["parameters"]["b"].setInput( __children["ColorToFloat"]["out"]["b"] ) __children["FloatToColor"]["__uiPosition"].setValue( imath.V2f( -271.220215, 2.40759182 ) ) Gaffer.Metadata.registerValue( __children["ColorToFloat"], 'noduleLayout:customGadget:addButtonTop:visible', True ) Gaffer.Metadata.registerValue( __children["ColorToFloat"], 'noduleLayout:customGadget:addButtonBottom:visible', True ) Gaffer.Metadata.registerValue( __children["ColorToFloat"], 'noduleLayout:customGadget:addButtonLeft:visible', True ) Gaffer.Metadata.registerValue( __children["ColorToFloat"], 'noduleLayout:customGadget:addButtonRight:visible', True ) __children["ColorToFloat"]["parameters"]["c"].setInput( __children["Hellwig2022_JMh1"]["out"] ) __children["ColorToFloat"]["__uiPosition"].setValue( imath.V2f( -292.486023, 2.40759182 ) ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh6"], 'description', '' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh6"], 'documentation:url', '' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh6"], 'noduleLayout:customGadget:addButtonTop:visible', False ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh6"], 'noduleLayout:customGadget:addButtonBottom:visible', False ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh6"], 'noduleLayout:customGadget:addButtonLeft:visible', False ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh6"], 'noduleLayout:customGadget:addButtonRight:visible', False ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh6"], 'uiEditor:emptySections', IECore.StringVectorData( [ ] ) ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh6"], 'uiEditor:emptySectionIndices', IECore.IntVectorData( [ ] ) ) __children["Hellwig2022_JMh6"]["__uiPosition"].setValue( imath.V2f( -236.016678, -22.0690117 ) ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh6"]["BoxIn"], 'noduleLayout:customGadget:addButtonTop:visible', True ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh6"]["BoxIn"], 'noduleLayout:customGadget:addButtonBottom:visible', True ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh6"]["BoxIn"], 'noduleLayout:customGadget:addButtonLeft:visible', True ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh6"]["BoxIn"], 'noduleLayout:customGadget:addButtonRight:visible', True ) __children["Hellwig2022_JMh6"]["BoxIn"]["__in"].setInput( __children["Hellwig2022_JMh6"]["in"] ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh6"]["BoxIn"]["__in"], 'nodule:color', imath.Color3f( 0.689999998, 0.537800014, 0.228300005 ) ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh6"]["BoxIn"]["__in"], 'noduleLayout:section', 'right' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh6"]["BoxIn"]["__in"], 'noduleLayout:visible', True ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh6"]["BoxIn"]["__in"], 'noduleLayout:label', None ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh6"]["BoxIn"]["__in"], 'renameable', True ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh6"]["BoxIn"]["__in"], 'deletable', True ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh6"]["BoxIn"]["__in"], 'label', 'out' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh6"]["BoxIn"]["__in"]["r"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh6"]["BoxIn"]["__in"]["g"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh6"]["BoxIn"]["__in"]["b"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh6"]["BoxIn"]["out"], 'noduleLayout:section', 'bottom' ) __children["Hellwig2022_JMh6"]["BoxIn"]["__uiPosition"].setValue( imath.V2f( -10.6072626, 0.199999809 ) ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh6"]["BoxOut"], 'noduleLayout:customGadget:addButtonTop:visible', True ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh6"]["BoxOut"], 'noduleLayout:customGadget:addButtonBottom:visible', True ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh6"]["BoxOut"], 'noduleLayout:customGadget:addButtonLeft:visible', True ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh6"]["BoxOut"], 'noduleLayout:customGadget:addButtonRight:visible', True ) __children["Hellwig2022_JMh6"]["BoxOut"]["in"].setInput( __children["Hellwig2022_JMh6"]["code"]["out"]["out"] ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh6"]["BoxOut"]["in"], 'noduleLayout:section', 'top' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh6"]["BoxOut"]["__out"], 'nodule:color', imath.Color3f( 0.689999998, 0.537800014, 0.228300005 ) ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh6"]["BoxOut"]["__out"], 'deletable', True ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh6"]["BoxOut"]["__out"], 'renameable', True ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh6"]["BoxOut"]["__out"], 'noduleLayout:section', 'top' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh6"]["BoxOut"]["__out"], 'userDefault', None ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh6"]["BoxOut"]["__out"], 'description', '' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh6"]["BoxOut"]["__out"], 'label', 'in' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh6"]["BoxOut"]["__out"], 'presetNames', None ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh6"]["BoxOut"]["__out"], 'presetValues', None ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh6"]["BoxOut"]["__out"], 'plugValueWidget:type', '' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh6"]["BoxOut"]["__out"], 'noduleLayout:visible', True ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh6"]["BoxOut"]["__out"], 'noduleLayout:label', None ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh6"]["BoxOut"]["__out"]["r"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh6"]["BoxOut"]["__out"]["r"], 'noduleLayout:section', 'left' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh6"]["BoxOut"]["__out"]["r"], 'userDefault', None ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh6"]["BoxOut"]["__out"]["r"], 'noduleLayout:label', 'in.r' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh6"]["BoxOut"]["__out"]["g"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh6"]["BoxOut"]["__out"]["g"], 'noduleLayout:section', 'left' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh6"]["BoxOut"]["__out"]["g"], 'userDefault', None ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh6"]["BoxOut"]["__out"]["g"], 'noduleLayout:label', 'in.g' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh6"]["BoxOut"]["__out"]["b"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh6"]["BoxOut"]["__out"]["b"], 'noduleLayout:section', 'left' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh6"]["BoxOut"]["__out"]["b"], 'userDefault', None ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh6"]["BoxOut"]["__out"]["b"], 'noduleLayout:label', 'in.b' ) __children["Hellwig2022_JMh6"]["BoxOut"]["passThrough"].setInput( __children["Hellwig2022_JMh6"]["BoxIn"]["out"] ) __children["Hellwig2022_JMh6"]["BoxOut"]["enabled"].setInput( __children["Hellwig2022_JMh6"]["enabled"] ) __children["Hellwig2022_JMh6"]["BoxOut"]["__uiPosition"].setValue( imath.V2f( 3.43021488, -8.30000019 ) ) __children["Hellwig2022_JMh6"]["in"].setInput( __children["chromaCompression"]["out"] ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh6"]["in"], 'nodule:color', imath.Color3f( 0.689999998, 0.537800014, 0.228300005 ) ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh6"]["in"], 'noduleLayout:section', 'top' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh6"]["in"], 'noduleLayout:visible', True ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh6"]["in"], 'noduleLayout:label', None ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh6"]["in"], 'renameable', True ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh6"]["in"], 'deletable', True ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh6"]["in"], 'label', 'out' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh6"]["in"], 'plugValueWidget:type', '' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh6"]["in"], 'layout:section', 'Settings' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh6"]["in"], 'layout:index', 0 ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh6"]["in"]["r"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh6"]["in"]["g"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh6"]["in"]["b"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) __children["Hellwig2022_JMh6"]["out"].setInput( __children["Hellwig2022_JMh6"]["BoxOut"]["__out"] ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh6"]["out"], 'nodule:color', imath.Color3f( 0.689999998, 0.537800014, 0.228300005 ) ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh6"]["out"], 'deletable', True ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh6"]["out"], 'renameable', True ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh6"]["out"], 'noduleLayout:section', 'bottom' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh6"]["out"], 'userDefault', None ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh6"]["out"], 'description', '' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh6"]["out"], 'label', 'in' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh6"]["out"], 'presetNames', None ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh6"]["out"], 'presetValues', None ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh6"]["out"], 'noduleLayout:visible', True ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh6"]["out"], 'noduleLayout:label', None ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh6"]["out"], 'plugValueWidget:type', '' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh6"]["out"], 'layout:section', 'Settings' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh6"]["out"], 'layout:index', 1 ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh6"]["out"]["r"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh6"]["out"]["r"], 'noduleLayout:section', 'left' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh6"]["out"]["r"], 'userDefault', None ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh6"]["out"]["r"], 'noduleLayout:label', 'in.r' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh6"]["out"]["g"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh6"]["out"]["g"], 'noduleLayout:section', 'left' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh6"]["out"]["g"], 'userDefault', None ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh6"]["out"]["g"], 'noduleLayout:label', 'in.g' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh6"]["out"]["b"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh6"]["out"]["b"], 'noduleLayout:section', 'left' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh6"]["out"]["b"], 'userDefault', None ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh6"]["out"]["b"], 'noduleLayout:label', 'in.b' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh6"]["enabled"], 'layout:section', 'Node' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh6"]["enabled"], 'layout:index', 6 ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh6"]["code"], 'noduleLayout:customGadget:addButtonTop:visible', True ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh6"]["code"], 'noduleLayout:customGadget:addButtonBottom:visible', True ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh6"]["code"], 'noduleLayout:customGadget:addButtonLeft:visible', True ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh6"]["code"], 'noduleLayout:customGadget:addButtonRight:visible', True ) __children["Hellwig2022_JMh6"]["code"]["parameters"]["XYZ"].setInput( __children["Hellwig2022_JMh6"]["BoxIn"]["out"] ) __children["Hellwig2022_JMh6"]["code"]["parameters"]["compressMode"].setInput( __children["Hellwig2022_JMh6"]["compressMode"] ) __children["Hellwig2022_JMh6"]["code"]["parameters"]["viewingConditions"].setInput( __children["Hellwig2022_JMh6"]["viewingConditions"] ) __children["Hellwig2022_JMh6"]["code"]["parameters"]["invert"].setInput( __children["Hellwig2022_JMh6"]["invert"] ) __children["Hellwig2022_JMh6"]["code"]["parameters"]["whitepoint"].setInput( __children["Hellwig2022_JMh6"]["whitepoint"] ) __children["Hellwig2022_JMh6"]["code"]["code"].setValue( '// Multiply 3x3 matrix m and color v\ncolor vdot(float m[], color v) {\n\treturn color(m[0]*v[0] + m[1]*v[1] + m[2]*v[2], m[3]*v[0] + m[4]*v[1] + m[5]*v[2], m[6]*v[0] + m[7]*v[1] + m[8]*v[2]);\n}\n\n\ncolor compress_bjorn (color xyz) {\n float x = xyz.r;\n float y = xyz.g;\n float z = xyz.b;\n\n float C = (x+y+z)/3;\n if (C == 0.0) return xyz;\n\n float R = sqrt(pow((x-C),2) + pow((y-C),2) + pow((z-C),2));\n R = R * 0.816496580927726;\n\n if (R != 0.0) {\n x = (x-C)/R;\n y = (y-C)/R;\n z = (z-C)/R;\n }\n\n float r = R/C;\n float s = -min(x, min(y, z));\n\n float t = 0.0;\n if (r > 0.000001) {\n t = (0.5+pow((pow((s-0.5),2) + pow((sqrt(4/pow(r,2)+1)-1),2)/4),0.5));\n if (t < 0.000001) return xyz;\n t = 1/t;\n }\n\n x = C*x*t + C;\n y = C*y*t + C;\n z = C*z*t + C;\n\n return color(x,y,z);\n}\n\n\ncolor uncompress_bjorn (color xyz) {\n float x = xyz.r;\n float y = xyz.g;\n float z = xyz.b;\n\n float C = (x+y+z)*(1.0/3.0);\n if (C == 0.0) return xyz;\n\n float R = sqrt(pow((x-C),2) + pow((y-C),2) + pow((z-C),2));\n R = R * 0.816496580927726;\n\n if (R != 0.0) {\n x = (x-C)/R;\n y = (y-C)/R;\n z = (z-C)/R;\n }\n\n float t = R/C;\n float s = -min(x, min(y, z));\n\n float r = 0.0;\n if (t > 0.000001) {\n r = sqrt(pow((2*sqrt(pow((1/t-0.5),2)-pow((s-0.5),2))+1),2)-1);\n if (r < 0.000001)\n return xyz;\n r = 2/r;\n }\n\n x = C*x*r + C;\n y = C*y*r + C;\n z = C*z*r + C;\n\n return color(x,y,z);\n}\n\n\n\n\n\n\ncolor surround;\nif (viewingConditions == 0) // "Dark": InductionFactors_CIECAM02(0.8, 0.525, 0.8),\n\tsurround = color(0.8, 0.525, 0.8);\nelse if (viewingConditions == 1) // "Dim": InductionFactors_CIECAM02(0.9, 0.59, 0.9),\n\tsurround = color(0.9, 0.59, 0.9);\nelse if (viewingConditions == 2) // "Average": InductionFactors_CIECAM02(1, 0.69, 1),\n\tsurround = color(1.0, 0.69, 1.0);\n\n\nfloat referenceLuminance = 100.0;\n\n\n// Matrix converts from the custom CAMDRT v42-pex chromaticity coordinates: \n// 0.82 0.175 -1.3 1.8 0.13 -0.1 0.333 0.333 to XYZ\nfloat MATRIX_16[9] = { 0.595158, 0.439409, -0.0344635, -0.233358, 1.08935, 0.143579, 0.0572735, -0.303878, 1.24287 };\n\ncolor XYZ_w;\nif (whitepoint == 0) XYZ_w = color(1,1,1); // referenceWhite\nelse if (whitepoint == 1) XYZ_w = color(0.950455927052, 1.0, 1.08905775076); // D65\nelse if (whitepoint == 2) XYZ_w = color(0.95264607457, 1.0, 1.00882518435); // ACES white (~D60)\n\n\nfloat XYZ_w_scaler = 100.0;\nXYZ_w = XYZ_w * XYZ_w_scaler;\nfloat Y_w = XYZ_w.g;\n\nfloat L_A = 100.0; // input adapting field\nfloat Y_b = 20.0; // input background luminance\n\ncolor RGB_w = vdot(MATRIX_16, XYZ_w);\nfloat D = 1.0; // discountIlluminant disabled\n\n// # Viewing conditions dependent parameters\nfloat k = 1 / (5 * L_A + 1);\nfloat k4 = pow(k,4);\nfloat F_L = 0.2 * k4 * (5.0 * L_A) + 0.1 * pow((1.0 - k4), 2.0) * pow(5.0 * L_A, 1.0 / 3.0);\nfloat n = Y_b / Y_w;\nfloat z = 1.48 + sqrt(n);\n\ncolor D_RGB = D * Y_w / RGB_w + 1 - D;\ncolor RGB_wc = D_RGB * RGB_w;\n\n// # Applying forward post-adaptation non-linear response compression.\ncolor F_L_RGB = pow(F_L * abs(RGB_wc) / 100.0, 0.42);\ncolor RGB_aw = (400.0 * sign(RGB_wc) * F_L_RGB) / (27.13 + F_L_RGB);\n\nfloat R_aw = RGB_aw.r;\nfloat G_aw = RGB_aw.g;\nfloat B_aw = RGB_aw.b;\nfloat ra = 2.0;\nfloat ba = 0.05;\nfloat A_w = ra * R_aw + G_aw + ba * B_aw;\n\n\n\n\n\nif (invert == 0) {\n// # Step 1\n// # Converting *CIE XYZ* tristimulus values to sharpened *RGB* values.\ncolor RGB = vdot(MATRIX_16, XYZ*referenceLuminance);\n\n// # Step 2\ncolor RGB_c = D_RGB * RGB;\n\n// # Step 3\n// # Applying forward post-adaptation non-linear response compression.\n\nif (compressMode) \tRGB_c = compress_bjorn(RGB_c);\n\n// post_adaptation_non_linear_response_compression_forward\ncolor F_L_RGB2 = pow(F_L * abs(RGB_c) / 100.0, 0.42);\ncolor RGB_a = (400.0 * sign(RGB_c) * F_L_RGB2) / (27.13 + F_L_RGB2);\n\nif (compressMode) \tRGB_a = uncompress_bjorn(RGB_a);\n\n// # Step 4\n// # Converting to preliminary cartesian coordinates.\nfloat R_a = RGB_a.r;\nfloat G_a = RGB_a.g;\nfloat B_a = RGB_a.b;\nfloat a = R_a - 12.0 * G_a / 11.0 + B_a / 11.0;\nfloat b = (R_a + G_a - 2.0 * B_a) / 9.0;\n\nfloat h = mod(degrees(atan2(b, a)), 360.0);\n\nfloat R_a2 = RGB_a.r;\nfloat G_a2 = RGB_a.g;\nfloat B_a2 = RGB_a.b;\nfloat A = ra * R_a2 + G_a2 + ba * B_a2;\n\n// # Step 7\n// # Computing the correlate of *Lightness* :math:`J`.\nfloat J = 100.0 * pow(A / A_w, surround.g * z);\n\n// # Step 8\n// # Computing the correlate of *brightness* :math:`Q`.\n// float Q = (2.0 / float(surround.g)) * (J / 100.0) * A_w;\n\n// # Step 9\n// # Computing the correlate of *colourfulness* :math:`M`.\nfloat M = J == 0.0 ? 0.0 : 43.0 * surround.b * sqrt(a * a + b * b);\n\n// # Computing the correlate of *chroma* :math:`C`.\n// float C = 35.0 * M / A_w;\n\n// # Computing the correlate of *saturation* :math:`s`.\n// float s = 100.0 * M / Q;\n \nout = color(J,M,h);\n\n\n} else {\n// In inverse mode, input XYZ will be JMh\nfloat J = XYZ.r;\nfloat M = XYZ.g;\nfloat h = XYZ.b;\n\nfloat hr = radians(h);\n\n// # Computing achromatic response :math:`A` for the stimulus.\nfloat A = A_w * pow(J / 100.0, 1.0 / (float(surround.g) * z));\n\n// # Computing *P_p_1* to *P_p_2*.\nfloat P_p_1 = 43.0 * surround.b;\nfloat P_p_2 = A;\n\n// # Step 3\n// # Computing opponent colour dimensions :math:`a` and :math:`b`.\nfloat gamma = M / P_p_1;\nfloat a = gamma * cos(hr);\nfloat b = gamma * sin(hr);\n\n// # Step 4\n// # Applying post-adaptation non-linear response compression matrix.\n\nfloat panlrcm[9] = {460.0, 451.0, 288.0, 460.0, -891.0, -261.0, 460.0, -220.0, -6300.0};\ncolor RGB_a = vdot(panlrcm, color(P_p_2, a, b)) / 1403.0;\n\n// # Step 5\n// # Applying inverse post-adaptation non-linear response compression.\nif (compressMode) \tRGB_a = compress_bjorn(RGB_a);\n\n// post_adaptation_non_linear_response_compression_inverse\ncolor RGB_c = (sign(RGB_a) * 100.0 / F_L * pow((27.13 * abs(RGB_a)) / (400.0 - abs(RGB_a)), 1.0 / 0.42));\n\nif (compressMode) \tRGB_c = uncompress_bjorn(RGB_c);\n\n// # Step 6\ncolor RGB = RGB_c / D_RGB;\n\n// # Step 7\n// float MATRIX_INVERSE_16[9] = {1.86207, -1.01125, 0.149187, 0.387527, 0.621447, -0.00897398, -0.0158415, -0.0341229, 1.04996};\nfloat MATRIX_INVERSE_16[9] = {1.45196, -0.556511, 0.10455, 0.30987, 0.770554, -0.0804234, 0.00885342, 0.214043, 0.780107};\ncolor XYZ = vdot(MATRIX_INVERSE_16, RGB);\n\nout = XYZ/100.0;\n\n}' ) __children["Hellwig2022_JMh6"]["code"]["__uiPosition"].setValue( imath.V2f( -3.68817878, -4.99635363 ) ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh6"]["compressMode"], 'nodule:type', '' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh6"]["compressMode"], 'layout:section', 'Settings' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh6"]["compressMode"], 'layout:index', 2 ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh6"]["viewingConditions"], 'nodule:type', '' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh6"]["viewingConditions"], 'plugValueWidget:type', 'GafferUI.PresetsPlugValueWidget' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh6"]["viewingConditions"], 'preset:Dark', 0 ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh6"]["viewingConditions"], 'preset:Dim', 1 ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh6"]["viewingConditions"], 'preset:Average', 2 ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh6"]["viewingConditions"], 'layout:section', 'Settings' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh6"]["viewingConditions"], 'layout:index', 3 ) __children["Hellwig2022_JMh6"]["invert"].setValue( True ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh6"]["invert"], 'nodule:type', '' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh6"]["invert"], 'layout:section', 'Settings' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh6"]["invert"], 'layout:index', 5 ) __children["Hellwig2022_JMh6"]["whitepoint"].setValue( 1 ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh6"]["whitepoint"], 'nodule:type', '' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh6"]["whitepoint"], 'layout:section', 'Settings' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh6"]["whitepoint"], 'layout:index', 4 ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh6"]["whitepoint"], 'plugValueWidget:type', 'GafferUI.PresetsPlugValueWidget' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh6"]["whitepoint"], 'preset:referenceWhite', 0 ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh6"]["whitepoint"], 'preset:D65', 1 ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh6"]["whitepoint"], 'preset:ACES White ~D60', 2 ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh7"], 'description', '' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh7"], 'documentation:url', '' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh7"], 'noduleLayout:customGadget:addButtonTop:visible', False ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh7"], 'noduleLayout:customGadget:addButtonBottom:visible', False ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh7"], 'noduleLayout:customGadget:addButtonLeft:visible', False ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh7"], 'noduleLayout:customGadget:addButtonRight:visible', False ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh7"], 'uiEditor:emptySections', IECore.StringVectorData( [ ] ) ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh7"], 'uiEditor:emptySectionIndices', IECore.IntVectorData( [ ] ) ) __children["Hellwig2022_JMh7"]["__uiPosition"].setValue( imath.V2f( -277.590942, 39.3563538 ) ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh7"]["BoxIn"], 'noduleLayout:customGadget:addButtonTop:visible', True ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh7"]["BoxIn"], 'noduleLayout:customGadget:addButtonBottom:visible', True ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh7"]["BoxIn"], 'noduleLayout:customGadget:addButtonLeft:visible', True ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh7"]["BoxIn"], 'noduleLayout:customGadget:addButtonRight:visible', True ) __children["Hellwig2022_JMh7"]["BoxIn"]["__in"].setInput( __children["Hellwig2022_JMh7"]["in"] ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh7"]["BoxIn"]["__in"], 'nodule:color', imath.Color3f( 0.689999998, 0.537800014, 0.228300005 ) ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh7"]["BoxIn"]["__in"], 'noduleLayout:section', 'right' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh7"]["BoxIn"]["__in"], 'noduleLayout:visible', True ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh7"]["BoxIn"]["__in"], 'noduleLayout:label', None ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh7"]["BoxIn"]["__in"], 'renameable', True ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh7"]["BoxIn"]["__in"], 'deletable', True ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh7"]["BoxIn"]["__in"], 'label', 'out' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh7"]["BoxIn"]["__in"]["r"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh7"]["BoxIn"]["__in"]["g"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh7"]["BoxIn"]["__in"]["b"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh7"]["BoxIn"]["out"], 'noduleLayout:section', 'bottom' ) __children["Hellwig2022_JMh7"]["BoxIn"]["__uiPosition"].setValue( imath.V2f( -10.6072626, 0.199999809 ) ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh7"]["BoxOut"], 'noduleLayout:customGadget:addButtonTop:visible', True ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh7"]["BoxOut"], 'noduleLayout:customGadget:addButtonBottom:visible', True ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh7"]["BoxOut"], 'noduleLayout:customGadget:addButtonLeft:visible', True ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh7"]["BoxOut"], 'noduleLayout:customGadget:addButtonRight:visible', True ) __children["Hellwig2022_JMh7"]["BoxOut"]["in"].setInput( __children["Hellwig2022_JMh7"]["code"]["out"]["out"] ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh7"]["BoxOut"]["in"], 'noduleLayout:section', 'top' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh7"]["BoxOut"]["__out"], 'nodule:color', imath.Color3f( 0.689999998, 0.537800014, 0.228300005 ) ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh7"]["BoxOut"]["__out"], 'deletable', True ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh7"]["BoxOut"]["__out"], 'renameable', True ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh7"]["BoxOut"]["__out"], 'noduleLayout:section', 'top' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh7"]["BoxOut"]["__out"], 'userDefault', None ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh7"]["BoxOut"]["__out"], 'description', '' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh7"]["BoxOut"]["__out"], 'label', 'in' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh7"]["BoxOut"]["__out"], 'presetNames', None ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh7"]["BoxOut"]["__out"], 'presetValues', None ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh7"]["BoxOut"]["__out"], 'plugValueWidget:type', '' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh7"]["BoxOut"]["__out"], 'noduleLayout:visible', True ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh7"]["BoxOut"]["__out"], 'noduleLayout:label', None ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh7"]["BoxOut"]["__out"]["r"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh7"]["BoxOut"]["__out"]["r"], 'noduleLayout:section', 'left' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh7"]["BoxOut"]["__out"]["r"], 'userDefault', None ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh7"]["BoxOut"]["__out"]["r"], 'noduleLayout:label', 'in.r' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh7"]["BoxOut"]["__out"]["g"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh7"]["BoxOut"]["__out"]["g"], 'noduleLayout:section', 'left' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh7"]["BoxOut"]["__out"]["g"], 'userDefault', None ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh7"]["BoxOut"]["__out"]["g"], 'noduleLayout:label', 'in.g' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh7"]["BoxOut"]["__out"]["b"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh7"]["BoxOut"]["__out"]["b"], 'noduleLayout:section', 'left' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh7"]["BoxOut"]["__out"]["b"], 'userDefault', None ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh7"]["BoxOut"]["__out"]["b"], 'noduleLayout:label', 'in.b' ) __children["Hellwig2022_JMh7"]["BoxOut"]["passThrough"].setInput( __children["Hellwig2022_JMh7"]["BoxIn"]["out"] ) __children["Hellwig2022_JMh7"]["BoxOut"]["enabled"].setInput( __children["Hellwig2022_JMh7"]["enabled"] ) __children["Hellwig2022_JMh7"]["BoxOut"]["__uiPosition"].setValue( imath.V2f( 3.43021488, -8.30000019 ) ) __children["Hellwig2022_JMh7"]["in"].setInput( __children["Multiply2"]["out"] ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh7"]["in"], 'nodule:color', imath.Color3f( 0.689999998, 0.537800014, 0.228300005 ) ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh7"]["in"], 'noduleLayout:section', 'top' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh7"]["in"], 'noduleLayout:visible', True ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh7"]["in"], 'noduleLayout:label', None ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh7"]["in"], 'renameable', True ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh7"]["in"], 'deletable', True ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh7"]["in"], 'label', 'out' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh7"]["in"], 'plugValueWidget:type', '' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh7"]["in"], 'layout:section', 'Settings' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh7"]["in"], 'layout:index', 0 ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh7"]["in"]["r"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh7"]["in"]["g"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh7"]["in"]["b"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) __children["Hellwig2022_JMh7"]["out"].setInput( __children["Hellwig2022_JMh7"]["BoxOut"]["__out"] ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh7"]["out"], 'nodule:color', imath.Color3f( 0.689999998, 0.537800014, 0.228300005 ) ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh7"]["out"], 'deletable', True ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh7"]["out"], 'renameable', True ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh7"]["out"], 'noduleLayout:section', 'bottom' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh7"]["out"], 'userDefault', None ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh7"]["out"], 'description', '' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh7"]["out"], 'label', 'in' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh7"]["out"], 'presetNames', None ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh7"]["out"], 'presetValues', None ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh7"]["out"], 'noduleLayout:visible', True ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh7"]["out"], 'noduleLayout:label', None ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh7"]["out"], 'plugValueWidget:type', '' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh7"]["out"], 'layout:section', 'Settings' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh7"]["out"], 'layout:index', 1 ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh7"]["out"]["r"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh7"]["out"]["r"], 'noduleLayout:section', 'left' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh7"]["out"]["r"], 'userDefault', None ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh7"]["out"]["r"], 'noduleLayout:label', 'in.r' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh7"]["out"]["g"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh7"]["out"]["g"], 'noduleLayout:section', 'left' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh7"]["out"]["g"], 'userDefault', None ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh7"]["out"]["g"], 'noduleLayout:label', 'in.g' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh7"]["out"]["b"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh7"]["out"]["b"], 'noduleLayout:section', 'left' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh7"]["out"]["b"], 'userDefault', None ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh7"]["out"]["b"], 'noduleLayout:label', 'in.b' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh7"]["enabled"], 'layout:section', 'Node' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh7"]["enabled"], 'layout:index', 6 ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh7"]["code"], 'noduleLayout:customGadget:addButtonTop:visible', True ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh7"]["code"], 'noduleLayout:customGadget:addButtonBottom:visible', True ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh7"]["code"], 'noduleLayout:customGadget:addButtonLeft:visible', True ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh7"]["code"], 'noduleLayout:customGadget:addButtonRight:visible', True ) __children["Hellwig2022_JMh7"]["code"]["parameters"]["XYZ"].setInput( __children["Hellwig2022_JMh7"]["BoxIn"]["out"] ) __children["Hellwig2022_JMh7"]["code"]["parameters"]["compressMode"].setInput( __children["Hellwig2022_JMh7"]["compressMode"] ) __children["Hellwig2022_JMh7"]["code"]["parameters"]["viewingConditions"].setInput( __children["Hellwig2022_JMh7"]["viewingConditions"] ) __children["Hellwig2022_JMh7"]["code"]["parameters"]["invert"].setInput( __children["Hellwig2022_JMh7"]["invert"] ) __children["Hellwig2022_JMh7"]["code"]["parameters"]["whitepoint"].setInput( __children["Hellwig2022_JMh7"]["whitepoint"] ) __children["Hellwig2022_JMh7"]["code"]["code"].setValue( '// Multiply 3x3 matrix m and color v\ncolor vdot(float m[], color v) {\n\treturn color(m[0]*v[0] + m[1]*v[1] + m[2]*v[2], m[3]*v[0] + m[4]*v[1] + m[5]*v[2], m[6]*v[0] + m[7]*v[1] + m[8]*v[2]);\n}\n\n\ncolor compress_bjorn (color xyz) {\n float x = xyz.r;\n float y = xyz.g;\n float z = xyz.b;\n\n float C = (x+y+z)/3;\n if (C == 0.0) return xyz;\n\n float R = sqrt(pow((x-C),2) + pow((y-C),2) + pow((z-C),2));\n R = R * 0.816496580927726;\n\n if (R != 0.0) {\n x = (x-C)/R;\n y = (y-C)/R;\n z = (z-C)/R;\n }\n\n float r = R/C;\n float s = -min(x, min(y, z));\n\n float t = 0.0;\n if (r > 0.000001) {\n t = (0.5+pow((pow((s-0.5),2) + pow((sqrt(4/pow(r,2)+1)-1),2)/4),0.5));\n if (t < 0.000001) return xyz;\n t = 1/t;\n }\n\n x = C*x*t + C;\n y = C*y*t + C;\n z = C*z*t + C;\n\n return color(x,y,z);\n}\n\n\ncolor uncompress_bjorn (color xyz) {\n float x = xyz.r;\n float y = xyz.g;\n float z = xyz.b;\n\n float C = (x+y+z)*(1.0/3.0);\n if (C == 0.0) return xyz;\n\n float R = sqrt(pow((x-C),2) + pow((y-C),2) + pow((z-C),2));\n R = R * 0.816496580927726;\n\n if (R != 0.0) {\n x = (x-C)/R;\n y = (y-C)/R;\n z = (z-C)/R;\n }\n\n float t = R/C;\n float s = -min(x, min(y, z));\n\n float r = 0.0;\n if (t > 0.000001) {\n r = sqrt(pow((2*sqrt(pow((1/t-0.5),2)-pow((s-0.5),2))+1),2)-1);\n if (r < 0.000001)\n return xyz;\n r = 2/r;\n }\n\n x = C*x*r + C;\n y = C*y*r + C;\n z = C*z*r + C;\n\n return color(x,y,z);\n}\n\n\n\n\n\n\ncolor surround;\nif (viewingConditions == 0) // "Dark": InductionFactors_CIECAM02(0.8, 0.525, 0.8),\n\tsurround = color(0.8, 0.525, 0.8);\nelse if (viewingConditions == 1) // "Dim": InductionFactors_CIECAM02(0.9, 0.59, 0.9),\n\tsurround = color(0.9, 0.59, 0.9);\nelse if (viewingConditions == 2) // "Average": InductionFactors_CIECAM02(1, 0.69, 1),\n\tsurround = color(1.0, 0.69, 1.0);\n\n\nfloat referenceLuminance = 100.0;\n\n\n// Matrix converts from the custom CAMDRT v42-pex chromaticity coordinates: \n// 0.82 0.175 -1.3 1.8 0.13 -0.1 0.333 0.333 to XYZ\nfloat MATRIX_16[9] = { 0.595158, 0.439409, -0.0344635, -0.233358, 1.08935, 0.143579, 0.0572735, -0.303878, 1.24287 };\n\ncolor XYZ_w;\nif (whitepoint == 0) XYZ_w = color(1,1,1); // referenceWhite\nelse if (whitepoint == 1) XYZ_w = color(0.950455927052, 1.0, 1.08905775076); // D65\nelse if (whitepoint == 2) XYZ_w = color(0.95264607457, 1.0, 1.00882518435); // ACES white (~D60)\n\n\nfloat XYZ_w_scaler = 100.0;\nXYZ_w = XYZ_w * XYZ_w_scaler;\nfloat Y_w = XYZ_w.g;\n\nfloat L_A = 100.0; // input adapting field\nfloat Y_b = 20.0; // input background luminance\n\ncolor RGB_w = vdot(MATRIX_16, XYZ_w);\nfloat D = 1.0; // discountIlluminant disabled\n\n// # Viewing conditions dependent parameters\nfloat k = 1 / (5 * L_A + 1);\nfloat k4 = pow(k,4);\nfloat F_L = 0.2 * k4 * (5.0 * L_A) + 0.1 * pow((1.0 - k4), 2.0) * pow(5.0 * L_A, 1.0 / 3.0);\nfloat n = Y_b / Y_w;\nfloat z = 1.48 + sqrt(n);\n\ncolor D_RGB = D * Y_w / RGB_w + 1 - D;\ncolor RGB_wc = D_RGB * RGB_w;\n\n// # Applying forward post-adaptation non-linear response compression.\ncolor F_L_RGB = pow(F_L * abs(RGB_wc) / 100.0, 0.42);\ncolor RGB_aw = (400.0 * sign(RGB_wc) * F_L_RGB) / (27.13 + F_L_RGB);\n\nfloat R_aw = RGB_aw.r;\nfloat G_aw = RGB_aw.g;\nfloat B_aw = RGB_aw.b;\nfloat ra = 2.0;\nfloat ba = 0.05;\nfloat A_w = ra * R_aw + G_aw + ba * B_aw;\n\n\n\n\n\nif (invert == 0) {\n// # Step 1\n// # Converting *CIE XYZ* tristimulus values to sharpened *RGB* values.\ncolor RGB = vdot(MATRIX_16, XYZ*referenceLuminance);\n\n// # Step 2\ncolor RGB_c = D_RGB * RGB;\n\n// # Step 3\n// # Applying forward post-adaptation non-linear response compression.\n\nif (compressMode) \tRGB_c = compress_bjorn(RGB_c);\n\n// post_adaptation_non_linear_response_compression_forward\ncolor F_L_RGB2 = pow(F_L * abs(RGB_c) / 100.0, 0.42);\ncolor RGB_a = (400.0 * sign(RGB_c) * F_L_RGB2) / (27.13 + F_L_RGB2);\n\nif (compressMode) \tRGB_a = uncompress_bjorn(RGB_a);\n\n// # Step 4\n// # Converting to preliminary cartesian coordinates.\nfloat R_a = RGB_a.r;\nfloat G_a = RGB_a.g;\nfloat B_a = RGB_a.b;\nfloat a = R_a - 12.0 * G_a / 11.0 + B_a / 11.0;\nfloat b = (R_a + G_a - 2.0 * B_a) / 9.0;\n\nfloat h = mod(degrees(atan2(b, a)), 360.0);\n\nfloat R_a2 = RGB_a.r;\nfloat G_a2 = RGB_a.g;\nfloat B_a2 = RGB_a.b;\nfloat A = ra * R_a2 + G_a2 + ba * B_a2;\n\n// # Step 7\n// # Computing the correlate of *Lightness* :math:`J`.\nfloat J = 100.0 * pow(A / A_w, surround.g * z);\n\n// # Step 8\n// # Computing the correlate of *brightness* :math:`Q`.\n// float Q = (2.0 / float(surround.g)) * (J / 100.0) * A_w;\n\n// # Step 9\n// # Computing the correlate of *colourfulness* :math:`M`.\nfloat M = J == 0.0 ? 0.0 : 43.0 * surround.b * sqrt(a * a + b * b);\n\n// # Computing the correlate of *chroma* :math:`C`.\n// float C = 35.0 * M / A_w;\n\n// # Computing the correlate of *saturation* :math:`s`.\n// float s = 100.0 * M / Q;\n \nout = color(J,M,h);\n\n\n} else {\n// In inverse mode, input XYZ will be JMh\nfloat J = XYZ.r;\nfloat M = XYZ.g;\nfloat h = XYZ.b;\n\nfloat hr = radians(h);\n\n// # Computing achromatic response :math:`A` for the stimulus.\nfloat A = A_w * pow(J / 100.0, 1.0 / (float(surround.g) * z));\n\n// # Computing *P_p_1* to *P_p_2*.\nfloat P_p_1 = 43.0 * surround.b;\nfloat P_p_2 = A;\n\n// # Step 3\n// # Computing opponent colour dimensions :math:`a` and :math:`b`.\nfloat gamma = M / P_p_1;\nfloat a = gamma * cos(hr);\nfloat b = gamma * sin(hr);\n\n// # Step 4\n// # Applying post-adaptation non-linear response compression matrix.\n\nfloat panlrcm[9] = {460.0, 451.0, 288.0, 460.0, -891.0, -261.0, 460.0, -220.0, -6300.0};\ncolor RGB_a = vdot(panlrcm, color(P_p_2, a, b)) / 1403.0;\n\n// # Step 5\n// # Applying inverse post-adaptation non-linear response compression.\nif (compressMode) \tRGB_a = compress_bjorn(RGB_a);\n\n// post_adaptation_non_linear_response_compression_inverse\ncolor RGB_c = (sign(RGB_a) * 100.0 / F_L * pow((27.13 * abs(RGB_a)) / (400.0 - abs(RGB_a)), 1.0 / 0.42));\n\nif (compressMode) \tRGB_c = uncompress_bjorn(RGB_c);\n\n// # Step 6\ncolor RGB = RGB_c / D_RGB;\n\n// # Step 7\n// float MATRIX_INVERSE_16[9] = {1.86207, -1.01125, 0.149187, 0.387527, 0.621447, -0.00897398, -0.0158415, -0.0341229, 1.04996};\nfloat MATRIX_INVERSE_16[9] = {1.45196, -0.556511, 0.10455, 0.30987, 0.770554, -0.0804234, 0.00885342, 0.214043, 0.780107};\ncolor XYZ = vdot(MATRIX_INVERSE_16, RGB);\n\nout = XYZ/100.0;\n\n}' ) __children["Hellwig2022_JMh7"]["code"]["__uiPosition"].setValue( imath.V2f( -3.68817878, -4.99635363 ) ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh7"]["compressMode"], 'nodule:type', '' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh7"]["compressMode"], 'layout:section', 'Settings' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh7"]["compressMode"], 'layout:index', 2 ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh7"]["viewingConditions"], 'nodule:type', '' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh7"]["viewingConditions"], 'plugValueWidget:type', 'GafferUI.PresetsPlugValueWidget' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh7"]["viewingConditions"], 'preset:Dark', 0 ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh7"]["viewingConditions"], 'preset:Dim', 1 ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh7"]["viewingConditions"], 'preset:Average', 2 ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh7"]["viewingConditions"], 'layout:section', 'Settings' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh7"]["viewingConditions"], 'layout:index', 3 ) __children["Hellwig2022_JMh7"]["invert"].setValue( True ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh7"]["invert"], 'nodule:type', '' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh7"]["invert"], 'layout:section', 'Settings' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh7"]["invert"], 'layout:index', 5 ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh7"]["whitepoint"], 'nodule:type', '' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh7"]["whitepoint"], 'layout:section', 'Settings' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh7"]["whitepoint"], 'layout:index', 4 ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh7"]["whitepoint"], 'plugValueWidget:type', 'GafferUI.PresetsPlugValueWidget' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh7"]["whitepoint"], 'preset:referenceWhite', 0 ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh7"]["whitepoint"], 'preset:D65', 1 ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh7"]["whitepoint"], 'preset:ACES White ~D60', 2 ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh8"], 'description', '' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh8"], 'documentation:url', '' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh8"], 'noduleLayout:customGadget:addButtonTop:visible', False ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh8"], 'noduleLayout:customGadget:addButtonBottom:visible', False ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh8"], 'noduleLayout:customGadget:addButtonLeft:visible', False ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh8"], 'noduleLayout:customGadget:addButtonRight:visible', False ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh8"], 'uiEditor:emptySections', IECore.StringVectorData( [ ] ) ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh8"], 'uiEditor:emptySectionIndices', IECore.IntVectorData( [ ] ) ) __children["Hellwig2022_JMh8"]["__uiPosition"].setValue( imath.V2f( -276.090942, 11.2573042 ) ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh8"]["BoxIn"], 'noduleLayout:customGadget:addButtonTop:visible', True ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh8"]["BoxIn"], 'noduleLayout:customGadget:addButtonBottom:visible', True ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh8"]["BoxIn"], 'noduleLayout:customGadget:addButtonLeft:visible', True ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh8"]["BoxIn"], 'noduleLayout:customGadget:addButtonRight:visible', True ) __children["Hellwig2022_JMh8"]["BoxIn"]["__in"].setInput( __children["Hellwig2022_JMh8"]["in"] ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh8"]["BoxIn"]["__in"], 'nodule:color', imath.Color3f( 0.689999998, 0.537800014, 0.228300005 ) ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh8"]["BoxIn"]["__in"], 'noduleLayout:section', 'right' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh8"]["BoxIn"]["__in"], 'noduleLayout:visible', True ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh8"]["BoxIn"]["__in"], 'noduleLayout:label', None ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh8"]["BoxIn"]["__in"], 'renameable', True ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh8"]["BoxIn"]["__in"], 'deletable', True ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh8"]["BoxIn"]["__in"], 'label', 'out' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh8"]["BoxIn"]["__in"]["r"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh8"]["BoxIn"]["__in"]["g"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh8"]["BoxIn"]["__in"]["b"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh8"]["BoxIn"]["out"], 'noduleLayout:section', 'bottom' ) __children["Hellwig2022_JMh8"]["BoxIn"]["__uiPosition"].setValue( imath.V2f( -10.6072626, 0.199999809 ) ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh8"]["BoxOut"], 'noduleLayout:customGadget:addButtonTop:visible', True ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh8"]["BoxOut"], 'noduleLayout:customGadget:addButtonBottom:visible', True ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh8"]["BoxOut"], 'noduleLayout:customGadget:addButtonLeft:visible', True ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh8"]["BoxOut"], 'noduleLayout:customGadget:addButtonRight:visible', True ) __children["Hellwig2022_JMh8"]["BoxOut"]["in"].setInput( __children["Hellwig2022_JMh8"]["code"]["out"]["out"] ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh8"]["BoxOut"]["in"], 'noduleLayout:section', 'top' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh8"]["BoxOut"]["__out"], 'nodule:color', imath.Color3f( 0.689999998, 0.537800014, 0.228300005 ) ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh8"]["BoxOut"]["__out"], 'deletable', True ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh8"]["BoxOut"]["__out"], 'renameable', True ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh8"]["BoxOut"]["__out"], 'noduleLayout:section', 'top' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh8"]["BoxOut"]["__out"], 'userDefault', None ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh8"]["BoxOut"]["__out"], 'description', '' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh8"]["BoxOut"]["__out"], 'label', 'in' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh8"]["BoxOut"]["__out"], 'presetNames', None ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh8"]["BoxOut"]["__out"], 'presetValues', None ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh8"]["BoxOut"]["__out"], 'plugValueWidget:type', '' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh8"]["BoxOut"]["__out"], 'noduleLayout:visible', True ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh8"]["BoxOut"]["__out"], 'noduleLayout:label', None ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh8"]["BoxOut"]["__out"]["r"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh8"]["BoxOut"]["__out"]["r"], 'noduleLayout:section', 'left' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh8"]["BoxOut"]["__out"]["r"], 'userDefault', None ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh8"]["BoxOut"]["__out"]["r"], 'noduleLayout:label', 'in.r' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh8"]["BoxOut"]["__out"]["g"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh8"]["BoxOut"]["__out"]["g"], 'noduleLayout:section', 'left' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh8"]["BoxOut"]["__out"]["g"], 'userDefault', None ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh8"]["BoxOut"]["__out"]["g"], 'noduleLayout:label', 'in.g' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh8"]["BoxOut"]["__out"]["b"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh8"]["BoxOut"]["__out"]["b"], 'noduleLayout:section', 'left' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh8"]["BoxOut"]["__out"]["b"], 'userDefault', None ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh8"]["BoxOut"]["__out"]["b"], 'noduleLayout:label', 'in.b' ) __children["Hellwig2022_JMh8"]["BoxOut"]["passThrough"].setInput( __children["Hellwig2022_JMh8"]["BoxIn"]["out"] ) __children["Hellwig2022_JMh8"]["BoxOut"]["enabled"].setInput( __children["Hellwig2022_JMh8"]["enabled"] ) __children["Hellwig2022_JMh8"]["BoxOut"]["__uiPosition"].setValue( imath.V2f( 3.43021488, -8.30000019 ) ) __children["Hellwig2022_JMh8"]["in"].setInput( __children["oslGamutConvert3"]["out"] ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh8"]["in"], 'nodule:color', imath.Color3f( 0.689999998, 0.537800014, 0.228300005 ) ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh8"]["in"], 'noduleLayout:section', 'top' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh8"]["in"], 'noduleLayout:visible', True ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh8"]["in"], 'noduleLayout:label', None ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh8"]["in"], 'renameable', True ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh8"]["in"], 'deletable', True ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh8"]["in"], 'label', 'out' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh8"]["in"], 'plugValueWidget:type', '' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh8"]["in"], 'layout:section', 'Settings' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh8"]["in"], 'layout:index', 0 ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh8"]["in"]["r"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh8"]["in"]["g"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh8"]["in"]["b"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) __children["Hellwig2022_JMh8"]["out"].setInput( __children["Hellwig2022_JMh8"]["BoxOut"]["__out"] ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh8"]["out"], 'nodule:color', imath.Color3f( 0.689999998, 0.537800014, 0.228300005 ) ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh8"]["out"], 'deletable', True ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh8"]["out"], 'renameable', True ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh8"]["out"], 'noduleLayout:section', 'bottom' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh8"]["out"], 'userDefault', None ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh8"]["out"], 'description', '' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh8"]["out"], 'label', 'in' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh8"]["out"], 'presetNames', None ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh8"]["out"], 'presetValues', None ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh8"]["out"], 'noduleLayout:visible', True ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh8"]["out"], 'noduleLayout:label', None ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh8"]["out"], 'plugValueWidget:type', '' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh8"]["out"], 'layout:section', 'Settings' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh8"]["out"], 'layout:index', 1 ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh8"]["out"]["r"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh8"]["out"]["r"], 'noduleLayout:section', 'left' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh8"]["out"]["r"], 'userDefault', None ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh8"]["out"]["r"], 'noduleLayout:label', 'in.r' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh8"]["out"]["g"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh8"]["out"]["g"], 'noduleLayout:section', 'left' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh8"]["out"]["g"], 'userDefault', None ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh8"]["out"]["g"], 'noduleLayout:label', 'in.g' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh8"]["out"]["b"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh8"]["out"]["b"], 'noduleLayout:section', 'left' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh8"]["out"]["b"], 'userDefault', None ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh8"]["out"]["b"], 'noduleLayout:label', 'in.b' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh8"]["enabled"], 'layout:section', 'Node' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh8"]["enabled"], 'layout:index', 6 ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh8"]["code"], 'noduleLayout:customGadget:addButtonTop:visible', True ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh8"]["code"], 'noduleLayout:customGadget:addButtonBottom:visible', True ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh8"]["code"], 'noduleLayout:customGadget:addButtonLeft:visible', True ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh8"]["code"], 'noduleLayout:customGadget:addButtonRight:visible', True ) __children["Hellwig2022_JMh8"]["code"]["parameters"]["XYZ"].setInput( __children["Hellwig2022_JMh8"]["BoxIn"]["out"] ) __children["Hellwig2022_JMh8"]["code"]["parameters"]["compressMode"].setInput( __children["Hellwig2022_JMh8"]["compressMode"] ) __children["Hellwig2022_JMh8"]["code"]["parameters"]["viewingConditions"].setInput( __children["Hellwig2022_JMh8"]["viewingConditions"] ) __children["Hellwig2022_JMh8"]["code"]["parameters"]["invert"].setInput( __children["Hellwig2022_JMh8"]["invert"] ) __children["Hellwig2022_JMh8"]["code"]["parameters"]["whitepoint"].setInput( __children["Hellwig2022_JMh8"]["whitepoint"] ) __children["Hellwig2022_JMh8"]["code"]["code"].setValue( '// Multiply 3x3 matrix m and color v\ncolor vdot(float m[], color v) {\n\treturn color(m[0]*v[0] + m[1]*v[1] + m[2]*v[2], m[3]*v[0] + m[4]*v[1] + m[5]*v[2], m[6]*v[0] + m[7]*v[1] + m[8]*v[2]);\n}\n\n\ncolor compress_bjorn (color xyz) {\n float x = xyz.r;\n float y = xyz.g;\n float z = xyz.b;\n\n float C = (x+y+z)/3;\n if (C == 0.0) return xyz;\n\n float R = sqrt(pow((x-C),2) + pow((y-C),2) + pow((z-C),2));\n R = R * 0.816496580927726;\n\n if (R != 0.0) {\n x = (x-C)/R;\n y = (y-C)/R;\n z = (z-C)/R;\n }\n\n float r = R/C;\n float s = -min(x, min(y, z));\n\n float t = 0.0;\n if (r > 0.000001) {\n t = (0.5+pow((pow((s-0.5),2) + pow((sqrt(4/pow(r,2)+1)-1),2)/4),0.5));\n if (t < 0.000001) return xyz;\n t = 1/t;\n }\n\n x = C*x*t + C;\n y = C*y*t + C;\n z = C*z*t + C;\n\n return color(x,y,z);\n}\n\n\ncolor uncompress_bjorn (color xyz) {\n float x = xyz.r;\n float y = xyz.g;\n float z = xyz.b;\n\n float C = (x+y+z)*(1.0/3.0);\n if (C == 0.0) return xyz;\n\n float R = sqrt(pow((x-C),2) + pow((y-C),2) + pow((z-C),2));\n R = R * 0.816496580927726;\n\n if (R != 0.0) {\n x = (x-C)/R;\n y = (y-C)/R;\n z = (z-C)/R;\n }\n\n float t = R/C;\n float s = -min(x, min(y, z));\n\n float r = 0.0;\n if (t > 0.000001) {\n r = sqrt(pow((2*sqrt(pow((1/t-0.5),2)-pow((s-0.5),2))+1),2)-1);\n if (r < 0.000001)\n return xyz;\n r = 2/r;\n }\n\n x = C*x*r + C;\n y = C*y*r + C;\n z = C*z*r + C;\n\n return color(x,y,z);\n}\n\n\n\n\n\n\ncolor surround;\nif (viewingConditions == 0) // "Dark": InductionFactors_CIECAM02(0.8, 0.525, 0.8),\n\tsurround = color(0.8, 0.525, 0.8);\nelse if (viewingConditions == 1) // "Dim": InductionFactors_CIECAM02(0.9, 0.59, 0.9),\n\tsurround = color(0.9, 0.59, 0.9);\nelse if (viewingConditions == 2) // "Average": InductionFactors_CIECAM02(1, 0.69, 1),\n\tsurround = color(1.0, 0.69, 1.0);\n\n\nfloat referenceLuminance = 100.0;\n\n\n// Matrix converts from the custom CAMDRT v42-pex chromaticity coordinates: \n// 0.82 0.175 -1.3 1.8 0.13 -0.1 0.333 0.333 to XYZ\nfloat MATRIX_16[9] = { 0.595158, 0.439409, -0.0344635, -0.233358, 1.08935, 0.143579, 0.0572735, -0.303878, 1.24287 };\n\ncolor XYZ_w;\nif (whitepoint == 0) XYZ_w = color(1,1,1); // referenceWhite\nelse if (whitepoint == 1) XYZ_w = color(0.950455927052, 1.0, 1.08905775076); // D65\nelse if (whitepoint == 2) XYZ_w = color(0.95264607457, 1.0, 1.00882518435); // ACES white (~D60)\n\n\nfloat XYZ_w_scaler = 100.0;\nXYZ_w = XYZ_w * XYZ_w_scaler;\nfloat Y_w = XYZ_w.g;\n\nfloat L_A = 100.0; // input adapting field\nfloat Y_b = 20.0; // input background luminance\n\ncolor RGB_w = vdot(MATRIX_16, XYZ_w);\nfloat D = 1.0; // discountIlluminant disabled\n\n// # Viewing conditions dependent parameters\nfloat k = 1 / (5 * L_A + 1);\nfloat k4 = pow(k,4);\nfloat F_L = 0.2 * k4 * (5.0 * L_A) + 0.1 * pow((1.0 - k4), 2.0) * pow(5.0 * L_A, 1.0 / 3.0);\nfloat n = Y_b / Y_w;\nfloat z = 1.48 + sqrt(n);\n\ncolor D_RGB = D * Y_w / RGB_w + 1 - D;\ncolor RGB_wc = D_RGB * RGB_w;\n\n// # Applying forward post-adaptation non-linear response compression.\ncolor F_L_RGB = pow(F_L * abs(RGB_wc) / 100.0, 0.42);\ncolor RGB_aw = (400.0 * sign(RGB_wc) * F_L_RGB) / (27.13 + F_L_RGB);\n\nfloat R_aw = RGB_aw.r;\nfloat G_aw = RGB_aw.g;\nfloat B_aw = RGB_aw.b;\nfloat ra = 2.0;\nfloat ba = 0.05;\nfloat A_w = ra * R_aw + G_aw + ba * B_aw;\n\n\n\n\n\nif (invert == 0) {\n// # Step 1\n// # Converting *CIE XYZ* tristimulus values to sharpened *RGB* values.\ncolor RGB = vdot(MATRIX_16, XYZ*referenceLuminance);\n\n// # Step 2\ncolor RGB_c = D_RGB * RGB;\n\n// # Step 3\n// # Applying forward post-adaptation non-linear response compression.\n\nif (compressMode) \tRGB_c = compress_bjorn(RGB_c);\n\n// post_adaptation_non_linear_response_compression_forward\ncolor F_L_RGB2 = pow(F_L * abs(RGB_c) / 100.0, 0.42);\ncolor RGB_a = (400.0 * sign(RGB_c) * F_L_RGB2) / (27.13 + F_L_RGB2);\n\nif (compressMode) \tRGB_a = uncompress_bjorn(RGB_a);\n\n// # Step 4\n// # Converting to preliminary cartesian coordinates.\nfloat R_a = RGB_a.r;\nfloat G_a = RGB_a.g;\nfloat B_a = RGB_a.b;\nfloat a = R_a - 12.0 * G_a / 11.0 + B_a / 11.0;\nfloat b = (R_a + G_a - 2.0 * B_a) / 9.0;\n\nfloat h = mod(degrees(atan2(b, a)), 360.0);\n\nfloat R_a2 = RGB_a.r;\nfloat G_a2 = RGB_a.g;\nfloat B_a2 = RGB_a.b;\nfloat A = ra * R_a2 + G_a2 + ba * B_a2;\n\n// # Step 7\n// # Computing the correlate of *Lightness* :math:`J`.\nfloat J = 100.0 * pow(A / A_w, surround.g * z);\n\n// # Step 8\n// # Computing the correlate of *brightness* :math:`Q`.\n// float Q = (2.0 / float(surround.g)) * (J / 100.0) * A_w;\n\n// # Step 9\n// # Computing the correlate of *colourfulness* :math:`M`.\nfloat M = J == 0.0 ? 0.0 : 43.0 * surround.b * sqrt(a * a + b * b);\n\n// # Computing the correlate of *chroma* :math:`C`.\n// float C = 35.0 * M / A_w;\n\n// # Computing the correlate of *saturation* :math:`s`.\n// float s = 100.0 * M / Q;\n \nout = color(J,M,h);\n\n\n} else {\n// In inverse mode, input XYZ will be JMh\nfloat J = XYZ.r;\nfloat M = XYZ.g;\nfloat h = XYZ.b;\n\nfloat hr = radians(h);\n\n// # Computing achromatic response :math:`A` for the stimulus.\nfloat A = A_w * pow(J / 100.0, 1.0 / (float(surround.g) * z));\n\n// # Computing *P_p_1* to *P_p_2*.\nfloat P_p_1 = 43.0 * surround.b;\nfloat P_p_2 = A;\n\n// # Step 3\n// # Computing opponent colour dimensions :math:`a` and :math:`b`.\nfloat gamma = M / P_p_1;\nfloat a = gamma * cos(hr);\nfloat b = gamma * sin(hr);\n\n// # Step 4\n// # Applying post-adaptation non-linear response compression matrix.\n\nfloat panlrcm[9] = {460.0, 451.0, 288.0, 460.0, -891.0, -261.0, 460.0, -220.0, -6300.0};\ncolor RGB_a = vdot(panlrcm, color(P_p_2, a, b)) / 1403.0;\n\n// # Step 5\n// # Applying inverse post-adaptation non-linear response compression.\nif (compressMode) \tRGB_a = compress_bjorn(RGB_a);\n\n// post_adaptation_non_linear_response_compression_inverse\ncolor RGB_c = (sign(RGB_a) * 100.0 / F_L * pow((27.13 * abs(RGB_a)) / (400.0 - abs(RGB_a)), 1.0 / 0.42));\n\nif (compressMode) \tRGB_c = uncompress_bjorn(RGB_c);\n\n// # Step 6\ncolor RGB = RGB_c / D_RGB;\n\n// # Step 7\n// float MATRIX_INVERSE_16[9] = {1.86207, -1.01125, 0.149187, 0.387527, 0.621447, -0.00897398, -0.0158415, -0.0341229, 1.04996};\nfloat MATRIX_INVERSE_16[9] = {1.45196, -0.556511, 0.10455, 0.30987, 0.770554, -0.0804234, 0.00885342, 0.214043, 0.780107};\ncolor XYZ = vdot(MATRIX_INVERSE_16, RGB);\n\nout = XYZ/100.0;\n\n}' ) __children["Hellwig2022_JMh8"]["code"]["__uiPosition"].setValue( imath.V2f( -3.68817878, -4.99635363 ) ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh8"]["compressMode"], 'nodule:type', '' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh8"]["compressMode"], 'layout:section', 'Settings' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh8"]["compressMode"], 'layout:index', 2 ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh8"]["viewingConditions"], 'nodule:type', '' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh8"]["viewingConditions"], 'plugValueWidget:type', 'GafferUI.PresetsPlugValueWidget' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh8"]["viewingConditions"], 'preset:Dark', 0 ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh8"]["viewingConditions"], 'preset:Dim', 1 ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh8"]["viewingConditions"], 'preset:Average', 2 ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh8"]["viewingConditions"], 'layout:section', 'Settings' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh8"]["viewingConditions"], 'layout:index', 3 ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh8"]["invert"], 'nodule:type', '' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh8"]["invert"], 'layout:section', 'Settings' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh8"]["invert"], 'layout:index', 5 ) __children["Hellwig2022_JMh8"]["whitepoint"].setValue( 1 ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh8"]["whitepoint"], 'nodule:type', '' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh8"]["whitepoint"], 'layout:section', 'Settings' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh8"]["whitepoint"], 'layout:index', 4 ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh8"]["whitepoint"], 'plugValueWidget:type', 'GafferUI.PresetsPlugValueWidget' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh8"]["whitepoint"], 'preset:referenceWhite', 0 ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh8"]["whitepoint"], 'preset:D65', 1 ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh8"]["whitepoint"], 'preset:ACES White ~D60', 2 ) Gaffer.Metadata.registerValue( __children["Multiply2"], 'noduleLayout:customGadget:addButtonTop:visible', False ) Gaffer.Metadata.registerValue( __children["Multiply2"], 'noduleLayout:customGadget:addButtonBottom:visible', False ) Gaffer.Metadata.registerValue( __children["Multiply2"], 'noduleLayout:customGadget:addButtonLeft:visible', False ) Gaffer.Metadata.registerValue( __children["Multiply2"], 'noduleLayout:customGadget:addButtonRight:visible', False ) Gaffer.Metadata.registerValue( __children["Multiply2"], 'description', '' ) Gaffer.Metadata.registerValue( __children["Multiply2"], 'uiEditor:emptySections', IECore.StringVectorData( [ ] ) ) Gaffer.Metadata.registerValue( __children["Multiply2"], 'uiEditor:emptySectionIndices', IECore.IntVectorData( [ ] ) ) __children["Multiply2"]["__uiPosition"].setValue( imath.V2f( -277.590942, 47.8563614 ) ) Gaffer.Metadata.registerValue( __children["Multiply2"]["BoxIn"], 'noduleLayout:customGadget:addButtonTop:visible', True ) Gaffer.Metadata.registerValue( __children["Multiply2"]["BoxIn"], 'noduleLayout:customGadget:addButtonBottom:visible', True ) Gaffer.Metadata.registerValue( __children["Multiply2"]["BoxIn"], 'noduleLayout:customGadget:addButtonLeft:visible', True ) Gaffer.Metadata.registerValue( __children["Multiply2"]["BoxIn"], 'noduleLayout:customGadget:addButtonRight:visible', True ) __children["Multiply2"]["BoxIn"]["__in"].setInput( __children["Multiply2"]["in"] ) Gaffer.Metadata.registerValue( __children["Multiply2"]["BoxIn"]["__in"], 'nodule:color', imath.Color3f( 0.689999998, 0.537800014, 0.228300005 ) ) Gaffer.Metadata.registerValue( __children["Multiply2"]["BoxIn"]["__in"], 'deletable', True ) Gaffer.Metadata.registerValue( __children["Multiply2"]["BoxIn"]["__in"], 'renameable', True ) Gaffer.Metadata.registerValue( __children["Multiply2"]["BoxIn"]["__in"], 'noduleLayout:section', 'bottom' ) Gaffer.Metadata.registerValue( __children["Multiply2"]["BoxIn"]["__in"], 'userDefault', None ) Gaffer.Metadata.registerValue( __children["Multiply2"]["BoxIn"]["__in"], 'description', '' ) Gaffer.Metadata.registerValue( __children["Multiply2"]["BoxIn"]["__in"], 'label', 'in' ) Gaffer.Metadata.registerValue( __children["Multiply2"]["BoxIn"]["__in"], 'presetNames', None ) Gaffer.Metadata.registerValue( __children["Multiply2"]["BoxIn"]["__in"], 'presetValues', None ) Gaffer.Metadata.registerValue( __children["Multiply2"]["BoxIn"]["__in"], 'noduleLayout:visible', True ) Gaffer.Metadata.registerValue( __children["Multiply2"]["BoxIn"]["__in"], 'noduleLayout:label', None ) Gaffer.Metadata.registerValue( __children["Multiply2"]["BoxIn"]["__in"], 'plugValueWidget:type', '' ) Gaffer.Metadata.registerValue( __children["Multiply2"]["BoxIn"]["__in"]["r"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) Gaffer.Metadata.registerValue( __children["Multiply2"]["BoxIn"]["__in"]["r"], 'noduleLayout:section', 'left' ) Gaffer.Metadata.registerValue( __children["Multiply2"]["BoxIn"]["__in"]["r"], 'userDefault', None ) Gaffer.Metadata.registerValue( __children["Multiply2"]["BoxIn"]["__in"]["r"], 'noduleLayout:label', 'in.r' ) Gaffer.Metadata.registerValue( __children["Multiply2"]["BoxIn"]["__in"]["g"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) Gaffer.Metadata.registerValue( __children["Multiply2"]["BoxIn"]["__in"]["g"], 'noduleLayout:section', 'left' ) Gaffer.Metadata.registerValue( __children["Multiply2"]["BoxIn"]["__in"]["g"], 'userDefault', None ) Gaffer.Metadata.registerValue( __children["Multiply2"]["BoxIn"]["__in"]["g"], 'noduleLayout:label', 'in.g' ) Gaffer.Metadata.registerValue( __children["Multiply2"]["BoxIn"]["__in"]["b"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) Gaffer.Metadata.registerValue( __children["Multiply2"]["BoxIn"]["__in"]["b"], 'noduleLayout:section', 'left' ) Gaffer.Metadata.registerValue( __children["Multiply2"]["BoxIn"]["__in"]["b"], 'userDefault', None ) Gaffer.Metadata.registerValue( __children["Multiply2"]["BoxIn"]["__in"]["b"], 'noduleLayout:label', 'in.b' ) Gaffer.Metadata.registerValue( __children["Multiply2"]["BoxIn"]["out"], 'noduleLayout:section', 'bottom' ) __children["Multiply2"]["BoxIn"]["__uiPosition"].setValue( imath.V2f( 3.10726023, 12.6999989 ) ) __children["Multiply2"]["in"].setInput( __children["Hellwig2022_JMh1"]["out"] ) Gaffer.Metadata.registerValue( __children["Multiply2"]["in"], 'nodule:color', imath.Color3f( 0.689999998, 0.537800014, 0.228300005 ) ) Gaffer.Metadata.registerValue( __children["Multiply2"]["in"], 'deletable', True ) Gaffer.Metadata.registerValue( __children["Multiply2"]["in"], 'renameable', True ) Gaffer.Metadata.registerValue( __children["Multiply2"]["in"], 'noduleLayout:section', 'top' ) Gaffer.Metadata.registerValue( __children["Multiply2"]["in"], 'userDefault', None ) Gaffer.Metadata.registerValue( __children["Multiply2"]["in"], 'description', '' ) Gaffer.Metadata.registerValue( __children["Multiply2"]["in"], 'label', 'in' ) Gaffer.Metadata.registerValue( __children["Multiply2"]["in"], 'presetNames', None ) Gaffer.Metadata.registerValue( __children["Multiply2"]["in"], 'presetValues', None ) Gaffer.Metadata.registerValue( __children["Multiply2"]["in"], 'noduleLayout:visible', True ) Gaffer.Metadata.registerValue( __children["Multiply2"]["in"], 'noduleLayout:label', None ) Gaffer.Metadata.registerValue( __children["Multiply2"]["in"], 'plugValueWidget:type', '' ) Gaffer.Metadata.registerValue( __children["Multiply2"]["in"], 'layout:section', 'Settings' ) Gaffer.Metadata.registerValue( __children["Multiply2"]["in"], 'layout:index', 0 ) Gaffer.Metadata.registerValue( __children["Multiply2"]["in"]["r"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) Gaffer.Metadata.registerValue( __children["Multiply2"]["in"]["r"], 'noduleLayout:section', 'left' ) Gaffer.Metadata.registerValue( __children["Multiply2"]["in"]["r"], 'userDefault', None ) Gaffer.Metadata.registerValue( __children["Multiply2"]["in"]["r"], 'noduleLayout:label', 'in.r' ) Gaffer.Metadata.registerValue( __children["Multiply2"]["in"]["g"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) Gaffer.Metadata.registerValue( __children["Multiply2"]["in"]["g"], 'noduleLayout:section', 'left' ) Gaffer.Metadata.registerValue( __children["Multiply2"]["in"]["g"], 'userDefault', None ) Gaffer.Metadata.registerValue( __children["Multiply2"]["in"]["g"], 'noduleLayout:label', 'in.g' ) Gaffer.Metadata.registerValue( __children["Multiply2"]["in"]["b"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) Gaffer.Metadata.registerValue( __children["Multiply2"]["in"]["b"], 'noduleLayout:section', 'left' ) Gaffer.Metadata.registerValue( __children["Multiply2"]["in"]["b"], 'userDefault', None ) Gaffer.Metadata.registerValue( __children["Multiply2"]["in"]["b"], 'noduleLayout:label', 'in.b' ) __children["Multiply2"]["BoxOut"]["in"].setInput( __children["Multiply2"]["MultiplyColor1"]["out"]["out"] ) Gaffer.Metadata.registerValue( __children["Multiply2"]["BoxOut"]["in"], 'noduleLayout:section', 'top' ) Gaffer.Metadata.registerValue( __children["Multiply2"]["BoxOut"]["__out"], 'nodule:color', imath.Color3f( 0.689999998, 0.537800014, 0.228300005 ) ) Gaffer.Metadata.registerValue( __children["Multiply2"]["BoxOut"]["__out"], 'deletable', True ) Gaffer.Metadata.registerValue( __children["Multiply2"]["BoxOut"]["__out"], 'renameable', True ) Gaffer.Metadata.registerValue( __children["Multiply2"]["BoxOut"]["__out"], 'noduleLayout:section', 'top' ) Gaffer.Metadata.registerValue( __children["Multiply2"]["BoxOut"]["__out"], 'userDefault', None ) Gaffer.Metadata.registerValue( __children["Multiply2"]["BoxOut"]["__out"], 'description', '' ) Gaffer.Metadata.registerValue( __children["Multiply2"]["BoxOut"]["__out"], 'label', 'in' ) Gaffer.Metadata.registerValue( __children["Multiply2"]["BoxOut"]["__out"], 'presetNames', None ) Gaffer.Metadata.registerValue( __children["Multiply2"]["BoxOut"]["__out"], 'presetValues', None ) Gaffer.Metadata.registerValue( __children["Multiply2"]["BoxOut"]["__out"], 'noduleLayout:visible', True ) Gaffer.Metadata.registerValue( __children["Multiply2"]["BoxOut"]["__out"], 'noduleLayout:label', None ) Gaffer.Metadata.registerValue( __children["Multiply2"]["BoxOut"]["__out"], 'plugValueWidget:type', '' ) Gaffer.Metadata.registerValue( __children["Multiply2"]["BoxOut"]["__out"]["r"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) Gaffer.Metadata.registerValue( __children["Multiply2"]["BoxOut"]["__out"]["r"], 'noduleLayout:section', 'left' ) Gaffer.Metadata.registerValue( __children["Multiply2"]["BoxOut"]["__out"]["r"], 'userDefault', None ) Gaffer.Metadata.registerValue( __children["Multiply2"]["BoxOut"]["__out"]["r"], 'noduleLayout:label', 'in.r' ) Gaffer.Metadata.registerValue( __children["Multiply2"]["BoxOut"]["__out"]["g"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) Gaffer.Metadata.registerValue( __children["Multiply2"]["BoxOut"]["__out"]["g"], 'noduleLayout:section', 'left' ) Gaffer.Metadata.registerValue( __children["Multiply2"]["BoxOut"]["__out"]["g"], 'userDefault', None ) Gaffer.Metadata.registerValue( __children["Multiply2"]["BoxOut"]["__out"]["g"], 'noduleLayout:label', 'in.g' ) Gaffer.Metadata.registerValue( __children["Multiply2"]["BoxOut"]["__out"]["b"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) Gaffer.Metadata.registerValue( __children["Multiply2"]["BoxOut"]["__out"]["b"], 'noduleLayout:section', 'left' ) Gaffer.Metadata.registerValue( __children["Multiply2"]["BoxOut"]["__out"]["b"], 'userDefault', None ) Gaffer.Metadata.registerValue( __children["Multiply2"]["BoxOut"]["__out"]["b"], 'noduleLayout:label', 'in.b' ) __children["Multiply2"]["BoxOut"]["passThrough"].setInput( __children["Multiply2"]["BoxIn"]["out"] ) __children["Multiply2"]["BoxOut"]["enabled"].setInput( __children["Multiply2"]["enabled"] ) __children["Multiply2"]["BoxOut"]["__uiPosition"].setValue( imath.V2f( 4.19273949, 0 ) ) __children["Multiply2"]["out"].setInput( __children["Multiply2"]["BoxOut"]["__out"] ) Gaffer.Metadata.registerValue( __children["Multiply2"]["out"], 'nodule:color', imath.Color3f( 0.689999998, 0.537800014, 0.228300005 ) ) Gaffer.Metadata.registerValue( __children["Multiply2"]["out"], 'deletable', True ) Gaffer.Metadata.registerValue( __children["Multiply2"]["out"], 'renameable', True ) Gaffer.Metadata.registerValue( __children["Multiply2"]["out"], 'noduleLayout:section', 'bottom' ) Gaffer.Metadata.registerValue( __children["Multiply2"]["out"], 'userDefault', None ) Gaffer.Metadata.registerValue( __children["Multiply2"]["out"], 'description', '' ) Gaffer.Metadata.registerValue( __children["Multiply2"]["out"], 'label', 'in' ) Gaffer.Metadata.registerValue( __children["Multiply2"]["out"], 'presetNames', None ) Gaffer.Metadata.registerValue( __children["Multiply2"]["out"], 'presetValues', None ) Gaffer.Metadata.registerValue( __children["Multiply2"]["out"], 'noduleLayout:visible', True ) Gaffer.Metadata.registerValue( __children["Multiply2"]["out"], 'noduleLayout:label', None ) Gaffer.Metadata.registerValue( __children["Multiply2"]["out"], 'plugValueWidget:type', '' ) Gaffer.Metadata.registerValue( __children["Multiply2"]["out"], 'layout:section', 'Settings' ) Gaffer.Metadata.registerValue( __children["Multiply2"]["out"], 'layout:index', 1 ) Gaffer.Metadata.registerValue( __children["Multiply2"]["out"]["r"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) Gaffer.Metadata.registerValue( __children["Multiply2"]["out"]["r"], 'noduleLayout:section', 'left' ) Gaffer.Metadata.registerValue( __children["Multiply2"]["out"]["r"], 'userDefault', None ) Gaffer.Metadata.registerValue( __children["Multiply2"]["out"]["r"], 'noduleLayout:label', 'in.r' ) Gaffer.Metadata.registerValue( __children["Multiply2"]["out"]["g"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) Gaffer.Metadata.registerValue( __children["Multiply2"]["out"]["g"], 'noduleLayout:section', 'left' ) Gaffer.Metadata.registerValue( __children["Multiply2"]["out"]["g"], 'userDefault', None ) Gaffer.Metadata.registerValue( __children["Multiply2"]["out"]["g"], 'noduleLayout:label', 'in.g' ) Gaffer.Metadata.registerValue( __children["Multiply2"]["out"]["b"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) Gaffer.Metadata.registerValue( __children["Multiply2"]["out"]["b"], 'noduleLayout:section', 'left' ) Gaffer.Metadata.registerValue( __children["Multiply2"]["out"]["b"], 'userDefault', None ) Gaffer.Metadata.registerValue( __children["Multiply2"]["out"]["b"], 'noduleLayout:label', 'in.b' ) Gaffer.Metadata.registerValue( __children["Multiply2"]["MultiplyColor1"], 'noduleLayout:customGadget:addButtonTop:visible', True ) Gaffer.Metadata.registerValue( __children["Multiply2"]["MultiplyColor1"], 'noduleLayout:customGadget:addButtonBottom:visible', True ) Gaffer.Metadata.registerValue( __children["Multiply2"]["MultiplyColor1"], 'noduleLayout:customGadget:addButtonLeft:visible', True ) Gaffer.Metadata.registerValue( __children["Multiply2"]["MultiplyColor1"], 'noduleLayout:customGadget:addButtonRight:visible', True ) __children["Multiply2"]["MultiplyColor1"]["parameters"]["a"].setInput( __children["Multiply2"]["BoxIn"]["out"] ) __children["Multiply2"]["MultiplyColor1"]["parameters"]["b"].setInput( __children["Multiply2"]["BoxIn1"]["out"] ) __children["Multiply2"]["MultiplyColor1"]["__uiPosition"].setValue( imath.V2f( 3.24999976, 5.89999962 ) ) Gaffer.Metadata.registerValue( __children["Multiply2"]["enabled"], 'layout:section', 'Node' ) Gaffer.Metadata.registerValue( __children["Multiply2"]["enabled"], 'layout:index', 3 ) __children["Multiply2"]["BoxIn1"]["name"].setValue( 'multiply' ) __children["Multiply2"]["BoxIn1"]["__in"].setInput( __children["Multiply2"]["multiply"] ) Gaffer.Metadata.registerValue( __children["Multiply2"]["BoxIn1"]["__in"], 'nodule:color', imath.Color3f( 0.689999998, 0.537800014, 0.228300005 ) ) Gaffer.Metadata.registerValue( __children["Multiply2"]["BoxIn1"]["__in"], 'noduleLayout:section', 'left' ) Gaffer.Metadata.registerValue( __children["Multiply2"]["BoxIn1"]["__in"], 'userDefault', None ) Gaffer.Metadata.registerValue( __children["Multiply2"]["BoxIn1"]["__in"], 'description', '' ) Gaffer.Metadata.registerValue( __children["Multiply2"]["BoxIn1"]["__in"], 'label', None ) Gaffer.Metadata.registerValue( __children["Multiply2"]["BoxIn1"]["__in"], 'presetNames', None ) Gaffer.Metadata.registerValue( __children["Multiply2"]["BoxIn1"]["__in"], 'presetValues', None ) Gaffer.Metadata.registerValue( __children["Multiply2"]["BoxIn1"]["__in"], 'plugValueWidget:type', None ) Gaffer.Metadata.registerValue( __children["Multiply2"]["BoxIn1"]["__in"], 'nodule:type', None ) Gaffer.Metadata.registerValue( __children["Multiply2"]["BoxIn1"]["__in"], 'noduleLayout:visible', True ) Gaffer.Metadata.registerValue( __children["Multiply2"]["BoxIn1"]["__in"], 'noduleLayout:label', None ) Gaffer.Metadata.registerValue( __children["Multiply2"]["BoxIn1"]["__in"]["r"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) Gaffer.Metadata.registerValue( __children["Multiply2"]["BoxIn1"]["__in"]["r"], 'noduleLayout:section', 'left' ) Gaffer.Metadata.registerValue( __children["Multiply2"]["BoxIn1"]["__in"]["r"], 'userDefault', None ) Gaffer.Metadata.registerValue( __children["Multiply2"]["BoxIn1"]["__in"]["r"], 'noduleLayout:label', 'b.r' ) Gaffer.Metadata.registerValue( __children["Multiply2"]["BoxIn1"]["__in"]["g"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) Gaffer.Metadata.registerValue( __children["Multiply2"]["BoxIn1"]["__in"]["g"], 'noduleLayout:section', 'left' ) Gaffer.Metadata.registerValue( __children["Multiply2"]["BoxIn1"]["__in"]["g"], 'userDefault', None ) Gaffer.Metadata.registerValue( __children["Multiply2"]["BoxIn1"]["__in"]["g"], 'noduleLayout:label', 'b.g' ) Gaffer.Metadata.registerValue( __children["Multiply2"]["BoxIn1"]["__in"]["b"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) Gaffer.Metadata.registerValue( __children["Multiply2"]["BoxIn1"]["__in"]["b"], 'noduleLayout:section', 'left' ) Gaffer.Metadata.registerValue( __children["Multiply2"]["BoxIn1"]["__in"]["b"], 'userDefault', None ) Gaffer.Metadata.registerValue( __children["Multiply2"]["BoxIn1"]["__in"]["b"], 'noduleLayout:label', 'b.b' ) Gaffer.Metadata.registerValue( __children["Multiply2"]["BoxIn1"]["out"], 'noduleLayout:section', 'right' ) __children["Multiply2"]["BoxIn1"]["__uiPosition"].setValue( imath.V2f( -8.48264599, 5.29999971 ) ) __children["Multiply2"]["multiply"].setValue( imath.Color3f( 1, 0, 0 ) ) Gaffer.Metadata.registerValue( __children["Multiply2"]["multiply"], 'nodule:color', imath.Color3f( 0.689999998, 0.537800014, 0.228300005 ) ) Gaffer.Metadata.registerValue( __children["Multiply2"]["multiply"], 'noduleLayout:section', 'left' ) Gaffer.Metadata.registerValue( __children["Multiply2"]["multiply"], 'userDefault', None ) Gaffer.Metadata.registerValue( __children["Multiply2"]["multiply"], 'description', '' ) Gaffer.Metadata.registerValue( __children["Multiply2"]["multiply"], 'presetNames', None ) Gaffer.Metadata.registerValue( __children["Multiply2"]["multiply"], 'presetValues', None ) Gaffer.Metadata.registerValue( __children["Multiply2"]["multiply"], 'nodule:type', '' ) Gaffer.Metadata.registerValue( __children["Multiply2"]["multiply"], 'noduleLayout:visible', True ) Gaffer.Metadata.registerValue( __children["Multiply2"]["multiply"], 'noduleLayout:label', None ) Gaffer.Metadata.registerValue( __children["Multiply2"]["multiply"], 'layout:section', 'Settings' ) Gaffer.Metadata.registerValue( __children["Multiply2"]["multiply"], 'layout:index', 2 ) Gaffer.Metadata.registerValue( __children["Multiply2"]["multiply"]["r"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) Gaffer.Metadata.registerValue( __children["Multiply2"]["multiply"]["r"], 'noduleLayout:section', 'left' ) Gaffer.Metadata.registerValue( __children["Multiply2"]["multiply"]["r"], 'userDefault', None ) Gaffer.Metadata.registerValue( __children["Multiply2"]["multiply"]["r"], 'noduleLayout:label', 'b.r' ) Gaffer.Metadata.registerValue( __children["Multiply2"]["multiply"]["g"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) Gaffer.Metadata.registerValue( __children["Multiply2"]["multiply"]["g"], 'noduleLayout:section', 'left' ) Gaffer.Metadata.registerValue( __children["Multiply2"]["multiply"]["g"], 'userDefault', None ) Gaffer.Metadata.registerValue( __children["Multiply2"]["multiply"]["g"], 'noduleLayout:label', 'b.g' ) Gaffer.Metadata.registerValue( __children["Multiply2"]["multiply"]["b"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) Gaffer.Metadata.registerValue( __children["Multiply2"]["multiply"]["b"], 'noduleLayout:section', 'left' ) Gaffer.Metadata.registerValue( __children["Multiply2"]["multiply"]["b"], 'userDefault', None ) Gaffer.Metadata.registerValue( __children["Multiply2"]["multiply"]["b"], 'noduleLayout:label', 'b.b' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert3"], 'noduleLayout:customGadget:addButtonTop:visible', False ) Gaffer.Metadata.registerValue( __children["oslGamutConvert3"], 'noduleLayout:customGadget:addButtonBottom:visible', False ) Gaffer.Metadata.registerValue( __children["oslGamutConvert3"], 'noduleLayout:customGadget:addButtonLeft:visible', False ) Gaffer.Metadata.registerValue( __children["oslGamutConvert3"], 'noduleLayout:customGadget:addButtonRight:visible', False ) Gaffer.Metadata.registerValue( __children["oslGamutConvert3"], 'description', '' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert3"], 'uiEditor:emptySections', IECore.StringVectorData( [ ] ) ) Gaffer.Metadata.registerValue( __children["oslGamutConvert3"], 'uiEditor:emptySectionIndices', IECore.IntVectorData( [ ] ) ) __children["oslGamutConvert3"]["__uiPosition"].setValue( imath.V2f( -276.090942, 17.257309 ) ) Gaffer.Metadata.registerValue( __children["oslGamutConvert3"]["ColorMatrix"], 'noduleLayout:customGadget:addButtonTop:visible', True ) Gaffer.Metadata.registerValue( __children["oslGamutConvert3"]["ColorMatrix"], 'noduleLayout:customGadget:addButtonBottom:visible', True ) Gaffer.Metadata.registerValue( __children["oslGamutConvert3"]["ColorMatrix"], 'noduleLayout:customGadget:addButtonLeft:visible', True ) Gaffer.Metadata.registerValue( __children["oslGamutConvert3"]["ColorMatrix"], 'noduleLayout:customGadget:addButtonRight:visible', True ) __children["oslGamutConvert3"]["ColorMatrix"]["parameters"]["m0"].setInput( __children["oslGamutConvert3"]["Expression4"]["__out"]["p0"] ) __children["oslGamutConvert3"]["ColorMatrix"]["parameters"]["m1"].setInput( __children["oslGamutConvert3"]["Expression4"]["__out"]["p1"] ) __children["oslGamutConvert3"]["ColorMatrix"]["parameters"]["m2"].setInput( __children["oslGamutConvert3"]["Expression4"]["__out"]["p2"] ) __children["oslGamutConvert3"]["ColorMatrix"]["parameters"]["in"].setInput( __children["oslGamutConvert3"]["BoxIn"]["out"] ) __children["oslGamutConvert3"]["ColorMatrix"]["code"].setValue( 'out.r = dot(m0, in);\nout.g = dot(m1, in);\nout.b = dot(m2, in);' ) __children["oslGamutConvert3"]["ColorMatrix"]["__uiPosition"].setValue( imath.V2f( -593.35083, 5.33377171 ) ) __children["oslGamutConvert3"]["Expression4"]["__in"]["p0"].setInput( __children["oslGamutConvert3"]["gamutIn"] ) __children["oslGamutConvert3"]["Expression4"]["__in"]["p1"].setInput( __children["oslGamutConvert3"]["gamutOut"] ) __children["oslGamutConvert3"]["Expression4"]["__uiPosition"].setValue( imath.V2f( -600.471619, 12.8735418 ) ) __children["oslGamutConvert3"]["BoxIn"]["__in"].setInput( __children["oslGamutConvert3"]["in"] ) Gaffer.Metadata.registerValue( __children["oslGamutConvert3"]["BoxIn"]["__in"], 'nodule:color', imath.Color3f( 0.689999998, 0.537800014, 0.228300005 ) ) Gaffer.Metadata.registerValue( __children["oslGamutConvert3"]["BoxIn"]["__in"], 'noduleLayout:section', 'left' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert3"]["BoxIn"]["__in"], 'userDefault', None ) Gaffer.Metadata.registerValue( __children["oslGamutConvert3"]["BoxIn"]["__in"], 'description', '' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert3"]["BoxIn"]["__in"], 'label', 'c' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert3"]["BoxIn"]["__in"], 'presetNames', None ) Gaffer.Metadata.registerValue( __children["oslGamutConvert3"]["BoxIn"]["__in"], 'presetValues', None ) Gaffer.Metadata.registerValue( __children["oslGamutConvert3"]["BoxIn"]["__in"], 'plugValueWidget:type', None ) Gaffer.Metadata.registerValue( __children["oslGamutConvert3"]["BoxIn"]["__in"], 'nodule:type', None ) Gaffer.Metadata.registerValue( __children["oslGamutConvert3"]["BoxIn"]["__in"], 'noduleLayout:visible', True ) Gaffer.Metadata.registerValue( __children["oslGamutConvert3"]["BoxIn"]["__in"], 'noduleLayout:label', None ) Gaffer.Metadata.registerValue( __children["oslGamutConvert3"]["BoxIn"]["__in"], 'renameable', True ) Gaffer.Metadata.registerValue( __children["oslGamutConvert3"]["BoxIn"]["__in"], 'deletable', True ) Gaffer.Metadata.registerValue( __children["oslGamutConvert3"]["BoxIn"]["__in"]["r"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) Gaffer.Metadata.registerValue( __children["oslGamutConvert3"]["BoxIn"]["__in"]["r"], 'noduleLayout:section', 'left' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert3"]["BoxIn"]["__in"]["r"], 'userDefault', None ) Gaffer.Metadata.registerValue( __children["oslGamutConvert3"]["BoxIn"]["__in"]["r"], 'noduleLayout:label', 'c.r' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert3"]["BoxIn"]["__in"]["g"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) Gaffer.Metadata.registerValue( __children["oslGamutConvert3"]["BoxIn"]["__in"]["g"], 'noduleLayout:section', 'left' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert3"]["BoxIn"]["__in"]["g"], 'userDefault', None ) Gaffer.Metadata.registerValue( __children["oslGamutConvert3"]["BoxIn"]["__in"]["g"], 'noduleLayout:label', 'c.g' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert3"]["BoxIn"]["__in"]["b"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) Gaffer.Metadata.registerValue( __children["oslGamutConvert3"]["BoxIn"]["__in"]["b"], 'noduleLayout:section', 'left' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert3"]["BoxIn"]["__in"]["b"], 'userDefault', None ) Gaffer.Metadata.registerValue( __children["oslGamutConvert3"]["BoxIn"]["__in"]["b"], 'noduleLayout:label', 'c.b' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert3"]["BoxIn"]["out"], 'noduleLayout:section', 'right' ) __children["oslGamutConvert3"]["BoxIn"]["__uiPosition"].setValue( imath.V2f( -608.49762, 9.83449078 ) ) __children["oslGamutConvert3"]["in"].setInput( __children["tonescale_daniele_evo"]["h"] ) Gaffer.Metadata.registerValue( __children["oslGamutConvert3"]["in"], 'nodule:color', imath.Color3f( 0.689999998, 0.537800014, 0.228300005 ) ) Gaffer.Metadata.registerValue( __children["oslGamutConvert3"]["in"], 'noduleLayout:section', 'top' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert3"]["in"], 'userDefault', None ) Gaffer.Metadata.registerValue( __children["oslGamutConvert3"]["in"], 'description', '' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert3"]["in"], 'presetNames', None ) Gaffer.Metadata.registerValue( __children["oslGamutConvert3"]["in"], 'presetValues', None ) Gaffer.Metadata.registerValue( __children["oslGamutConvert3"]["in"], 'plugValueWidget:type', '' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert3"]["in"], 'nodule:type', None ) Gaffer.Metadata.registerValue( __children["oslGamutConvert3"]["in"], 'noduleLayout:visible', True ) Gaffer.Metadata.registerValue( __children["oslGamutConvert3"]["in"], 'noduleLayout:label', None ) Gaffer.Metadata.registerValue( __children["oslGamutConvert3"]["in"], 'renameable', True ) Gaffer.Metadata.registerValue( __children["oslGamutConvert3"]["in"], 'deletable', True ) Gaffer.Metadata.registerValue( __children["oslGamutConvert3"]["in"], 'layout:section', 'Settings' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert3"]["in"], 'layout:index', 0 ) Gaffer.Metadata.registerValue( __children["oslGamutConvert3"]["in"]["r"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) Gaffer.Metadata.registerValue( __children["oslGamutConvert3"]["in"]["r"], 'noduleLayout:section', 'left' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert3"]["in"]["r"], 'userDefault', None ) Gaffer.Metadata.registerValue( __children["oslGamutConvert3"]["in"]["r"], 'noduleLayout:label', 'c.r' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert3"]["in"]["g"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) Gaffer.Metadata.registerValue( __children["oslGamutConvert3"]["in"]["g"], 'noduleLayout:section', 'left' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert3"]["in"]["g"], 'userDefault', None ) Gaffer.Metadata.registerValue( __children["oslGamutConvert3"]["in"]["g"], 'noduleLayout:label', 'c.g' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert3"]["in"]["b"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) Gaffer.Metadata.registerValue( __children["oslGamutConvert3"]["in"]["b"], 'noduleLayout:section', 'left' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert3"]["in"]["b"], 'userDefault', None ) Gaffer.Metadata.registerValue( __children["oslGamutConvert3"]["in"]["b"], 'noduleLayout:label', 'c.b' ) __children["oslGamutConvert3"]["BoxOut"]["in"].setInput( __children["oslGamutConvert3"]["ColorMatrix"]["out"]["out"] ) Gaffer.Metadata.registerValue( __children["oslGamutConvert3"]["BoxOut"]["in"], 'noduleLayout:section', 'left' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert3"]["BoxOut"]["__out"], 'nodule:color', imath.Color3f( 0.689999998, 0.537800014, 0.228300005 ) ) Gaffer.Metadata.registerValue( __children["oslGamutConvert3"]["BoxOut"]["__out"], 'noduleLayout:section', 'right' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert3"]["BoxOut"]["__out"], 'noduleLayout:visible', True ) Gaffer.Metadata.registerValue( __children["oslGamutConvert3"]["BoxOut"]["__out"], 'noduleLayout:label', None ) Gaffer.Metadata.registerValue( __children["oslGamutConvert3"]["BoxOut"]["__out"], 'renameable', True ) Gaffer.Metadata.registerValue( __children["oslGamutConvert3"]["BoxOut"]["__out"], 'deletable', True ) Gaffer.Metadata.registerValue( __children["oslGamutConvert3"]["BoxOut"]["__out"], 'label', 'out' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert3"]["BoxOut"]["__out"]["r"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) Gaffer.Metadata.registerValue( __children["oslGamutConvert3"]["BoxOut"]["__out"]["g"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) Gaffer.Metadata.registerValue( __children["oslGamutConvert3"]["BoxOut"]["__out"]["b"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) __children["oslGamutConvert3"]["BoxOut"]["passThrough"].setInput( __children["oslGamutConvert3"]["BoxIn"]["out"] ) __children["oslGamutConvert3"]["BoxOut"]["enabled"].setInput( __children["oslGamutConvert3"]["enabled"] ) __children["oslGamutConvert3"]["BoxOut"]["__uiPosition"].setValue( imath.V2f( -581.270325, 5.33377171 ) ) __children["oslGamutConvert3"]["out"].setInput( __children["oslGamutConvert3"]["BoxOut"]["__out"] ) Gaffer.Metadata.registerValue( __children["oslGamutConvert3"]["out"], 'nodule:color', imath.Color3f( 0.689999998, 0.537800014, 0.228300005 ) ) Gaffer.Metadata.registerValue( __children["oslGamutConvert3"]["out"], 'noduleLayout:section', 'bottom' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert3"]["out"], 'noduleLayout:visible', True ) Gaffer.Metadata.registerValue( __children["oslGamutConvert3"]["out"], 'noduleLayout:label', None ) Gaffer.Metadata.registerValue( __children["oslGamutConvert3"]["out"], 'renameable', True ) Gaffer.Metadata.registerValue( __children["oslGamutConvert3"]["out"], 'deletable', True ) Gaffer.Metadata.registerValue( __children["oslGamutConvert3"]["out"], 'label', 'out' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert3"]["out"], 'layout:section', 'Settings' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert3"]["out"], 'layout:index', 1 ) Gaffer.Metadata.registerValue( __children["oslGamutConvert3"]["out"], 'plugValueWidget:type', '' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert3"]["out"]["r"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) Gaffer.Metadata.registerValue( __children["oslGamutConvert3"]["out"]["g"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) Gaffer.Metadata.registerValue( __children["oslGamutConvert3"]["out"]["b"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) __children["oslGamutConvert3"]["gamutIn"].setValue( 'Rec709' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert3"]["gamutIn"], 'nodule:type', '' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert3"]["gamutIn"], 'layout:section', 'Settings' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert3"]["gamutIn"], 'plugValueWidget:type', 'GafferUI.PresetsPlugValueWidget' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert3"]["gamutIn"], 'description', '' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert3"]["gamutIn"], 'layout:index', 2 ) Gaffer.Metadata.registerValue( __children["oslGamutConvert3"]["gamutIn"], 'preset:XYZ', 'XYZ' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert3"]["gamutIn"], 'preset:ACES', 'ACES' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert3"]["gamutIn"], 'preset:ACEScg', 'ACEScg' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert3"]["gamutIn"], 'preset:FilmlightEGamut', 'FilmlightEGamut' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert3"]["gamutIn"], 'preset:DavinciWideGamut', 'DavinciWideGamut' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert3"]["gamutIn"], 'preset:Rec709', 'Rec709' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert3"]["gamutIn"], 'preset:Rec2020', 'Rec2020' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert3"]["gamutIn"], 'preset:P3D65', 'P3D65' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert3"]["gamutIn"], 'preset:ArriWideGamut3', 'ArriWideGamut3' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert3"]["gamutIn"], 'preset:ArriWideGamut4', 'ArriWideGamut4' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert3"]["gamutIn"], 'preset:RedWideGamutRGB', 'ArriWideGamut4' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert3"]["gamutIn"], 'preset:SonySGamut3', 'SonySGamut3' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert3"]["gamutIn"], 'preset:SonySGamut3.Cine', 'SonySGamut3.Cine' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert3"]["gamutIn"], 'preset:PanasonicVGamut', 'PanasonicVGamut' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert3"]["gamutIn"], 'preset:DJIDGamut', 'DJIDGamut' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert3"]["gamutIn"], 'preset:BlackmagicWideGamut', 'BlackmagicWideGamut' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert3"]["gamutOut"], 'nodule:type', '' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert3"]["gamutOut"], 'layout:section', 'Settings' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert3"]["gamutOut"], 'plugValueWidget:type', 'GafferUI.PresetsPlugValueWidget' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert3"]["gamutOut"], 'preset:XYZ', 'XYZ' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert3"]["gamutOut"], 'preset:ACES', 'ACES' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert3"]["gamutOut"], 'preset:ACEScg', 'ACEScg' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert3"]["gamutOut"], 'preset:FilmlightEGamut', 'FilmlightEGamut' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert3"]["gamutOut"], 'preset:DavinciWideGamut', 'DavinciWideGamut' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert3"]["gamutOut"], 'preset:Rec709', 'Rec709' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert3"]["gamutOut"], 'preset:Rec2020', 'Rec2020' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert3"]["gamutOut"], 'preset:P3D65', 'P3D65' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert3"]["gamutOut"], 'preset:ArriWideGamut3', 'ArriWideGamut3' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert3"]["gamutOut"], 'preset:ArriWideGamut4', 'ArriWideGamut4' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert3"]["gamutOut"], 'preset:RedWideGamutRGB', 'ArriWideGamut4' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert3"]["gamutOut"], 'preset:SonySGamut3', 'SonySGamut3' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert3"]["gamutOut"], 'preset:SonySGamut3.Cine', 'SonySGamut3.Cine' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert3"]["gamutOut"], 'preset:PanasonicVGamut', 'PanasonicVGamut' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert3"]["gamutOut"], 'preset:DJIDGamut', 'DJIDGamut' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert3"]["gamutOut"], 'preset:BlackmagicWideGamut', 'BlackmagicWideGamut' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert3"]["gamutOut"], 'layout:index', 3 ) Gaffer.Metadata.registerValue( __children["oslGamutConvert3"]["enabled"], 'layout:section', 'Node' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert3"]["enabled"], 'layout:index', 4 ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh9"], 'description', '' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh9"], 'documentation:url', '' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh9"], 'noduleLayout:customGadget:addButtonTop:visible', False ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh9"], 'noduleLayout:customGadget:addButtonBottom:visible', False ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh9"], 'noduleLayout:customGadget:addButtonLeft:visible', False ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh9"], 'noduleLayout:customGadget:addButtonRight:visible', False ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh9"], 'uiEditor:emptySections', IECore.StringVectorData( [ ] ) ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh9"], 'uiEditor:emptySectionIndices', IECore.IntVectorData( [ ] ) ) __children["Hellwig2022_JMh9"]["__uiPosition"].setValue( imath.V2f( -254.302567, 11.2433577 ) ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh9"]["BoxIn"], 'noduleLayout:customGadget:addButtonTop:visible', True ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh9"]["BoxIn"], 'noduleLayout:customGadget:addButtonBottom:visible', True ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh9"]["BoxIn"], 'noduleLayout:customGadget:addButtonLeft:visible', True ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh9"]["BoxIn"], 'noduleLayout:customGadget:addButtonRight:visible', True ) __children["Hellwig2022_JMh9"]["BoxIn"]["__in"].setInput( __children["Hellwig2022_JMh9"]["in"] ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh9"]["BoxIn"]["__in"], 'nodule:color', imath.Color3f( 0.689999998, 0.537800014, 0.228300005 ) ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh9"]["BoxIn"]["__in"], 'noduleLayout:section', 'right' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh9"]["BoxIn"]["__in"], 'noduleLayout:visible', True ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh9"]["BoxIn"]["__in"], 'noduleLayout:label', None ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh9"]["BoxIn"]["__in"], 'renameable', True ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh9"]["BoxIn"]["__in"], 'deletable', True ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh9"]["BoxIn"]["__in"], 'label', 'out' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh9"]["BoxIn"]["__in"]["r"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh9"]["BoxIn"]["__in"]["g"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh9"]["BoxIn"]["__in"]["b"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh9"]["BoxIn"]["out"], 'noduleLayout:section', 'bottom' ) __children["Hellwig2022_JMh9"]["BoxIn"]["__uiPosition"].setValue( imath.V2f( -10.6072626, 0.199999809 ) ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh9"]["BoxOut"], 'noduleLayout:customGadget:addButtonTop:visible', True ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh9"]["BoxOut"], 'noduleLayout:customGadget:addButtonBottom:visible', True ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh9"]["BoxOut"], 'noduleLayout:customGadget:addButtonLeft:visible', True ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh9"]["BoxOut"], 'noduleLayout:customGadget:addButtonRight:visible', True ) __children["Hellwig2022_JMh9"]["BoxOut"]["in"].setInput( __children["Hellwig2022_JMh9"]["code"]["out"]["out"] ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh9"]["BoxOut"]["in"], 'noduleLayout:section', 'top' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh9"]["BoxOut"]["__out"], 'nodule:color', imath.Color3f( 0.689999998, 0.537800014, 0.228300005 ) ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh9"]["BoxOut"]["__out"], 'deletable', True ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh9"]["BoxOut"]["__out"], 'renameable', True ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh9"]["BoxOut"]["__out"], 'noduleLayout:section', 'top' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh9"]["BoxOut"]["__out"], 'userDefault', None ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh9"]["BoxOut"]["__out"], 'description', '' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh9"]["BoxOut"]["__out"], 'label', 'in' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh9"]["BoxOut"]["__out"], 'presetNames', None ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh9"]["BoxOut"]["__out"], 'presetValues', None ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh9"]["BoxOut"]["__out"], 'plugValueWidget:type', '' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh9"]["BoxOut"]["__out"], 'noduleLayout:visible', True ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh9"]["BoxOut"]["__out"], 'noduleLayout:label', None ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh9"]["BoxOut"]["__out"]["r"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh9"]["BoxOut"]["__out"]["r"], 'noduleLayout:section', 'left' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh9"]["BoxOut"]["__out"]["r"], 'userDefault', None ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh9"]["BoxOut"]["__out"]["r"], 'noduleLayout:label', 'in.r' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh9"]["BoxOut"]["__out"]["g"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh9"]["BoxOut"]["__out"]["g"], 'noduleLayout:section', 'left' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh9"]["BoxOut"]["__out"]["g"], 'userDefault', None ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh9"]["BoxOut"]["__out"]["g"], 'noduleLayout:label', 'in.g' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh9"]["BoxOut"]["__out"]["b"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh9"]["BoxOut"]["__out"]["b"], 'noduleLayout:section', 'left' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh9"]["BoxOut"]["__out"]["b"], 'userDefault', None ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh9"]["BoxOut"]["__out"]["b"], 'noduleLayout:label', 'in.b' ) __children["Hellwig2022_JMh9"]["BoxOut"]["passThrough"].setInput( __children["Hellwig2022_JMh9"]["BoxIn"]["out"] ) __children["Hellwig2022_JMh9"]["BoxOut"]["enabled"].setInput( __children["Hellwig2022_JMh9"]["enabled"] ) __children["Hellwig2022_JMh9"]["BoxOut"]["__uiPosition"].setValue( imath.V2f( 3.43021488, -8.30000019 ) ) __children["Hellwig2022_JMh9"]["in"].setInput( __children["oslGamutConvert4"]["out"] ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh9"]["in"], 'nodule:color', imath.Color3f( 0.689999998, 0.537800014, 0.228300005 ) ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh9"]["in"], 'noduleLayout:section', 'top' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh9"]["in"], 'noduleLayout:visible', True ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh9"]["in"], 'noduleLayout:label', None ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh9"]["in"], 'renameable', True ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh9"]["in"], 'deletable', True ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh9"]["in"], 'label', 'out' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh9"]["in"], 'plugValueWidget:type', '' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh9"]["in"], 'layout:section', 'Settings' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh9"]["in"], 'layout:index', 0 ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh9"]["in"]["r"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh9"]["in"]["g"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh9"]["in"]["b"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) __children["Hellwig2022_JMh9"]["out"].setInput( __children["Hellwig2022_JMh9"]["BoxOut"]["__out"] ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh9"]["out"], 'nodule:color', imath.Color3f( 0.689999998, 0.537800014, 0.228300005 ) ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh9"]["out"], 'deletable', True ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh9"]["out"], 'renameable', True ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh9"]["out"], 'noduleLayout:section', 'bottom' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh9"]["out"], 'userDefault', None ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh9"]["out"], 'description', '' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh9"]["out"], 'label', 'in' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh9"]["out"], 'presetNames', None ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh9"]["out"], 'presetValues', None ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh9"]["out"], 'noduleLayout:visible', True ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh9"]["out"], 'noduleLayout:label', None ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh9"]["out"], 'plugValueWidget:type', '' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh9"]["out"], 'layout:section', 'Settings' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh9"]["out"], 'layout:index', 1 ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh9"]["out"], 'compoundNumericNodule:childrenVisible', True ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh9"]["out"]["r"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh9"]["out"]["r"], 'noduleLayout:section', 'left' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh9"]["out"]["r"], 'userDefault', None ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh9"]["out"]["r"], 'noduleLayout:label', 'in.r' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh9"]["out"]["g"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh9"]["out"]["g"], 'noduleLayout:section', 'left' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh9"]["out"]["g"], 'userDefault', None ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh9"]["out"]["g"], 'noduleLayout:label', 'in.g' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh9"]["out"]["b"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh9"]["out"]["b"], 'noduleLayout:section', 'left' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh9"]["out"]["b"], 'userDefault', None ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh9"]["out"]["b"], 'noduleLayout:label', 'in.b' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh9"]["enabled"], 'layout:section', 'Node' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh9"]["enabled"], 'layout:index', 6 ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh9"]["code"], 'noduleLayout:customGadget:addButtonTop:visible', True ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh9"]["code"], 'noduleLayout:customGadget:addButtonBottom:visible', True ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh9"]["code"], 'noduleLayout:customGadget:addButtonLeft:visible', True ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh9"]["code"], 'noduleLayout:customGadget:addButtonRight:visible', True ) __children["Hellwig2022_JMh9"]["code"]["parameters"]["XYZ"].setInput( __children["Hellwig2022_JMh9"]["BoxIn"]["out"] ) __children["Hellwig2022_JMh9"]["code"]["parameters"]["compressMode"].setInput( __children["Hellwig2022_JMh9"]["compressMode"] ) __children["Hellwig2022_JMh9"]["code"]["parameters"]["viewingConditions"].setInput( __children["Hellwig2022_JMh9"]["viewingConditions"] ) __children["Hellwig2022_JMh9"]["code"]["parameters"]["invert"].setInput( __children["Hellwig2022_JMh9"]["invert"] ) __children["Hellwig2022_JMh9"]["code"]["parameters"]["whitepoint"].setInput( __children["Hellwig2022_JMh9"]["whitepoint"] ) __children["Hellwig2022_JMh9"]["code"]["code"].setValue( '// Multiply 3x3 matrix m and color v\ncolor vdot(float m[], color v) {\n\treturn color(m[0]*v[0] + m[1]*v[1] + m[2]*v[2], m[3]*v[0] + m[4]*v[1] + m[5]*v[2], m[6]*v[0] + m[7]*v[1] + m[8]*v[2]);\n}\n\n\ncolor compress_bjorn (color xyz) {\n float x = xyz.r;\n float y = xyz.g;\n float z = xyz.b;\n\n float C = (x+y+z)/3;\n if (C == 0.0) return xyz;\n\n float R = sqrt(pow((x-C),2) + pow((y-C),2) + pow((z-C),2));\n R = R * 0.816496580927726;\n\n if (R != 0.0) {\n x = (x-C)/R;\n y = (y-C)/R;\n z = (z-C)/R;\n }\n\n float r = R/C;\n float s = -min(x, min(y, z));\n\n float t = 0.0;\n if (r > 0.000001) {\n t = (0.5+pow((pow((s-0.5),2) + pow((sqrt(4/pow(r,2)+1)-1),2)/4),0.5));\n if (t < 0.000001) return xyz;\n t = 1/t;\n }\n\n x = C*x*t + C;\n y = C*y*t + C;\n z = C*z*t + C;\n\n return color(x,y,z);\n}\n\n\ncolor uncompress_bjorn (color xyz) {\n float x = xyz.r;\n float y = xyz.g;\n float z = xyz.b;\n\n float C = (x+y+z)*(1.0/3.0);\n if (C == 0.0) return xyz;\n\n float R = sqrt(pow((x-C),2) + pow((y-C),2) + pow((z-C),2));\n R = R * 0.816496580927726;\n\n if (R != 0.0) {\n x = (x-C)/R;\n y = (y-C)/R;\n z = (z-C)/R;\n }\n\n float t = R/C;\n float s = -min(x, min(y, z));\n\n float r = 0.0;\n if (t > 0.000001) {\n r = sqrt(pow((2*sqrt(pow((1/t-0.5),2)-pow((s-0.5),2))+1),2)-1);\n if (r < 0.000001)\n return xyz;\n r = 2/r;\n }\n\n x = C*x*r + C;\n y = C*y*r + C;\n z = C*z*r + C;\n\n return color(x,y,z);\n}\n\n\n\n\n\n\ncolor surround;\nif (viewingConditions == 0) // "Dark": InductionFactors_CIECAM02(0.8, 0.525, 0.8),\n\tsurround = color(0.8, 0.525, 0.8);\nelse if (viewingConditions == 1) // "Dim": InductionFactors_CIECAM02(0.9, 0.59, 0.9),\n\tsurround = color(0.9, 0.59, 0.9);\nelse if (viewingConditions == 2) // "Average": InductionFactors_CIECAM02(1, 0.69, 1),\n\tsurround = color(1.0, 0.69, 1.0);\n\n\nfloat referenceLuminance = 100.0;\n\n\n// Matrix converts from the custom CAMDRT v42-pex chromaticity coordinates: \n// 0.82 0.175 -1.3 1.8 0.13 -0.1 0.333 0.333 to XYZ\nfloat MATRIX_16[9] = { 0.595158, 0.439409, -0.0344635, -0.233358, 1.08935, 0.143579, 0.0572735, -0.303878, 1.24287 };\n\ncolor XYZ_w;\nif (whitepoint == 0) XYZ_w = color(1,1,1); // referenceWhite\nelse if (whitepoint == 1) XYZ_w = color(0.950455927052, 1.0, 1.08905775076); // D65\nelse if (whitepoint == 2) XYZ_w = color(0.95264607457, 1.0, 1.00882518435); // ACES white (~D60)\n\n\nfloat XYZ_w_scaler = 100.0;\nXYZ_w = XYZ_w * XYZ_w_scaler;\nfloat Y_w = XYZ_w.g;\n\nfloat L_A = 100.0; // input adapting field\nfloat Y_b = 20.0; // input background luminance\n\ncolor RGB_w = vdot(MATRIX_16, XYZ_w);\nfloat D = 1.0; // discountIlluminant disabled\n\n// # Viewing conditions dependent parameters\nfloat k = 1 / (5 * L_A + 1);\nfloat k4 = pow(k,4);\nfloat F_L = 0.2 * k4 * (5.0 * L_A) + 0.1 * pow((1.0 - k4), 2.0) * pow(5.0 * L_A, 1.0 / 3.0);\nfloat n = Y_b / Y_w;\nfloat z = 1.48 + sqrt(n);\n\ncolor D_RGB = D * Y_w / RGB_w + 1 - D;\ncolor RGB_wc = D_RGB * RGB_w;\n\n// # Applying forward post-adaptation non-linear response compression.\ncolor F_L_RGB = pow(F_L * abs(RGB_wc) / 100.0, 0.42);\ncolor RGB_aw = (400.0 * sign(RGB_wc) * F_L_RGB) / (27.13 + F_L_RGB);\n\nfloat R_aw = RGB_aw.r;\nfloat G_aw = RGB_aw.g;\nfloat B_aw = RGB_aw.b;\nfloat ra = 2.0;\nfloat ba = 0.05;\nfloat A_w = ra * R_aw + G_aw + ba * B_aw;\n\n\n\n\n\nif (invert == 0) {\n// # Step 1\n// # Converting *CIE XYZ* tristimulus values to sharpened *RGB* values.\ncolor RGB = vdot(MATRIX_16, XYZ*referenceLuminance);\n\n// # Step 2\ncolor RGB_c = D_RGB * RGB;\n\n// # Step 3\n// # Applying forward post-adaptation non-linear response compression.\n\nif (compressMode) \tRGB_c = compress_bjorn(RGB_c);\n\n// post_adaptation_non_linear_response_compression_forward\ncolor F_L_RGB2 = pow(F_L * abs(RGB_c) / 100.0, 0.42);\ncolor RGB_a = (400.0 * sign(RGB_c) * F_L_RGB2) / (27.13 + F_L_RGB2);\n\nif (compressMode) \tRGB_a = uncompress_bjorn(RGB_a);\n\n// # Step 4\n// # Converting to preliminary cartesian coordinates.\nfloat R_a = RGB_a.r;\nfloat G_a = RGB_a.g;\nfloat B_a = RGB_a.b;\nfloat a = R_a - 12.0 * G_a / 11.0 + B_a / 11.0;\nfloat b = (R_a + G_a - 2.0 * B_a) / 9.0;\n\nfloat h = mod(degrees(atan2(b, a)), 360.0);\n\nfloat R_a2 = RGB_a.r;\nfloat G_a2 = RGB_a.g;\nfloat B_a2 = RGB_a.b;\nfloat A = ra * R_a2 + G_a2 + ba * B_a2;\n\n// # Step 7\n// # Computing the correlate of *Lightness* :math:`J`.\nfloat J = 100.0 * pow(A / A_w, surround.g * z);\n\n// # Step 8\n// # Computing the correlate of *brightness* :math:`Q`.\n// float Q = (2.0 / float(surround.g)) * (J / 100.0) * A_w;\n\n// # Step 9\n// # Computing the correlate of *colourfulness* :math:`M`.\nfloat M = J == 0.0 ? 0.0 : 43.0 * surround.b * sqrt(a * a + b * b);\n\n// # Computing the correlate of *chroma* :math:`C`.\n// float C = 35.0 * M / A_w;\n\n// # Computing the correlate of *saturation* :math:`s`.\n// float s = 100.0 * M / Q;\n \nout = color(J,M,h);\n\n\n} else {\n// In inverse mode, input XYZ will be JMh\nfloat J = XYZ.r;\nfloat M = XYZ.g;\nfloat h = XYZ.b;\n\nfloat hr = radians(h);\n\n// # Computing achromatic response :math:`A` for the stimulus.\nfloat A = A_w * pow(J / 100.0, 1.0 / (float(surround.g) * z));\n\n// # Computing *P_p_1* to *P_p_2*.\nfloat P_p_1 = 43.0 * surround.b;\nfloat P_p_2 = A;\n\n// # Step 3\n// # Computing opponent colour dimensions :math:`a` and :math:`b`.\nfloat gamma = M / P_p_1;\nfloat a = gamma * cos(hr);\nfloat b = gamma * sin(hr);\n\n// # Step 4\n// # Applying post-adaptation non-linear response compression matrix.\n\nfloat panlrcm[9] = {460.0, 451.0, 288.0, 460.0, -891.0, -261.0, 460.0, -220.0, -6300.0};\ncolor RGB_a = vdot(panlrcm, color(P_p_2, a, b)) / 1403.0;\n\n// # Step 5\n// # Applying inverse post-adaptation non-linear response compression.\nif (compressMode) \tRGB_a = compress_bjorn(RGB_a);\n\n// post_adaptation_non_linear_response_compression_inverse\ncolor RGB_c = (sign(RGB_a) * 100.0 / F_L * pow((27.13 * abs(RGB_a)) / (400.0 - abs(RGB_a)), 1.0 / 0.42));\n\nif (compressMode) \tRGB_c = uncompress_bjorn(RGB_c);\n\n// # Step 6\ncolor RGB = RGB_c / D_RGB;\n\n// # Step 7\n// float MATRIX_INVERSE_16[9] = {1.86207, -1.01125, 0.149187, 0.387527, 0.621447, -0.00897398, -0.0158415, -0.0341229, 1.04996};\nfloat MATRIX_INVERSE_16[9] = {1.45196, -0.556511, 0.10455, 0.30987, 0.770554, -0.0804234, 0.00885342, 0.214043, 0.780107};\ncolor XYZ = vdot(MATRIX_INVERSE_16, RGB);\n\nout = XYZ/100.0;\n\n}' ) __children["Hellwig2022_JMh9"]["code"]["__uiPosition"].setValue( imath.V2f( -3.68817878, -4.99635363 ) ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh9"]["compressMode"], 'nodule:type', '' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh9"]["compressMode"], 'layout:section', 'Settings' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh9"]["compressMode"], 'layout:index', 2 ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh9"]["viewingConditions"], 'nodule:type', '' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh9"]["viewingConditions"], 'plugValueWidget:type', 'GafferUI.PresetsPlugValueWidget' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh9"]["viewingConditions"], 'preset:Dark', 0 ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh9"]["viewingConditions"], 'preset:Dim', 1 ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh9"]["viewingConditions"], 'preset:Average', 2 ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh9"]["viewingConditions"], 'layout:section', 'Settings' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh9"]["viewingConditions"], 'layout:index', 3 ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh9"]["invert"], 'nodule:type', '' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh9"]["invert"], 'layout:section', 'Settings' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh9"]["invert"], 'layout:index', 5 ) __children["Hellwig2022_JMh9"]["whitepoint"].setValue( 1 ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh9"]["whitepoint"], 'nodule:type', '' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh9"]["whitepoint"], 'layout:section', 'Settings' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh9"]["whitepoint"], 'layout:index', 4 ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh9"]["whitepoint"], 'plugValueWidget:type', 'GafferUI.PresetsPlugValueWidget' ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh9"]["whitepoint"], 'preset:referenceWhite', 0 ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh9"]["whitepoint"], 'preset:D65', 1 ) Gaffer.Metadata.registerValue( __children["Hellwig2022_JMh9"]["whitepoint"], 'preset:ACES White ~D60', 2 ) Gaffer.Metadata.registerValue( __children["oslGamutConvert4"], 'noduleLayout:customGadget:addButtonTop:visible', False ) Gaffer.Metadata.registerValue( __children["oslGamutConvert4"], 'noduleLayout:customGadget:addButtonBottom:visible', False ) Gaffer.Metadata.registerValue( __children["oslGamutConvert4"], 'noduleLayout:customGadget:addButtonLeft:visible', False ) Gaffer.Metadata.registerValue( __children["oslGamutConvert4"], 'noduleLayout:customGadget:addButtonRight:visible', False ) Gaffer.Metadata.registerValue( __children["oslGamutConvert4"], 'description', '' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert4"], 'uiEditor:emptySections', IECore.StringVectorData( [ ] ) ) Gaffer.Metadata.registerValue( __children["oslGamutConvert4"], 'uiEditor:emptySectionIndices', IECore.IntVectorData( [ ] ) ) __children["oslGamutConvert4"]["__uiPosition"].setValue( imath.V2f( -254.302567, 17.2433624 ) ) Gaffer.Metadata.registerValue( __children["oslGamutConvert4"]["ColorMatrix"], 'noduleLayout:customGadget:addButtonTop:visible', True ) Gaffer.Metadata.registerValue( __children["oslGamutConvert4"]["ColorMatrix"], 'noduleLayout:customGadget:addButtonBottom:visible', True ) Gaffer.Metadata.registerValue( __children["oslGamutConvert4"]["ColorMatrix"], 'noduleLayout:customGadget:addButtonLeft:visible', True ) Gaffer.Metadata.registerValue( __children["oslGamutConvert4"]["ColorMatrix"], 'noduleLayout:customGadget:addButtonRight:visible', True ) __children["oslGamutConvert4"]["ColorMatrix"]["parameters"]["m0"].setInput( __children["oslGamutConvert4"]["Expression4"]["__out"]["p0"] ) __children["oslGamutConvert4"]["ColorMatrix"]["parameters"]["m1"].setInput( __children["oslGamutConvert4"]["Expression4"]["__out"]["p1"] ) __children["oslGamutConvert4"]["ColorMatrix"]["parameters"]["m2"].setInput( __children["oslGamutConvert4"]["Expression4"]["__out"]["p2"] ) __children["oslGamutConvert4"]["ColorMatrix"]["parameters"]["in"].setInput( __children["oslGamutConvert4"]["BoxIn"]["out"] ) __children["oslGamutConvert4"]["ColorMatrix"]["code"].setValue( 'out.r = dot(m0, in);\nout.g = dot(m1, in);\nout.b = dot(m2, in);' ) __children["oslGamutConvert4"]["ColorMatrix"]["__uiPosition"].setValue( imath.V2f( -593.35083, 5.33377171 ) ) __children["oslGamutConvert4"]["Expression4"]["__in"]["p0"].setInput( __children["oslGamutConvert4"]["gamutIn"] ) __children["oslGamutConvert4"]["Expression4"]["__in"]["p1"].setInput( __children["oslGamutConvert4"]["gamutOut"] ) __children["oslGamutConvert4"]["Expression4"]["__uiPosition"].setValue( imath.V2f( -600.471619, 12.8735418 ) ) __children["oslGamutConvert4"]["BoxIn"]["__in"].setInput( __children["oslGamutConvert4"]["in"] ) Gaffer.Metadata.registerValue( __children["oslGamutConvert4"]["BoxIn"]["__in"], 'nodule:color', imath.Color3f( 0.689999998, 0.537800014, 0.228300005 ) ) Gaffer.Metadata.registerValue( __children["oslGamutConvert4"]["BoxIn"]["__in"], 'noduleLayout:section', 'left' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert4"]["BoxIn"]["__in"], 'userDefault', None ) Gaffer.Metadata.registerValue( __children["oslGamutConvert4"]["BoxIn"]["__in"], 'description', '' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert4"]["BoxIn"]["__in"], 'label', 'c' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert4"]["BoxIn"]["__in"], 'presetNames', None ) Gaffer.Metadata.registerValue( __children["oslGamutConvert4"]["BoxIn"]["__in"], 'presetValues', None ) Gaffer.Metadata.registerValue( __children["oslGamutConvert4"]["BoxIn"]["__in"], 'plugValueWidget:type', None ) Gaffer.Metadata.registerValue( __children["oslGamutConvert4"]["BoxIn"]["__in"], 'nodule:type', None ) Gaffer.Metadata.registerValue( __children["oslGamutConvert4"]["BoxIn"]["__in"], 'noduleLayout:visible', True ) Gaffer.Metadata.registerValue( __children["oslGamutConvert4"]["BoxIn"]["__in"], 'noduleLayout:label', None ) Gaffer.Metadata.registerValue( __children["oslGamutConvert4"]["BoxIn"]["__in"], 'renameable', True ) Gaffer.Metadata.registerValue( __children["oslGamutConvert4"]["BoxIn"]["__in"], 'deletable', True ) Gaffer.Metadata.registerValue( __children["oslGamutConvert4"]["BoxIn"]["__in"]["r"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) Gaffer.Metadata.registerValue( __children["oslGamutConvert4"]["BoxIn"]["__in"]["r"], 'noduleLayout:section', 'left' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert4"]["BoxIn"]["__in"]["r"], 'userDefault', None ) Gaffer.Metadata.registerValue( __children["oslGamutConvert4"]["BoxIn"]["__in"]["r"], 'noduleLayout:label', 'c.r' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert4"]["BoxIn"]["__in"]["g"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) Gaffer.Metadata.registerValue( __children["oslGamutConvert4"]["BoxIn"]["__in"]["g"], 'noduleLayout:section', 'left' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert4"]["BoxIn"]["__in"]["g"], 'userDefault', None ) Gaffer.Metadata.registerValue( __children["oslGamutConvert4"]["BoxIn"]["__in"]["g"], 'noduleLayout:label', 'c.g' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert4"]["BoxIn"]["__in"]["b"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) Gaffer.Metadata.registerValue( __children["oslGamutConvert4"]["BoxIn"]["__in"]["b"], 'noduleLayout:section', 'left' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert4"]["BoxIn"]["__in"]["b"], 'userDefault', None ) Gaffer.Metadata.registerValue( __children["oslGamutConvert4"]["BoxIn"]["__in"]["b"], 'noduleLayout:label', 'c.b' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert4"]["BoxIn"]["out"], 'noduleLayout:section', 'right' ) __children["oslGamutConvert4"]["BoxIn"]["__uiPosition"].setValue( imath.V2f( -608.49762, 9.83449078 ) ) __children["oslGamutConvert4"]["in"].setInput( __children["tonescale_daniele_evo"]["f"] ) Gaffer.Metadata.registerValue( __children["oslGamutConvert4"]["in"], 'nodule:color', imath.Color3f( 0.689999998, 0.537800014, 0.228300005 ) ) Gaffer.Metadata.registerValue( __children["oslGamutConvert4"]["in"], 'noduleLayout:section', 'top' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert4"]["in"], 'userDefault', None ) Gaffer.Metadata.registerValue( __children["oslGamutConvert4"]["in"], 'description', '' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert4"]["in"], 'presetNames', None ) Gaffer.Metadata.registerValue( __children["oslGamutConvert4"]["in"], 'presetValues', None ) Gaffer.Metadata.registerValue( __children["oslGamutConvert4"]["in"], 'plugValueWidget:type', '' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert4"]["in"], 'nodule:type', None ) Gaffer.Metadata.registerValue( __children["oslGamutConvert4"]["in"], 'noduleLayout:visible', True ) Gaffer.Metadata.registerValue( __children["oslGamutConvert4"]["in"], 'noduleLayout:label', None ) Gaffer.Metadata.registerValue( __children["oslGamutConvert4"]["in"], 'renameable', True ) Gaffer.Metadata.registerValue( __children["oslGamutConvert4"]["in"], 'deletable', True ) Gaffer.Metadata.registerValue( __children["oslGamutConvert4"]["in"], 'layout:section', 'Settings' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert4"]["in"], 'layout:index', 0 ) Gaffer.Metadata.registerValue( __children["oslGamutConvert4"]["in"]["r"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) Gaffer.Metadata.registerValue( __children["oslGamutConvert4"]["in"]["r"], 'noduleLayout:section', 'left' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert4"]["in"]["r"], 'userDefault', None ) Gaffer.Metadata.registerValue( __children["oslGamutConvert4"]["in"]["r"], 'noduleLayout:label', 'c.r' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert4"]["in"]["g"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) Gaffer.Metadata.registerValue( __children["oslGamutConvert4"]["in"]["g"], 'noduleLayout:section', 'left' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert4"]["in"]["g"], 'userDefault', None ) Gaffer.Metadata.registerValue( __children["oslGamutConvert4"]["in"]["g"], 'noduleLayout:label', 'c.g' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert4"]["in"]["b"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) Gaffer.Metadata.registerValue( __children["oslGamutConvert4"]["in"]["b"], 'noduleLayout:section', 'left' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert4"]["in"]["b"], 'userDefault', None ) Gaffer.Metadata.registerValue( __children["oslGamutConvert4"]["in"]["b"], 'noduleLayout:label', 'c.b' ) __children["oslGamutConvert4"]["BoxOut"]["in"].setInput( __children["oslGamutConvert4"]["ColorMatrix"]["out"]["out"] ) Gaffer.Metadata.registerValue( __children["oslGamutConvert4"]["BoxOut"]["in"], 'noduleLayout:section', 'left' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert4"]["BoxOut"]["__out"], 'nodule:color', imath.Color3f( 0.689999998, 0.537800014, 0.228300005 ) ) Gaffer.Metadata.registerValue( __children["oslGamutConvert4"]["BoxOut"]["__out"], 'noduleLayout:section', 'right' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert4"]["BoxOut"]["__out"], 'noduleLayout:visible', True ) Gaffer.Metadata.registerValue( __children["oslGamutConvert4"]["BoxOut"]["__out"], 'noduleLayout:label', None ) Gaffer.Metadata.registerValue( __children["oslGamutConvert4"]["BoxOut"]["__out"], 'renameable', True ) Gaffer.Metadata.registerValue( __children["oslGamutConvert4"]["BoxOut"]["__out"], 'deletable', True ) Gaffer.Metadata.registerValue( __children["oslGamutConvert4"]["BoxOut"]["__out"], 'label', 'out' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert4"]["BoxOut"]["__out"]["r"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) Gaffer.Metadata.registerValue( __children["oslGamutConvert4"]["BoxOut"]["__out"]["g"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) Gaffer.Metadata.registerValue( __children["oslGamutConvert4"]["BoxOut"]["__out"]["b"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) __children["oslGamutConvert4"]["BoxOut"]["passThrough"].setInput( __children["oslGamutConvert4"]["BoxIn"]["out"] ) __children["oslGamutConvert4"]["BoxOut"]["enabled"].setInput( __children["oslGamutConvert4"]["enabled"] ) __children["oslGamutConvert4"]["BoxOut"]["__uiPosition"].setValue( imath.V2f( -581.270325, 5.33377171 ) ) __children["oslGamutConvert4"]["out"].setInput( __children["oslGamutConvert4"]["BoxOut"]["__out"] ) Gaffer.Metadata.registerValue( __children["oslGamutConvert4"]["out"], 'nodule:color', imath.Color3f( 0.689999998, 0.537800014, 0.228300005 ) ) Gaffer.Metadata.registerValue( __children["oslGamutConvert4"]["out"], 'noduleLayout:section', 'bottom' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert4"]["out"], 'noduleLayout:visible', True ) Gaffer.Metadata.registerValue( __children["oslGamutConvert4"]["out"], 'noduleLayout:label', None ) Gaffer.Metadata.registerValue( __children["oslGamutConvert4"]["out"], 'renameable', True ) Gaffer.Metadata.registerValue( __children["oslGamutConvert4"]["out"], 'deletable', True ) Gaffer.Metadata.registerValue( __children["oslGamutConvert4"]["out"], 'label', 'out' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert4"]["out"], 'layout:section', 'Settings' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert4"]["out"], 'layout:index', 1 ) Gaffer.Metadata.registerValue( __children["oslGamutConvert4"]["out"], 'plugValueWidget:type', '' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert4"]["out"]["r"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) Gaffer.Metadata.registerValue( __children["oslGamutConvert4"]["out"]["g"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) Gaffer.Metadata.registerValue( __children["oslGamutConvert4"]["out"]["b"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) __children["oslGamutConvert4"]["gamutIn"].setValue( 'Rec709' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert4"]["gamutIn"], 'nodule:type', '' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert4"]["gamutIn"], 'layout:section', 'Settings' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert4"]["gamutIn"], 'plugValueWidget:type', 'GafferUI.PresetsPlugValueWidget' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert4"]["gamutIn"], 'description', '' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert4"]["gamutIn"], 'layout:index', 2 ) Gaffer.Metadata.registerValue( __children["oslGamutConvert4"]["gamutIn"], 'preset:XYZ', 'XYZ' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert4"]["gamutIn"], 'preset:ACES', 'ACES' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert4"]["gamutIn"], 'preset:ACEScg', 'ACEScg' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert4"]["gamutIn"], 'preset:FilmlightEGamut', 'FilmlightEGamut' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert4"]["gamutIn"], 'preset:DavinciWideGamut', 'DavinciWideGamut' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert4"]["gamutIn"], 'preset:Rec709', 'Rec709' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert4"]["gamutIn"], 'preset:Rec2020', 'Rec2020' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert4"]["gamutIn"], 'preset:P3D65', 'P3D65' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert4"]["gamutIn"], 'preset:ArriWideGamut3', 'ArriWideGamut3' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert4"]["gamutIn"], 'preset:ArriWideGamut4', 'ArriWideGamut4' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert4"]["gamutIn"], 'preset:RedWideGamutRGB', 'ArriWideGamut4' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert4"]["gamutIn"], 'preset:SonySGamut3', 'SonySGamut3' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert4"]["gamutIn"], 'preset:SonySGamut3.Cine', 'SonySGamut3.Cine' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert4"]["gamutIn"], 'preset:PanasonicVGamut', 'PanasonicVGamut' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert4"]["gamutIn"], 'preset:DJIDGamut', 'DJIDGamut' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert4"]["gamutIn"], 'preset:BlackmagicWideGamut', 'BlackmagicWideGamut' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert4"]["gamutOut"], 'nodule:type', '' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert4"]["gamutOut"], 'layout:section', 'Settings' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert4"]["gamutOut"], 'plugValueWidget:type', 'GafferUI.PresetsPlugValueWidget' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert4"]["gamutOut"], 'preset:XYZ', 'XYZ' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert4"]["gamutOut"], 'preset:ACES', 'ACES' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert4"]["gamutOut"], 'preset:ACEScg', 'ACEScg' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert4"]["gamutOut"], 'preset:FilmlightEGamut', 'FilmlightEGamut' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert4"]["gamutOut"], 'preset:DavinciWideGamut', 'DavinciWideGamut' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert4"]["gamutOut"], 'preset:Rec709', 'Rec709' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert4"]["gamutOut"], 'preset:Rec2020', 'Rec2020' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert4"]["gamutOut"], 'preset:P3D65', 'P3D65' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert4"]["gamutOut"], 'preset:ArriWideGamut3', 'ArriWideGamut3' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert4"]["gamutOut"], 'preset:ArriWideGamut4', 'ArriWideGamut4' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert4"]["gamutOut"], 'preset:RedWideGamutRGB', 'ArriWideGamut4' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert4"]["gamutOut"], 'preset:SonySGamut3', 'SonySGamut3' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert4"]["gamutOut"], 'preset:SonySGamut3.Cine', 'SonySGamut3.Cine' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert4"]["gamutOut"], 'preset:PanasonicVGamut', 'PanasonicVGamut' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert4"]["gamutOut"], 'preset:DJIDGamut', 'DJIDGamut' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert4"]["gamutOut"], 'preset:BlackmagicWideGamut', 'BlackmagicWideGamut' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert4"]["gamutOut"], 'layout:index', 3 ) Gaffer.Metadata.registerValue( __children["oslGamutConvert4"]["enabled"], 'layout:section', 'Node' ) Gaffer.Metadata.registerValue( __children["oslGamutConvert4"]["enabled"], 'layout:index', 4 ) Gaffer.Metadata.registerValue( __children["chromaCompression"], 'noduleLayout:customGadget:addButtonTop:visible', False ) Gaffer.Metadata.registerValue( __children["chromaCompression"], 'noduleLayout:customGadget:addButtonBottom:visible', False ) Gaffer.Metadata.registerValue( __children["chromaCompression"], 'noduleLayout:customGadget:addButtonLeft:visible', False ) Gaffer.Metadata.registerValue( __children["chromaCompression"], 'noduleLayout:customGadget:addButtonRight:visible', False ) Gaffer.Metadata.registerValue( __children["chromaCompression"], 'description', '' ) Gaffer.Metadata.registerValue( __children["chromaCompression"], 'uiEditor:emptySections', IECore.StringVectorData( [ ] ) ) Gaffer.Metadata.registerValue( __children["chromaCompression"], 'uiEditor:emptySectionIndices', IECore.IntVectorData( [ ] ) ) Gaffer.Metadata.registerValue( __children["chromaCompression"], 'annotation:user:text', 'donkey wip' ) Gaffer.Metadata.registerValue( __children["chromaCompression"], 'annotation:user:color', imath.Color3f( 0, 0, 0 ) ) __children["chromaCompression"]["__uiPosition"].setValue( imath.V2f( -236.016678, -8.08485889 ) ) Gaffer.Metadata.registerValue( __children["chromaCompression"]["BoxIn"], 'noduleLayout:customGadget:addButtonTop:visible', True ) Gaffer.Metadata.registerValue( __children["chromaCompression"]["BoxIn"], 'noduleLayout:customGadget:addButtonBottom:visible', True ) Gaffer.Metadata.registerValue( __children["chromaCompression"]["BoxIn"], 'noduleLayout:customGadget:addButtonLeft:visible', True ) Gaffer.Metadata.registerValue( __children["chromaCompression"]["BoxIn"], 'noduleLayout:customGadget:addButtonRight:visible', True ) __children["chromaCompression"]["BoxIn"]["__in"].setInput( __children["chromaCompression"]["in"] ) Gaffer.Metadata.registerValue( __children["chromaCompression"]["BoxIn"]["__in"], 'nodule:color', imath.Color3f( 0.689999998, 0.537800014, 0.228300005 ) ) Gaffer.Metadata.registerValue( __children["chromaCompression"]["BoxIn"]["__in"], 'deletable', True ) Gaffer.Metadata.registerValue( __children["chromaCompression"]["BoxIn"]["__in"], 'renameable', True ) Gaffer.Metadata.registerValue( __children["chromaCompression"]["BoxIn"]["__in"], 'noduleLayout:section', 'bottom' ) Gaffer.Metadata.registerValue( __children["chromaCompression"]["BoxIn"]["__in"], 'userDefault', None ) Gaffer.Metadata.registerValue( __children["chromaCompression"]["BoxIn"]["__in"], 'description', '' ) Gaffer.Metadata.registerValue( __children["chromaCompression"]["BoxIn"]["__in"], 'label', 'in' ) Gaffer.Metadata.registerValue( __children["chromaCompression"]["BoxIn"]["__in"], 'presetNames', None ) Gaffer.Metadata.registerValue( __children["chromaCompression"]["BoxIn"]["__in"], 'presetValues', None ) Gaffer.Metadata.registerValue( __children["chromaCompression"]["BoxIn"]["__in"], 'noduleLayout:visible', True ) Gaffer.Metadata.registerValue( __children["chromaCompression"]["BoxIn"]["__in"], 'noduleLayout:label', None ) Gaffer.Metadata.registerValue( __children["chromaCompression"]["BoxIn"]["__in"], 'plugValueWidget:type', '' ) Gaffer.Metadata.registerValue( __children["chromaCompression"]["BoxIn"]["__in"]["r"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) Gaffer.Metadata.registerValue( __children["chromaCompression"]["BoxIn"]["__in"]["r"], 'noduleLayout:section', 'left' ) Gaffer.Metadata.registerValue( __children["chromaCompression"]["BoxIn"]["__in"]["r"], 'userDefault', None ) Gaffer.Metadata.registerValue( __children["chromaCompression"]["BoxIn"]["__in"]["r"], 'noduleLayout:label', 'in.r' ) Gaffer.Metadata.registerValue( __children["chromaCompression"]["BoxIn"]["__in"]["g"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) Gaffer.Metadata.registerValue( __children["chromaCompression"]["BoxIn"]["__in"]["g"], 'noduleLayout:section', 'left' ) Gaffer.Metadata.registerValue( __children["chromaCompression"]["BoxIn"]["__in"]["g"], 'userDefault', None ) Gaffer.Metadata.registerValue( __children["chromaCompression"]["BoxIn"]["__in"]["g"], 'noduleLayout:label', 'in.g' ) Gaffer.Metadata.registerValue( __children["chromaCompression"]["BoxIn"]["__in"]["b"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) Gaffer.Metadata.registerValue( __children["chromaCompression"]["BoxIn"]["__in"]["b"], 'noduleLayout:section', 'left' ) Gaffer.Metadata.registerValue( __children["chromaCompression"]["BoxIn"]["__in"]["b"], 'userDefault', None ) Gaffer.Metadata.registerValue( __children["chromaCompression"]["BoxIn"]["__in"]["b"], 'noduleLayout:label', 'in.b' ) Gaffer.Metadata.registerValue( __children["chromaCompression"]["BoxIn"]["out"], 'noduleLayout:section', 'bottom' ) Gaffer.Metadata.registerValue( __children["chromaCompression"]["BoxIn"]["out"], 'compoundNumericNodule:childrenVisible', True ) __children["chromaCompression"]["BoxIn"]["__uiPosition"].setValue( imath.V2f( -13.3927402, 26.9999943 ) ) __children["chromaCompression"]["in"].setInput( __children["FloatToColor"]["out"]["c"] ) Gaffer.Metadata.registerValue( __children["chromaCompression"]["in"], 'nodule:color', imath.Color3f( 0.689999998, 0.537800014, 0.228300005 ) ) Gaffer.Metadata.registerValue( __children["chromaCompression"]["in"], 'deletable', True ) Gaffer.Metadata.registerValue( __children["chromaCompression"]["in"], 'renameable', True ) Gaffer.Metadata.registerValue( __children["chromaCompression"]["in"], 'noduleLayout:section', 'top' ) Gaffer.Metadata.registerValue( __children["chromaCompression"]["in"], 'userDefault', None ) Gaffer.Metadata.registerValue( __children["chromaCompression"]["in"], 'description', '' ) Gaffer.Metadata.registerValue( __children["chromaCompression"]["in"], 'label', 'in' ) Gaffer.Metadata.registerValue( __children["chromaCompression"]["in"], 'presetNames', None ) Gaffer.Metadata.registerValue( __children["chromaCompression"]["in"], 'presetValues', None ) Gaffer.Metadata.registerValue( __children["chromaCompression"]["in"], 'noduleLayout:visible', True ) Gaffer.Metadata.registerValue( __children["chromaCompression"]["in"], 'noduleLayout:label', None ) Gaffer.Metadata.registerValue( __children["chromaCompression"]["in"], 'plugValueWidget:type', '' ) Gaffer.Metadata.registerValue( __children["chromaCompression"]["in"], 'layout:section', 'Settings' ) Gaffer.Metadata.registerValue( __children["chromaCompression"]["in"], 'layout:index', 0 ) Gaffer.Metadata.registerValue( __children["chromaCompression"]["in"], 'noduleLayout:index', 1 ) Gaffer.Metadata.registerValue( __children["chromaCompression"]["in"]["r"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) Gaffer.Metadata.registerValue( __children["chromaCompression"]["in"]["r"], 'noduleLayout:section', 'left' ) Gaffer.Metadata.registerValue( __children["chromaCompression"]["in"]["r"], 'userDefault', None ) Gaffer.Metadata.registerValue( __children["chromaCompression"]["in"]["r"], 'noduleLayout:label', 'in.r' ) Gaffer.Metadata.registerValue( __children["chromaCompression"]["in"]["g"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) Gaffer.Metadata.registerValue( __children["chromaCompression"]["in"]["g"], 'noduleLayout:section', 'left' ) Gaffer.Metadata.registerValue( __children["chromaCompression"]["in"]["g"], 'userDefault', None ) Gaffer.Metadata.registerValue( __children["chromaCompression"]["in"]["g"], 'noduleLayout:label', 'in.g' ) Gaffer.Metadata.registerValue( __children["chromaCompression"]["in"]["b"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) Gaffer.Metadata.registerValue( __children["chromaCompression"]["in"]["b"], 'noduleLayout:section', 'left' ) Gaffer.Metadata.registerValue( __children["chromaCompression"]["in"]["b"], 'userDefault', None ) Gaffer.Metadata.registerValue( __children["chromaCompression"]["in"]["b"], 'noduleLayout:label', 'in.b' ) __children["chromaCompression"]["BoxOut"]["in"].setInput( __children["chromaCompression"]["cusp_with_eccentricity_factor"]["out"]["test"] ) Gaffer.Metadata.registerValue( __children["chromaCompression"]["BoxOut"]["in"], 'noduleLayout:section', 'top' ) Gaffer.Metadata.registerValue( __children["chromaCompression"]["BoxOut"]["__out"], 'nodule:color', imath.Color3f( 0.689999998, 0.537800014, 0.228300005 ) ) Gaffer.Metadata.registerValue( __children["chromaCompression"]["BoxOut"]["__out"], 'deletable', True ) Gaffer.Metadata.registerValue( __children["chromaCompression"]["BoxOut"]["__out"], 'renameable', True ) Gaffer.Metadata.registerValue( __children["chromaCompression"]["BoxOut"]["__out"], 'noduleLayout:section', 'top' ) Gaffer.Metadata.registerValue( __children["chromaCompression"]["BoxOut"]["__out"], 'userDefault', None ) Gaffer.Metadata.registerValue( __children["chromaCompression"]["BoxOut"]["__out"], 'description', '' ) Gaffer.Metadata.registerValue( __children["chromaCompression"]["BoxOut"]["__out"], 'label', 'in' ) Gaffer.Metadata.registerValue( __children["chromaCompression"]["BoxOut"]["__out"], 'presetNames', None ) Gaffer.Metadata.registerValue( __children["chromaCompression"]["BoxOut"]["__out"], 'presetValues', None ) Gaffer.Metadata.registerValue( __children["chromaCompression"]["BoxOut"]["__out"], 'noduleLayout:visible', True ) Gaffer.Metadata.registerValue( __children["chromaCompression"]["BoxOut"]["__out"], 'noduleLayout:label', None ) Gaffer.Metadata.registerValue( __children["chromaCompression"]["BoxOut"]["__out"], 'plugValueWidget:type', '' ) Gaffer.Metadata.registerValue( __children["chromaCompression"]["BoxOut"]["__out"]["r"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) Gaffer.Metadata.registerValue( __children["chromaCompression"]["BoxOut"]["__out"]["r"], 'noduleLayout:section', 'left' ) Gaffer.Metadata.registerValue( __children["chromaCompression"]["BoxOut"]["__out"]["r"], 'userDefault', None ) Gaffer.Metadata.registerValue( __children["chromaCompression"]["BoxOut"]["__out"]["r"], 'noduleLayout:label', 'in.r' ) Gaffer.Metadata.registerValue( __children["chromaCompression"]["BoxOut"]["__out"]["g"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) Gaffer.Metadata.registerValue( __children["chromaCompression"]["BoxOut"]["__out"]["g"], 'noduleLayout:section', 'left' ) Gaffer.Metadata.registerValue( __children["chromaCompression"]["BoxOut"]["__out"]["g"], 'userDefault', None ) Gaffer.Metadata.registerValue( __children["chromaCompression"]["BoxOut"]["__out"]["g"], 'noduleLayout:label', 'in.g' ) Gaffer.Metadata.registerValue( __children["chromaCompression"]["BoxOut"]["__out"]["b"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) Gaffer.Metadata.registerValue( __children["chromaCompression"]["BoxOut"]["__out"]["b"], 'noduleLayout:section', 'left' ) Gaffer.Metadata.registerValue( __children["chromaCompression"]["BoxOut"]["__out"]["b"], 'userDefault', None ) Gaffer.Metadata.registerValue( __children["chromaCompression"]["BoxOut"]["__out"]["b"], 'noduleLayout:label', 'in.b' ) __children["chromaCompression"]["BoxOut"]["passThrough"].setInput( __children["chromaCompression"]["BoxIn"]["out"] ) __children["chromaCompression"]["BoxOut"]["enabled"].setInput( __children["chromaCompression"]["enabled"] ) __children["chromaCompression"]["BoxOut"]["__uiPosition"].setValue( imath.V2f( 23.4072514, -4.30000114 ) ) __children["chromaCompression"]["out"].setInput( __children["chromaCompression"]["BoxOut"]["__out"] ) Gaffer.Metadata.registerValue( __children["chromaCompression"]["out"], 'nodule:color', imath.Color3f( 0.689999998, 0.537800014, 0.228300005 ) ) Gaffer.Metadata.registerValue( __children["chromaCompression"]["out"], 'deletable', True ) Gaffer.Metadata.registerValue( __children["chromaCompression"]["out"], 'renameable', True ) Gaffer.Metadata.registerValue( __children["chromaCompression"]["out"], 'noduleLayout:section', 'bottom' ) Gaffer.Metadata.registerValue( __children["chromaCompression"]["out"], 'userDefault', None ) Gaffer.Metadata.registerValue( __children["chromaCompression"]["out"], 'description', '' ) Gaffer.Metadata.registerValue( __children["chromaCompression"]["out"], 'label', 'in' ) Gaffer.Metadata.registerValue( __children["chromaCompression"]["out"], 'presetNames', None ) Gaffer.Metadata.registerValue( __children["chromaCompression"]["out"], 'presetValues', None ) Gaffer.Metadata.registerValue( __children["chromaCompression"]["out"], 'noduleLayout:visible', True ) Gaffer.Metadata.registerValue( __children["chromaCompression"]["out"], 'noduleLayout:label', None ) Gaffer.Metadata.registerValue( __children["chromaCompression"]["out"], 'plugValueWidget:type', '' ) Gaffer.Metadata.registerValue( __children["chromaCompression"]["out"], 'layout:section', 'Settings' ) Gaffer.Metadata.registerValue( __children["chromaCompression"]["out"], 'layout:index', 1 ) Gaffer.Metadata.registerValue( __children["chromaCompression"]["out"]["r"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) Gaffer.Metadata.registerValue( __children["chromaCompression"]["out"]["r"], 'noduleLayout:section', 'left' ) Gaffer.Metadata.registerValue( __children["chromaCompression"]["out"]["r"], 'userDefault', None ) Gaffer.Metadata.registerValue( __children["chromaCompression"]["out"]["r"], 'noduleLayout:label', 'in.r' ) Gaffer.Metadata.registerValue( __children["chromaCompression"]["out"]["g"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) Gaffer.Metadata.registerValue( __children["chromaCompression"]["out"]["g"], 'noduleLayout:section', 'left' ) Gaffer.Metadata.registerValue( __children["chromaCompression"]["out"]["g"], 'userDefault', None ) Gaffer.Metadata.registerValue( __children["chromaCompression"]["out"]["g"], 'noduleLayout:label', 'in.g' ) Gaffer.Metadata.registerValue( __children["chromaCompression"]["out"]["b"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) Gaffer.Metadata.registerValue( __children["chromaCompression"]["out"]["b"], 'noduleLayout:section', 'left' ) Gaffer.Metadata.registerValue( __children["chromaCompression"]["out"]["b"], 'userDefault', None ) Gaffer.Metadata.registerValue( __children["chromaCompression"]["out"]["b"], 'noduleLayout:label', 'in.b' ) __children["chromaCompression"]["enabled"].setValue( False ) Gaffer.Metadata.registerValue( __children["chromaCompression"]["enabled"], 'layout:section', 'Node' ) Gaffer.Metadata.registerValue( __children["chromaCompression"]["enabled"], 'layout:index', 5 ) Gaffer.Metadata.registerValue( __children["chromaCompression"]["OSLCode"], 'noduleLayout:customGadget:addButtonTop:visible', True ) Gaffer.Metadata.registerValue( __children["chromaCompression"]["OSLCode"], 'noduleLayout:customGadget:addButtonBottom:visible', True ) Gaffer.Metadata.registerValue( __children["chromaCompression"]["OSLCode"], 'noduleLayout:customGadget:addButtonLeft:visible', True ) Gaffer.Metadata.registerValue( __children["chromaCompression"]["OSLCode"], 'noduleLayout:customGadget:addButtonRight:visible', True ) __children["chromaCompression"]["OSLCode"]["parameters"]["JMh"].setInput( __children["chromaCompression"]["BoxIn"]["out"] ) __children["chromaCompression"]["OSLCode"]["parameters"]["origJ"].setInput( __children["chromaCompression"]["BoxIn1"]["out"] ) __children["chromaCompression"]["OSLCode"]["parameters"]["TS"].setInput( __children["chromaCompression"]["BoxIn2"]["out"] ) __children["chromaCompression"]["OSLCode"]["parameters"]["Mcusp"].setInput( __children["chromaCompression"]["cusp_with_eccentricity_factor"]["out"]["M"] ) __children["chromaCompression"]["OSLCode"]["parameters"]["applyInGamutCompression"].setValue( 1 ) __children["chromaCompression"]["OSLCode"]["parameters"]["daniele_n"].setInput( __children["tonescale_daniele_evo"]["n"] ) __children["chromaCompression"]["OSLCode"]["parameters"]["daniele_m_0"].setInput( __children["tonescale_daniele_evo"]["daniele_m_0"] ) __children["chromaCompression"]["OSLCode"]["parameters"]["daniele_c_t"].setInput( __children["tonescale_daniele_evo"]["daniele_c_t"] ) __children["chromaCompression"]["OSLCode"]["code"].setValue( "// M Max data generated via an external Nukescript at a J value of 100\nfloat LocusLimitMTable_data[360] = {244.8230133, 245.4952393, 246.4431458, 247.1381531, 247.2368927, 246.8459778, 245.7083588, 244.2591095, 242.5463409, 240.4208374, 238.0180511, 235.4039917, 233.010849, 230.4004669, 227.8723602, 225.2279968, 222.7197876, 214.8562622, 206.1778564, 198.0664215, 190.9799347, 184.005127, 177.7472992, 172.2332611, 166.6447754, 161.64534, 156.9872284, 152.6203003, 148.3236084, 144.2987976, 140.8540192, 137.4315033, 134.3281555, 131.2306366, 128.3477631, 125.8098145, 123.1305542, 120.5120163, 118.3302231, 116.127861, 114.0526428, 112.1633072, 110.2943344, 108.4250336, 106.711853, 105.188797, 103.6860809, 102.2319641, 100.8348923, 99.51873779, 98.26163483, 97.04810333, 95.90451813, 94.84623718, 93.86389923, 92.9352951, 92.03639984, 91.15013885, 90.27630615, 89.43255615, 88.63536072, 87.8986969, 87.23329163, 86.63896942, 86.09989166, 85.60071564, 85.12715912, 84.66781616, 84.21458435, 83.76491547, 83.30849457, 82.86478424, 82.46378326, 82.11483002, 81.82078552, 81.58016968, 81.37005615, 81.18525696, 81.01979065, 80.86772156, 80.72546387, 80.59381104, 80.48122406, 80.40287018, 80.33755493, 80.30010986, 80.28891754, 80.28807831, 80.33933258, 80.44513702, 80.57379913, 80.71469879, 80.86810303, 81.03874207, 81.23072052, 81.44044495, 81.6555481, 81.901474, 82.20778656, 82.67211151, 83.1408844, 83.62628174, 84.0898056, 84.53721619, 84.99518585, 85.49137878, 86.03423309, 86.58794403, 87.16802979, 87.72124481, 88.51965332, 89.35781097, 90.16739655, 90.94639587, 91.75927734, 92.65882111, 93.6033783, 94.64561462, 95.68405914, 96.84765625, 97.98625183, 99.09587097, 100.2806396, 101.5832748, 103.0694122, 104.6378632, 106.2420197, 107.8503952, 109.5214844, 111.3000031, 113.1901169, 115.1414337, 117.1432114, 119.3193054, 121.7141724, 124.2319031, 126.4584961, 128.9876556, 131.6906891, 134.7160034, 137.8343048, 140.7224121, 143.7820892, 147.23909, 150.6812439, 154.0381317, 157.1765747, 160.5133972, 164.2957306, 168.1366272, 171.8247986, 175.4206543, 179.2828827, 182.0374146, 185.0783844, 188.2106171, 190.9611206, 193.3639221, 195.5132294, 197.58255, 199.4234161, 201.3786011, 203.1474609, 205.016037, 206.6236725, 208.1813812, 209.8205719, 211.2774353, 212.8192749, 214.4571686, 215.6442261, 216.4818726, 217.1617279, 217.7372131, 218.2023926, 218.4073486, 218.4278564, 217.6643677, 216.4666748, 215.1212463, 213.8158264, 212.5012817, 210.8331757, 208.8956146, 206.9006958, 204.9239197, 203.0310059, 201.2084045, 199.3484344, 197.3464355, 195.217453, 193.0449677, 190.9578705, 188.9528656, 187.0009918, 185.0068817, 182.9402924, 180.8367767, 178.7057037, 176.5325165, 174.445282, 172.4908905, 170.5744934, 168.5490723, 166.459259, 164.4333649, 162.5092621, 160.4579468, 158.491806, 156.6880035, 155.0045624, 153.295166, 151.4545441, 149.5910492, 147.7821808, 146.4078522, 144.8022614, 143.2662506, 141.8236542, 140.5029602, 139.225174, 137.8959045, 136.4792175, 135.0780334, 133.7389374, 132.7613525, 131.6787109, 130.6356354, 129.64328, 128.7269897, 127.8450623, 126.9439697, 126.0015182, 125.0760727, 124.1718826, 123.4704056, 122.8062363, 122.1408768, 121.501358, 120.9004822, 120.3225555, 119.7514191, 119.2011871, 118.7055511, 118.2950592, 117.9416199, 117.5793762, 117.2029953, 116.8356552, 116.4874039, 116.1693954, 115.9030762, 115.6935577, 115.5213852, 115.3659363, 115.2032318, 115.0445251, 114.9317932, 114.8815384, 114.8605118, 114.8510284, 114.8482819, 114.848465, 114.8521805, 114.8999329, 115.0081787, 115.1483612, 115.2983322, 115.511528, 115.7195816, 115.9448853, 116.2098999, 116.5264893, 116.8126144, 117.1579666, 117.5379944, 117.9048004, 118.3263168, 118.8006821, 119.2988586, 119.8310318, 120.3776703, 121.0383987, 121.6810684, 122.4489899, 123.207077, 124.071022, 124.9082108, 125.74823, 126.6865311, 127.4425888, 127.8552094, 128.1067963, 128.3630676, 128.6606598, 128.9203491, 129.2632141, 129.708252, 130.1131287, 130.5647278, 130.9923553, 131.5979462, 132.2623444, 132.8651428, 133.4651947, 134.1470337, 134.8683624, 135.683609, 136.6136017, 137.5203552, 138.3826599, 139.2931976, 140.2762299, 141.2150574, 142.3930054, 143.7060547, 145.0472565, 146.3404083, 147.6144257, 148.9406586, 150.3545532, 151.8509674, 153.4246826, 155.0567017, 156.7265472, 158.4546509, 160.2428131, 162.1348267, 164.1415863, 166.2302551, 168.4024506, 170.5583649, 172.6457672, 174.9460449, 177.2792664, 179.6472473, 182.1867218, 184.5882721, 187.3068848, 189.8807373, 192.5116577, 195.5551453, 198.5196381, 201.3429413, 203.941452, 206.8439484, 209.5599213, 212.4866943, 215.0750885, 217.929306, 220.6668701, 223.364151, 226.2115479, 228.9524536, 231.5583954, 234.405304, 237.0275879, 239.5091705, 242.0047455, 242.0177155};\n\n\n\n// Compress a range of values from 0 to limit. Doesn't compress anything beyond the limit.\n// The k1 parameter affects the strength of compression, the k2 parameter affects the\n// expansion rate of the curve. https://www.desmos.com/calculator/vqxgfzzyvx\nfloat compress_range(float x, float limit, float k1, float k2, int invert) {\n if (x > limit) return x;\n\n k2 = max(k2, 0.015);\n k1 = sqrt(k1 * k1 + k2 * k2);\n float k3 = (limit + k1) / (limit + k2);\n\n if (invert == 0) return 0.5 * (k3 * x - k1 + sqrt((k3 * x - k1) * (k3 * x - k1) + 4 * k2 * k3 * x));\n else return (x * x + k1 * x) / (k3 * (x + k2));\n}\n\n// Return multiplier to compress shadows and noise floor\nfloat denoise(float x) {\n\tfloat f = pow(x, 2.7);\n\tfloat toe = daniele_n > 100 ? 0.1 / daniele_n : 0.16 / daniele_n;\n\treturn f / (f + toe);\n}\n\n\n\n\n\n\n// In-gamut chroma compression\n//\n// Compresses colors inside the gamut with the aim for colorfulness to have an\n// appropriate rate of change from display black to display white, and from\n// achromatic outward to purer colors.\n//\n// Steps:\n// - Scale down M by tonescaledJ / origJ\n// - Normalize M to compression gamut cusp (becomes hue-dependent)\n// - Compress M with compress_range(). Compression is increased as tonescaledJ\n// increases to create the path-to-white.\n// - Denormalize M with the gamut cusp\n//\n// \n\nfloat scaleM = daniele_n > 100 ? 1.465 - (4.4 - daniele_m_0 * 0.007) * daniele_c_t + 0.25 : 1.29;\nfloat limitJmax = 100.0; // temp\nfloat scaleM2 = 0.26;\nfloat nJ_exp = 0.935;\n\n\nfloat M = JMh.g;\nif (M == 0.0) out.g = M;\n\nfloat nJ = TS / limitJmax;\nfloat snJ = max(0.0, 1.0 - nJ);\nfloat scale = (pow(TS, nJ_exp) / origJ) * (scaleM + scaleM2 * snJ) * denoise(nJ);\n// float Mcusp = cusp_with_eccentricity_factor(JMh.z);\n// \n// M = !invert ? M * scale : M;\n// \n// if (applyInGamutCompression)\n// {\n// M /= Mcusp;\n// M = compress_range(M, lerp(1.0, chromaCParams.x, nJ), nJ * chromaCParams.y, snJ * lerp(2.0, chromaCParams.z, nJ), invert);\n// M *= Mcusp;\n// }\n// \n// M = invert ? M / scale : M;\n// \n// out.g = M;\n\nout.g = Mcusp;" ) __children["chromaCompression"]["OSLCode"]["__uiPosition"].setValue( imath.V2f( 10.5596218, 2.8499999 ) ) __children["chromaCompression"]["BoxIn1"]["name"].setValue( 'origJ' ) __children["chromaCompression"]["BoxIn1"]["__in"].setInput( __children["chromaCompression"]["origJ"] ) Gaffer.Metadata.registerValue( __children["chromaCompression"]["BoxIn1"]["__in"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) Gaffer.Metadata.registerValue( __children["chromaCompression"]["BoxIn1"]["__in"], 'noduleLayout:section', 'left' ) Gaffer.Metadata.registerValue( __children["chromaCompression"]["BoxIn1"]["__in"], 'userDefault', None ) Gaffer.Metadata.registerValue( __children["chromaCompression"]["BoxIn1"]["__in"], 'description', '' ) Gaffer.Metadata.registerValue( __children["chromaCompression"]["BoxIn1"]["__in"], 'label', 'origJ' ) Gaffer.Metadata.registerValue( __children["chromaCompression"]["BoxIn1"]["__in"], 'presetNames', None ) Gaffer.Metadata.registerValue( __children["chromaCompression"]["BoxIn1"]["__in"], 'presetValues', None ) Gaffer.Metadata.registerValue( __children["chromaCompression"]["BoxIn1"]["__in"], 'plugValueWidget:type', None ) Gaffer.Metadata.registerValue( __children["chromaCompression"]["BoxIn1"]["__in"], 'nodule:type', None ) Gaffer.Metadata.registerValue( __children["chromaCompression"]["BoxIn1"]["__in"], 'noduleLayout:visible', True ) Gaffer.Metadata.registerValue( __children["chromaCompression"]["BoxIn1"]["__in"], 'noduleLayout:label', None ) Gaffer.Metadata.registerValue( __children["chromaCompression"]["BoxIn1"]["__in"], 'renameable', True ) Gaffer.Metadata.registerValue( __children["chromaCompression"]["BoxIn1"]["__in"], 'deletable', True ) Gaffer.Metadata.registerValue( __children["chromaCompression"]["BoxIn1"]["out"], 'noduleLayout:section', 'bottom' ) __children["chromaCompression"]["BoxIn1"]["__uiPosition"].setValue( imath.V2f( -1.49999285, 10.8499985 ) ) __children["chromaCompression"]["origJ"].setInput( __children["ColorToFloat"]["out"]["r"] ) Gaffer.Metadata.registerValue( __children["chromaCompression"]["origJ"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) Gaffer.Metadata.registerValue( __children["chromaCompression"]["origJ"], 'noduleLayout:section', 'left' ) Gaffer.Metadata.registerValue( __children["chromaCompression"]["origJ"], 'userDefault', None ) Gaffer.Metadata.registerValue( __children["chromaCompression"]["origJ"], 'description', '' ) Gaffer.Metadata.registerValue( __children["chromaCompression"]["origJ"], 'label', 'origJ' ) Gaffer.Metadata.registerValue( __children["chromaCompression"]["origJ"], 'presetNames', None ) Gaffer.Metadata.registerValue( __children["chromaCompression"]["origJ"], 'presetValues', None ) Gaffer.Metadata.registerValue( __children["chromaCompression"]["origJ"], 'plugValueWidget:type', '' ) Gaffer.Metadata.registerValue( __children["chromaCompression"]["origJ"], 'nodule:type', None ) Gaffer.Metadata.registerValue( __children["chromaCompression"]["origJ"], 'noduleLayout:visible', True ) Gaffer.Metadata.registerValue( __children["chromaCompression"]["origJ"], 'noduleLayout:label', None ) Gaffer.Metadata.registerValue( __children["chromaCompression"]["origJ"], 'renameable', True ) Gaffer.Metadata.registerValue( __children["chromaCompression"]["origJ"], 'deletable', True ) Gaffer.Metadata.registerValue( __children["chromaCompression"]["origJ"], 'noduleLayout:index', 0 ) Gaffer.Metadata.registerValue( __children["chromaCompression"]["origJ"], 'layout:section', 'Settings' ) Gaffer.Metadata.registerValue( __children["chromaCompression"]["origJ"], 'layout:index', 2 ) __children["chromaCompression"]["BoxIn2"]["name"].setValue( 'TS' ) __children["chromaCompression"]["BoxIn2"]["__in"].setInput( __children["chromaCompression"]["TS"] ) Gaffer.Metadata.registerValue( __children["chromaCompression"]["BoxIn2"]["__in"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) Gaffer.Metadata.registerValue( __children["chromaCompression"]["BoxIn2"]["__in"], 'noduleLayout:section', 'left' ) Gaffer.Metadata.registerValue( __children["chromaCompression"]["BoxIn2"]["__in"], 'userDefault', None ) Gaffer.Metadata.registerValue( __children["chromaCompression"]["BoxIn2"]["__in"], 'description', '' ) Gaffer.Metadata.registerValue( __children["chromaCompression"]["BoxIn2"]["__in"], 'label', 'origJ' ) Gaffer.Metadata.registerValue( __children["chromaCompression"]["BoxIn2"]["__in"], 'presetNames', None ) Gaffer.Metadata.registerValue( __children["chromaCompression"]["BoxIn2"]["__in"], 'presetValues', None ) Gaffer.Metadata.registerValue( __children["chromaCompression"]["BoxIn2"]["__in"], 'plugValueWidget:type', None ) Gaffer.Metadata.registerValue( __children["chromaCompression"]["BoxIn2"]["__in"], 'nodule:type', None ) Gaffer.Metadata.registerValue( __children["chromaCompression"]["BoxIn2"]["__in"], 'noduleLayout:visible', True ) Gaffer.Metadata.registerValue( __children["chromaCompression"]["BoxIn2"]["__in"], 'noduleLayout:label', None ) Gaffer.Metadata.registerValue( __children["chromaCompression"]["BoxIn2"]["__in"], 'renameable', True ) Gaffer.Metadata.registerValue( __children["chromaCompression"]["BoxIn2"]["__in"], 'deletable', True ) Gaffer.Metadata.registerValue( __children["chromaCompression"]["BoxIn2"]["out"], 'noduleLayout:section', 'bottom' ) __children["chromaCompression"]["BoxIn2"]["__uiPosition"].setValue( imath.V2f( -10.9999866, 9.75000191 ) ) __children["chromaCompression"]["TS"].setInput( __children["Hellwig2022_JMh9"]["out"]["r"] ) Gaffer.Metadata.registerValue( __children["chromaCompression"]["TS"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) Gaffer.Metadata.registerValue( __children["chromaCompression"]["TS"], 'noduleLayout:section', 'left' ) Gaffer.Metadata.registerValue( __children["chromaCompression"]["TS"], 'userDefault', None ) Gaffer.Metadata.registerValue( __children["chromaCompression"]["TS"], 'description', '' ) Gaffer.Metadata.registerValue( __children["chromaCompression"]["TS"], 'label', 'TS' ) Gaffer.Metadata.registerValue( __children["chromaCompression"]["TS"], 'presetNames', None ) Gaffer.Metadata.registerValue( __children["chromaCompression"]["TS"], 'presetValues', None ) Gaffer.Metadata.registerValue( __children["chromaCompression"]["TS"], 'plugValueWidget:type', '' ) Gaffer.Metadata.registerValue( __children["chromaCompression"]["TS"], 'nodule:type', None ) Gaffer.Metadata.registerValue( __children["chromaCompression"]["TS"], 'noduleLayout:visible', True ) Gaffer.Metadata.registerValue( __children["chromaCompression"]["TS"], 'noduleLayout:label', None ) Gaffer.Metadata.registerValue( __children["chromaCompression"]["TS"], 'renameable', True ) Gaffer.Metadata.registerValue( __children["chromaCompression"]["TS"], 'deletable', True ) Gaffer.Metadata.registerValue( __children["chromaCompression"]["TS"], 'layout:section', 'Settings' ) Gaffer.Metadata.registerValue( __children["chromaCompression"]["TS"], 'layout:index', 3 ) __children["chromaCompression"]["cusp_with_eccentricity_factor"]["parameters"]["h"].setInput( __children["chromaCompression"]["BoxIn"]["out"]["b"] ) __children["chromaCompression"]["cusp_with_eccentricity_factor"]["parameters"]["compressMode"].setValue( 1 ) __children["chromaCompression"]["cusp_with_eccentricity_factor"]["parameters"]["sstsLuminance"].setValue( imath.V3f( 9.99999975e-05, 10, 100 ) ) __children["chromaCompression"]["cusp_with_eccentricity_factor"]["parameters"]["referenceLuminance"].setValue( 100.0 ) __children["chromaCompression"]["cusp_with_eccentricity_factor"]["code"].setValue( 'color vdot(float m[], color v) {\n\treturn color(m[0]*v[0] + m[1]*v[1] + m[2]*v[2], m[3]*v[0] + m[4]*v[1] + m[5]*v[2], m[6]*v[0] + m[7]*v[1] + m[8]*v[2]);\n}\n\ncolor compress_bjorn (color xyz) {\n float x = xyz.r;\n float y = xyz.g;\n float z = xyz.b;\n\n float C = (x+y+z)/3;\n if (C == 0.0) return xyz;\n\n float R = sqrt(pow((x-C),2) + pow((y-C),2) + pow((z-C),2));\n R = R * 0.816496580927726;\n\n if (R != 0.0) {\n x = (x-C)/R;\n y = (y-C)/R;\n z = (z-C)/R;\n }\n\n float r = R/C;\n float s = -min(x, min(y, z));\n\n float t = 0.0;\n if (r > 0.000001) {\n t = (0.5+pow((pow((s-0.5),2) + pow((sqrt(4/pow(r,2)+1)-1),2)/4),0.5));\n if (t < 0.000001) return xyz;\n t = 1/t;\n }\n\n x = C*x*t + C;\n y = C*y*t + C;\n z = C*z*t + C;\n\n return color(x,y,z);\n}\n\n\ncolor uncompress_bjorn (color xyz) {\n float x = xyz.r;\n float y = xyz.g;\n float z = xyz.b;\n\n float C = (x+y+z)*(1.0/3.0);\n if (C == 0.0) return xyz;\n\n float R = sqrt(pow((x-C),2) + pow((y-C),2) + pow((z-C),2));\n R = R * 0.816496580927726;\n\n if (R != 0.0) {\n x = (x-C)/R;\n y = (y-C)/R;\n z = (z-C)/R;\n }\n\n float t = R/C;\n float s = -min(x, min(y, z));\n\n float r = 0.0;\n if (t > 0.000001) {\n r = sqrt(pow((2*sqrt(pow((1/t-0.5),2)-pow((s-0.5),2))+1),2)-1);\n if (r < 0.000001)\n return xyz;\n r = 2/r;\n }\n\n x = C*x*r + C;\n y = C*y*r + C;\n z = C*z*r + C;\n\n return color(x,y,z);\n}\n\ncolor limit_RGB_to_JMh(color IN) {\n\n\tvector boundaryRGB = sstsLuminance.z / referenceLuminance;\n\tIN = IN * boundaryRGB * referenceLuminance;\n\n\tfloat RGB_to_XYZ_limit[9] = {0.412391, 0.357584, 0.180481, 0.212639, 0.715169, 0.072192, 0.019331, 0.119195, 0.950532};\n\tcolor XYZ = vdot(RGB_to_XYZ_limit, IN);\nreturn XYZ;\n\tcolor surround = color(0.9, 0.59, 0.9);\n\tfloat referenceLuminance = 100.0;\n\tfloat MATRIX_16[9] = { 0.595158, 0.439409, -0.0344635, -0.233358, 1.08935, 0.143579, 0.0572735, -0.303878, 1.24287 };\n\tcolor XYZ_w = color(0.950455927052, 1.0, 1.08905775076);\n\tfloat XYZ_w_scaler = 100.0;\n\tXYZ_w = XYZ_w * XYZ_w_scaler;\n\tfloat Y_w = XYZ_w.g;\n\tfloat L_A = 100.0;\n\tfloat Y_b = 20.0;\n\tcolor RGB_w = vdot(MATRIX_16, XYZ_w);\n\tfloat D = 1.0;\n\tfloat k = 1 / (5 * L_A + 1);\n\tfloat k4 = pow(k,4);\n\tfloat F_L = 0.2 * k4 * (5.0 * L_A) + 0.1 * pow((1.0 - k4), 2.0) * pow(5.0 * L_A, 1.0 / 3.0);\n\tfloat n = Y_b / Y_w;\n\tfloat z = 1.48 + sqrt(n);\n\tcolor D_RGB = D * Y_w / RGB_w + 1 - D;\n\tcolor RGB_wc = D_RGB * RGB_w;\n\tcolor F_L_RGB = pow(F_L * abs(RGB_wc) / 100.0, 0.42);\n\tcolor RGB_aw = (400.0 * sign(RGB_wc) * F_L_RGB) / (27.13 + F_L_RGB);\n\tfloat R_aw = RGB_aw.r;\n\tfloat G_aw = RGB_aw.g;\n\tfloat B_aw = RGB_aw.b;\n\tfloat ra = 2.0;\n\tfloat ba = 0.05;\n\tfloat A_w = ra * R_aw + G_aw + ba * B_aw;\n\t\n\tcolor RGB = vdot(MATRIX_16, XYZ*referenceLuminance);\n\tcolor RGB_c = D_RGB * RGB;\n\tif (compressMode) \tRGB_c = compress_bjorn(RGB_c);\n\tcolor F_L_RGB2 = pow(F_L * abs(RGB_c) / 100.0, 0.42);\n\tcolor RGB_a = (400.0 * sign(RGB_c) * F_L_RGB2) / (27.13 + F_L_RGB2);\n\tif (compressMode) \tRGB_a = uncompress_bjorn(RGB_a);\n\tfloat R_a = RGB_a.r;\n\tfloat G_a = RGB_a.g;\n\tfloat B_a = RGB_a.b;\n\tfloat a = R_a - 12.0 * G_a / 11.0 + B_a / 11.0;\n\tfloat b = (R_a + G_a - 2.0 * B_a) / 9.0;\n\tfloat h = mod(degrees(atan2(b, a)), 360.0);\n\tfloat R_a2 = RGB_a.r;\n\tfloat G_a2 = RGB_a.g;\n\tfloat B_a2 = RGB_a.b;\n\tfloat A = ra * R_a2 + G_a2 + ba * B_a2;\n\tfloat J = 100.0 * pow(A / A_w, surround.g * z);\n\tfloat M = J == 0.0 ? 0.0 : 43.0 * surround.b * sqrt(a * a + b * b);\n\treturn color(J,M,h);\n}\n\n\n\n\n\n// :2427 - init cgamutCuspTable\nint gamutCuspTableSize = 360;\n\nvector gamutCuspTableUnsorted[360];\nvector cgamutCuspTable[360];\n\nfor( int i = 0; i < gamutCuspTableSize; ++i ) {\n\tfloat hNorm = float(i) / (gamutCuspTableSize);\n\tcolor RGB = transformc("hsv", "rgb", color(hNorm, 1.0, 1.0));\n\tgamutCuspTableUnsorted[i] = limit_RGB_to_JMh(RGB);\n}\n\nint minhIndex = 0;\nfor( int i = 1; i < gamutCuspTableSize; ++i ) {\n\tif( gamutCuspTableUnsorted[i].z < gamutCuspTableUnsorted[minhIndex].z) {\n\t\tminhIndex = i;\n\t}\n}\nminhIndex = 0;\nfor( int i = 0; i < gamutCuspTableSize; ++i ) {\n\tcgamutCuspTable[i] = gamutCuspTableUnsorted[mod(minhIndex+i, gamutCuspTableSize)];\n}\n\n\n\nvector ccuspFromTable(float h) {\n vector lo;\n vector hi;\n\n if( h <= cgamutCuspTable[0].z ) {\n lo = cgamutCuspTable[gamutCuspTableSize-1];\n lo.z = lo.z - 360.0;\n hi = cgamutCuspTable[0];\n } else if( h >= cgamutCuspTable[gamutCuspTableSize-1].z ) {\n lo = cgamutCuspTable[gamutCuspTableSize-1];\n hi = cgamutCuspTable[0];\n hi.z = hi.z + 360.0;\n } else {\n for(int i = 1; i < gamutCuspTableSize; ++i) {\n if( h <= cgamutCuspTable[i].z ) {\n lo = cgamutCuspTable[i-1];\n hi = cgamutCuspTable[i];\n break;\n }\n }\n }\n\n float t = (h - lo.z) / (hi.z - lo.z);\n\n float cuspJ = mix(lo.x, hi.x, t);\n float cuspM = mix(lo.y, hi.y, t);\n\n return color(cuspJ,cuspM, 0);\n}\n\n\n\n// Return compression gamut cusp M scaled with an eccentricity factor\nvector JMcusp = ccuspFromTable(h);\nfloat e_t;\n// Custom https://www.desmos.com/calculator/vukgp6rtos\nfloat hr = radians(h);\nfloat hr2 = hr * 2;\nfloat hr3 = hr * 3;\ne_t = (-0.47 * cos(hr) +\n 0.07 * cos(hr2) +\n -0.11 * cos(hr3) +\n -0.33 * sin(hr) +\n 0.19 * sin(hr2) +\n 0.00 * sin(hr3) +\n 1.86) * 0.58;\n\nM = JMcusp.y * e_t;\n\n// Testing\n// test = gamutCuspTableUnsorted[150];\ntest = cgamutCuspTable[60];\n' ) __children["chromaCompression"]["cusp_with_eccentricity_factor"]["__uiPosition"].setValue( imath.V2f( -24.9970284, 2.24999976 ) ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"], 'description', 'Plot the input RGB pixel values as 3d points. Optionally, adds a 1x1 cube for visualizing the display-referred gamut cube.\n' ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"], 'noduleLayout:customGadget:addButtonTop:visible', False ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"], 'noduleLayout:customGadget:addButtonBottom:visible', False ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"], 'noduleLayout:customGadget:addButtonLeft:visible', False ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"], 'noduleLayout:customGadget:addButtonRight:visible', False ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"], 'uiEditor:emptySections', IECore.StringVectorData( [ ] ) ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"], 'uiEditor:emptySectionIndices', IECore.IntVectorData( [ ] ) ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"], 'layout:section:Settings.Gamut Cube Options:summary', '' ) Gaffer.MetadataAlgo.setNumericBookmark( __children["PlotRGBPoints"].scriptNode(), 6, __children["PlotRGBPoints"] ) __children["PlotRGBPoints"]["__uiPosition"].setValue( imath.V2f( -30.9109573, -108.697327 ) ) __children["PlotRGBPoints"]["ImageToPoints"]["enabled"].setInput( __children["PlotRGBPoints"]["enabled"] ) __children["PlotRGBPoints"]["ImageToPoints"]["image"].setInput( __children["PlotRGBPoints"]["ShuffleLayer"]["out"] ) __children["PlotRGBPoints"]["ImageToPoints"]["position"].setValue( IECore.StringVectorData( [ 'pos.R', 'pos.G', 'pos.B', 'pos.A' ] ) ) __children["PlotRGBPoints"]["ImageToPoints"]["primitiveVariables"].setValue( '*' ) __children["PlotRGBPoints"]["ImageToPoints"]["__uiPosition"].setValue( imath.V2f( 0.150000572, 11.3588352 ) ) __children["PlotRGBPoints"]["BoxIn"]["name"].setValue( 'image' ) __children["PlotRGBPoints"]["BoxIn"]["__in"].setInput( __children["PlotRGBPoints"]["image"] ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["BoxIn"]["__in"], 'nodule:type', 'GafferUI::StandardNodule' ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["BoxIn"]["__in"], 'description', 'The image to be converted into a points primitive.' ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["BoxIn"]["out"], 'noduleLayout:section', 'bottom' ) __children["PlotRGBPoints"]["BoxIn"]["__uiPosition"].setValue( imath.V2f( 0.149999857, 35.4242134 ) ) __children["PlotRGBPoints"]["image"].setInput( __children["Dot"]["out"] ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["image"], 'nodule:type', 'GafferUI::StandardNodule' ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["image"], 'description', 'The image to be converted into a points primitive.' ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["image"], 'noduleLayout:section', 'top' ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["image"], 'layout:section', 'Settings' ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["image"], 'layout:index', 0 ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["image"], 'divider', False ) __children["PlotRGBPoints"]["BoxOut"]["in"].setInput( __children["PlotRGBPoints"]["Transform"]["out"] ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["BoxOut"]["in"], 'noduleLayout:section', 'top' ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["BoxOut"]["__out"], 'nodule:color', imath.Color3f( 0.240099996, 0.339399993, 0.485000014 ) ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["BoxOut"]["__out"], 'description', 'The output scene.' ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["BoxOut"]["__out"], 'nodule:type', 'GafferUI::StandardNodule' ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["BoxOut"]["passThrough"], 'noduleLayout:section', 'top' ) __children["PlotRGBPoints"]["BoxOut"]["__uiPosition"].setValue( imath.V2f( 3.9000001, -15.3320332 ) ) __children["PlotRGBPoints"]["out"].setInput( __children["PlotRGBPoints"]["BoxOut"]["__out"] ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["out"], 'nodule:color', imath.Color3f( 0.240099996, 0.339399993, 0.485000014 ) ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["out"], 'description', 'The output scene.' ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["out"], 'nodule:type', 'GafferUI::StandardNodule' ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["out"], 'noduleLayout:section', 'bottom' ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["out"], 'layout:section', 'Settings' ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["out"], 'layout:index', 1 ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["out"], 'divider', False ) __children["PlotRGBPoints"]["Transform"]["enabled"].setInput( __children["PlotRGBPoints"]["Expression"]["__out"]["p1"] ) __children["PlotRGBPoints"]["Transform"]["in"].setInput( __children["PlotRGBPoints"]["Parent"]["out"] ) __children["PlotRGBPoints"]["Transform"]["filter"].setInput( __children["PlotRGBPoints"]["PathFilter"]["out"] ) __children["PlotRGBPoints"]["Transform"]["space"].setValue( 2 ) __children["PlotRGBPoints"]["Transform"]["transform"]["rotate"]["x"].setValue( -45.0 ) __children["PlotRGBPoints"]["Transform"]["transform"]["rotate"]["z"].setInput( __children["PlotRGBPoints"]["Expression"]["__out"]["p0"] ) __children["PlotRGBPoints"]["Transform"]["__uiPosition"].setValue( imath.V2f( 2.4000001, -8.06406593 ) ) __children["PlotRGBPoints"]["PathFilter"]["paths"].setValue( IECore.StringVectorData( [ '/*' ] ) ) __children["PlotRGBPoints"]["PathFilter"]["__uiPosition"].setValue( imath.V2f( 16.2887135, -3.91899252 ) ) __children["PlotRGBPoints"]["Expression"]["__in"]["p0"].setInput( __children["PlotRGBPoints"]["achromaticUp"] ) __children["PlotRGBPoints"]["Expression"]["__uiPosition"].setValue( imath.V2f( 6.79994726, -7.12731266 ) ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["achromaticUp"], 'nodule:type', '' ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["achromaticUp"], 'layout:section', 'Settings.Gamut Cube Options' ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["achromaticUp"], 'layout:index', 3 ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["achromaticUp"], 'label', 'achromatic up' ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["achromaticUp"], 'description', 'Orient the points so that achromatic is +Y' ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["achromaticUp"], 'divider', True ) __children["PlotRGBPoints"]["Parent"]["in"].setInput( __children["PlotRGBPoints"]["ImageToPoints"]["out"] ) __children["PlotRGBPoints"]["Parent"]["parent"].setValue( '/' ) __children["PlotRGBPoints"]["Parent"]["children"][0].setInput( __children["PlotRGBPoints"]["ImageToPoints1"]["out"] ) __children["PlotRGBPoints"]["Parent"]["__uiPosition"].setValue( imath.V2f( 2.4000001, 0.0999963284 ) ) __children["PlotRGBPoints"]["ImageToPoints1"]["name"].setValue( 'displayCube' ) __children["PlotRGBPoints"]["ImageToPoints1"]["transform"]["scale"]["y"].setInput( __children["PlotRGBPoints"]["ImageToPoints1"]["transform"]["scale"]["x"] ) __children["PlotRGBPoints"]["ImageToPoints1"]["transform"]["scale"]["z"].setInput( __children["PlotRGBPoints"]["ImageToPoints1"]["transform"]["scale"]["x"] ) __children["PlotRGBPoints"]["ImageToPoints1"]["image"].setInput( __children["PlotRGBPoints"]["OSLImage"]["out"] ) __children["PlotRGBPoints"]["ImageToPoints1"]["position"].setValue( IECore.StringVectorData( [ 'R', 'G', 'B', 'A' ] ) ) __children["PlotRGBPoints"]["ImageToPoints1"]["primitiveVariables"].setValue( '[RGBA]' ) __children["PlotRGBPoints"]["ImageToPoints1"]["width"].setValue( 0.05000000074505806 ) __children["PlotRGBPoints"]["ImageToPoints1"]["widthChannel"].setValue( 'A' ) __children["PlotRGBPoints"]["ImageToPoints1"]["__uiPosition"].setValue( imath.V2f( 58.8429031, 8.26405907 ) ) __children["PlotRGBPoints"]["OSLImage"]["defaultFormat"].setValue( GafferImage.Format( 512, 512, 1.000 ) ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["OSLImage"]["defaultFormat"], 'formatPlugValueWidget:mode', 'custom' ) __children["PlotRGBPoints"]["OSLImage"]["channels"]["channel"]["value"].setInput( __children["PlotRGBPoints"]["OSLCode"]["out"]["out"] ) __children["PlotRGBPoints"]["OSLImage"]["__uiPosition"].setValue( imath.V2f( 58.8429031, 19.236824 ) ) __children["PlotRGBPoints"]["OSLCode"]["parameters"]["scale"].setInput( __children["PlotRGBPoints"]["BoxIn5"]["out"] ) __children["PlotRGBPoints"]["OSLCode"]["parameters"]["hueQ"].setInput( __children["PlotRGBPoints"]["BoxIn6"]["out"] ) __children["PlotRGBPoints"]["OSLCode"]["parameters"]["valQ"].setInput( __children["PlotRGBPoints"]["BoxIn7"]["out"] ) __children["PlotRGBPoints"]["OSLCode"]["parameters"]["hueQ2"].setInput( __children["PlotRGBPoints"]["BoxIn8"]["out"] ) __children["PlotRGBPoints"]["OSLCode"]["parameters"]["valQ2"].setInput( __children["PlotRGBPoints"]["BoxIn9"]["out"] ) __children["PlotRGBPoints"]["OSLCode"]["parameters"]["enableCube2"].setInput( __children["PlotRGBPoints"]["BoxIn10"]["out"] ) __children["PlotRGBPoints"]["OSLCode"]["parameters"]["enableCube"].setInput( __children["PlotRGBPoints"]["BoxIn11"]["out"] ) __children["PlotRGBPoints"]["OSLCode"]["parameters"]["scale2"].setInput( __children["PlotRGBPoints"]["BoxIn12"]["out"] ) __children["PlotRGBPoints"]["OSLCode"]["code"].setValue( 'float quantize(float x, float steps) { return steps==0?x:round(x*steps+0.5001)/steps; }\nfloat hv = fabs(v-0.5)*2;\nfloat hu = enableCube2?fabs(u-0.5)*2:u;\nout = 0;\nif (enableCube) {\n\tout = color("hsv", quantize(hv, hueQ*2), 1, quantize(hu, valQ*2));\n\tout = ((v-0.5) > 0) ? out : 1-out;\n\tout *= scale;\n}\nif (enableCube2) {\n\tcolor out2 = color("hsv", quantize(hv, hueQ2*2), 1, quantize(hu, valQ2*2));\n\tout2 = ((v-0.5) > 0) ? out2 : 1-out2;\n\tout2 *= scale2;\n\tout = ((u-0.5) > 0) ? out2 : out;\n}\n\n' ) __children["PlotRGBPoints"]["OSLCode"]["__uiPosition"].setValue( imath.V2f( 45.3798485, 19.8305683 ) ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["enabled"], 'description', 'Enable or disable plotting of the input image data.' ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["enabled"], 'nodule:type', '' ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["enabled"], 'layout:section', 'Settings' ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["enabled"], 'layout:index', 2 ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["enabled"], 'divider', True ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["Backdrop"], 'nodeGadget:color', imath.Color3f( 0.270000011, 0.270000011, 0.270000011 ) ) __children["PlotRGBPoints"]["Backdrop"]["title"].setValue( 'RGB Cube' ) __children["PlotRGBPoints"]["Backdrop"]["description"].setValue( 'Generate image data representing a 0-1 cube, visualizing the display-referred gamut cube, then plot this image data as points for visualization purposes.' ) __children["PlotRGBPoints"]["Backdrop"]["__uiPosition"].setValue( imath.V2f( 41.9709053, 17.1065521 ) ) __children["PlotRGBPoints"]["Backdrop"]["__uiBound"].setValue( imath.Box2f( imath.V2f( -22.5071831, -13.8732986 ), imath.V2f( 27.683506, 20.1767197 ) ) ) __children["PlotRGBPoints"]["BoxIn5"]["name"].setValue( 'scale' ) __children["PlotRGBPoints"]["BoxIn5"]["__in"].setInput( __children["PlotRGBPoints"]["scale"] ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["BoxIn5"]["__in"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["BoxIn5"]["__in"], 'noduleLayout:section', 'left' ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["BoxIn5"]["__in"], 'userDefault', None ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["BoxIn5"]["__in"], 'description', '' ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["BoxIn5"]["__in"], 'label', 'scale' ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["BoxIn5"]["__in"], 'presetNames', None ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["BoxIn5"]["__in"], 'presetValues', None ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["BoxIn5"]["__in"], 'plugValueWidget:type', None ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["BoxIn5"]["__in"], 'nodule:type', None ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["BoxIn5"]["__in"], 'noduleLayout:visible', True ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["BoxIn5"]["__in"], 'noduleLayout:label', None ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["BoxIn5"]["__in"], 'renameable', True ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["BoxIn5"]["__in"], 'deletable', True ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["BoxIn5"]["out"], 'noduleLayout:section', 'right' ) __children["PlotRGBPoints"]["BoxIn5"]["__uiPosition"].setValue( imath.V2f( 33.5866547, 24.0305691 ) ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["scale"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["scale"], 'noduleLayout:section', 'left' ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["scale"], 'description', 'The Scale of the display-referred gamut cube. Defaults to 1.0' ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["scale"], 'label', 'scale cube 1' ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["scale"], 'presetNames', None ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["scale"], 'presetValues', None ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["scale"], 'plugValueWidget:type', None ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["scale"], 'nodule:type', '' ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["scale"], 'noduleLayout:visible', True ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["scale"], 'noduleLayout:label', None ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["scale"], 'renameable', True ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["scale"], 'deletable', True ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["scale"], 'layout:section', 'Settings.Gamut Cube Options' ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["scale"], 'layout:index', 7 ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["scale"], 'divider', True ) __children["PlotRGBPoints"]["BoxIn6"]["name"].setValue( 'hueQ' ) __children["PlotRGBPoints"]["BoxIn6"]["__in"].setInput( __children["PlotRGBPoints"]["hueQ"] ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["BoxIn6"]["__in"], 'noduleLayout:section', 'left' ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["BoxIn6"]["__in"], 'userDefault', None ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["BoxIn6"]["__in"], 'description', '' ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["BoxIn6"]["__in"], 'label', 'hueQ' ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["BoxIn6"]["__in"], 'presetNames', None ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["BoxIn6"]["__in"], 'presetValues', None ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["BoxIn6"]["__in"], 'plugValueWidget:type', None ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["BoxIn6"]["__in"], 'nodule:type', None ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["BoxIn6"]["__in"], 'noduleLayout:visible', True ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["BoxIn6"]["__in"], 'noduleLayout:label', None ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["BoxIn6"]["__in"], 'renameable', True ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["BoxIn6"]["__in"], 'deletable', True ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["BoxIn6"]["out"], 'noduleLayout:section', 'right' ) __children["PlotRGBPoints"]["BoxIn6"]["__uiPosition"].setValue( imath.V2f( 33.5695648, 22.8305683 ) ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["hueQ"], 'noduleLayout:section', 'left' ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["hueQ"], 'description', 'Quantize hue into 2* number of slices' ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["hueQ"], 'label', 'hue quantize' ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["hueQ"], 'presetNames', None ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["hueQ"], 'presetValues', None ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["hueQ"], 'plugValueWidget:type', None ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["hueQ"], 'nodule:type', '' ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["hueQ"], 'noduleLayout:visible', True ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["hueQ"], 'noduleLayout:label', None ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["hueQ"], 'renameable', True ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["hueQ"], 'deletable', True ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["hueQ"], 'layout:section', 'Settings.Gamut Cube Options' ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["hueQ"], 'layout:index', 5 ) __children["PlotRGBPoints"]["BoxIn7"]["name"].setValue( 'valQ' ) __children["PlotRGBPoints"]["BoxIn7"]["__in"].setInput( __children["PlotRGBPoints"]["valQ"] ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["BoxIn7"]["__in"], 'noduleLayout:section', 'left' ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["BoxIn7"]["__in"], 'userDefault', None ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["BoxIn7"]["__in"], 'description', '' ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["BoxIn7"]["__in"], 'label', 'valQ' ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["BoxIn7"]["__in"], 'presetNames', None ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["BoxIn7"]["__in"], 'presetValues', None ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["BoxIn7"]["__in"], 'plugValueWidget:type', None ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["BoxIn7"]["__in"], 'nodule:type', None ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["BoxIn7"]["__in"], 'noduleLayout:visible', True ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["BoxIn7"]["__in"], 'noduleLayout:label', None ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["BoxIn7"]["__in"], 'renameable', True ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["BoxIn7"]["__in"], 'deletable', True ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["BoxIn7"]["out"], 'noduleLayout:section', 'right' ) __children["PlotRGBPoints"]["BoxIn7"]["__uiPosition"].setValue( imath.V2f( 33.7514496, 21.6305695 ) ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["valQ"], 'noduleLayout:section', 'left' ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["valQ"], 'userDefault', None ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["valQ"], 'description', 'Quantize value into 2* number of slices' ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["valQ"], 'label', 'val quantize' ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["valQ"], 'presetNames', None ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["valQ"], 'presetValues', None ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["valQ"], 'plugValueWidget:type', None ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["valQ"], 'nodule:type', '' ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["valQ"], 'noduleLayout:visible', True ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["valQ"], 'noduleLayout:label', None ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["valQ"], 'renameable', True ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["valQ"], 'deletable', True ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["valQ"], 'layout:section', 'Settings.Gamut Cube Options' ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["valQ"], 'layout:index', 6 ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["valQ"], 'divider', False ) __children["PlotRGBPoints"]["BoxIn8"]["name"].setValue( 'hueQ2' ) __children["PlotRGBPoints"]["BoxIn8"]["__in"].setInput( __children["PlotRGBPoints"]["hueQ2"] ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["BoxIn8"]["__in"], 'noduleLayout:section', 'left' ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["BoxIn8"]["__in"], 'userDefault', None ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["BoxIn8"]["__in"], 'description', '' ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["BoxIn8"]["__in"], 'label', 'hueQ2' ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["BoxIn8"]["__in"], 'presetNames', None ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["BoxIn8"]["__in"], 'presetValues', None ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["BoxIn8"]["__in"], 'plugValueWidget:type', None ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["BoxIn8"]["__in"], 'nodule:type', None ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["BoxIn8"]["__in"], 'noduleLayout:visible', True ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["BoxIn8"]["__in"], 'noduleLayout:label', None ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["BoxIn8"]["__in"], 'renameable', True ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["BoxIn8"]["__in"], 'deletable', True ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["BoxIn8"]["out"], 'noduleLayout:section', 'right' ) __children["PlotRGBPoints"]["BoxIn8"]["__uiPosition"].setValue( imath.V2f( 33.239975, 20.4305687 ) ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["hueQ2"], 'noduleLayout:section', 'left' ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["hueQ2"], 'userDefault', None ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["hueQ2"], 'description', 'Quantize hue into 2* number of slices' ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["hueQ2"], 'label', 'hue quantize' ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["hueQ2"], 'presetNames', None ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["hueQ2"], 'presetValues', None ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["hueQ2"], 'plugValueWidget:type', None ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["hueQ2"], 'nodule:type', '' ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["hueQ2"], 'noduleLayout:visible', True ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["hueQ2"], 'noduleLayout:label', None ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["hueQ2"], 'renameable', True ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["hueQ2"], 'deletable', True ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["hueQ2"], 'layout:section', 'Settings.Gamut Cube Options' ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["hueQ2"], 'layout:index', 9 ) __children["PlotRGBPoints"]["BoxIn9"]["name"].setValue( 'valQ2' ) __children["PlotRGBPoints"]["BoxIn9"]["__in"].setInput( __children["PlotRGBPoints"]["valQ2"] ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["BoxIn9"]["__in"], 'noduleLayout:section', 'left' ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["BoxIn9"]["__in"], 'userDefault', None ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["BoxIn9"]["__in"], 'description', '' ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["BoxIn9"]["__in"], 'label', 'valQ2' ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["BoxIn9"]["__in"], 'presetNames', None ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["BoxIn9"]["__in"], 'presetValues', None ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["BoxIn9"]["__in"], 'plugValueWidget:type', None ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["BoxIn9"]["__in"], 'nodule:type', None ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["BoxIn9"]["__in"], 'noduleLayout:visible', True ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["BoxIn9"]["__in"], 'noduleLayout:label', None ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["BoxIn9"]["__in"], 'renameable', True ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["BoxIn9"]["__in"], 'deletable', True ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["BoxIn9"]["out"], 'noduleLayout:section', 'right' ) __children["PlotRGBPoints"]["BoxIn9"]["__uiPosition"].setValue( imath.V2f( 33.4218597, 19.2305679 ) ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["valQ2"], 'noduleLayout:section', 'left' ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["valQ2"], 'description', 'Quantize value into 2* number of slices' ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["valQ2"], 'label', 'val quantize' ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["valQ2"], 'presetNames', None ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["valQ2"], 'presetValues', None ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["valQ2"], 'plugValueWidget:type', None ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["valQ2"], 'nodule:type', '' ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["valQ2"], 'noduleLayout:visible', True ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["valQ2"], 'noduleLayout:label', None ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["valQ2"], 'renameable', True ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["valQ2"], 'deletable', True ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["valQ2"], 'layout:section', 'Settings.Gamut Cube Options' ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["valQ2"], 'layout:index', 10 ) __children["PlotRGBPoints"]["BoxIn10"]["name"].setValue( 'enableCube2' ) __children["PlotRGBPoints"]["BoxIn10"]["__in"].setInput( __children["PlotRGBPoints"]["enableCube2"] ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["BoxIn10"]["__in"], 'noduleLayout:section', 'left' ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["BoxIn10"]["__in"], 'userDefault', None ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["BoxIn10"]["__in"], 'description', '' ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["BoxIn10"]["__in"], 'label', 'enableCube2' ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["BoxIn10"]["__in"], 'presetNames', None ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["BoxIn10"]["__in"], 'presetValues', None ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["BoxIn10"]["__in"], 'plugValueWidget:type', None ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["BoxIn10"]["__in"], 'nodule:type', None ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["BoxIn10"]["__in"], 'noduleLayout:visible', True ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["BoxIn10"]["__in"], 'noduleLayout:label', None ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["BoxIn10"]["__in"], 'renameable', True ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["BoxIn10"]["__in"], 'deletable', True ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["BoxIn10"]["out"], 'noduleLayout:section', 'right' ) __children["PlotRGBPoints"]["BoxIn10"]["__uiPosition"].setValue( imath.V2f( 31.3747406, 18.0305691 ) ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["enableCube2"], 'noduleLayout:section', 'left' ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["enableCube2"], 'description', 'Enable a 2nd cube with individual quantization settings. ' ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["enableCube2"], 'label', 'enable cube 2' ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["enableCube2"], 'presetNames', None ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["enableCube2"], 'presetValues', None ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["enableCube2"], 'plugValueWidget:type', 'GafferUI.BoolPlugValueWidget' ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["enableCube2"], 'nodule:type', '' ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["enableCube2"], 'noduleLayout:visible', True ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["enableCube2"], 'noduleLayout:label', None ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["enableCube2"], 'renameable', True ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["enableCube2"], 'deletable', True ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["enableCube2"], 'layout:section', 'Settings.Gamut Cube Options' ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["enableCube2"], 'layout:index', 8 ) __children["PlotRGBPoints"]["BoxIn11"]["name"].setValue( 'enableCube' ) __children["PlotRGBPoints"]["BoxIn11"]["__in"].setInput( __children["PlotRGBPoints"]["enableCube"] ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["BoxIn11"]["__in"], 'noduleLayout:section', 'left' ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["BoxIn11"]["__in"], 'userDefault', None ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["BoxIn11"]["__in"], 'description', '' ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["BoxIn11"]["__in"], 'label', 'enableCube' ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["BoxIn11"]["__in"], 'presetNames', None ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["BoxIn11"]["__in"], 'presetValues', None ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["BoxIn11"]["__in"], 'plugValueWidget:type', None ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["BoxIn11"]["__in"], 'nodule:type', None ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["BoxIn11"]["__in"], 'noduleLayout:visible', True ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["BoxIn11"]["__in"], 'noduleLayout:label', None ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["BoxIn11"]["__in"], 'renameable', True ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["BoxIn11"]["__in"], 'deletable', True ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["BoxIn11"]["out"], 'noduleLayout:section', 'right' ) __children["PlotRGBPoints"]["BoxIn11"]["__uiPosition"].setValue( imath.V2f( 31.703352, 16.8305683 ) ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["enableCube"], 'noduleLayout:section', 'left' ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["enableCube"], 'description', 'Enable cube with quantization settings. ' ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["enableCube"], 'label', 'enable cube 1' ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["enableCube"], 'presetNames', None ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["enableCube"], 'presetValues', None ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["enableCube"], 'plugValueWidget:type', 'GafferUI.BoolPlugValueWidget' ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["enableCube"], 'noduleLayout:visible', True ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["enableCube"], 'noduleLayout:label', None ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["enableCube"], 'renameable', True ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["enableCube"], 'deletable', True ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["enableCube"], 'layout:section', 'Settings.Gamut Cube Options' ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["enableCube"], 'layout:index', 4 ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["enableCube"], 'divider', False ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["enableCube"], 'nodule:type', '' ) __children["PlotRGBPoints"]["BoxIn12"]["name"].setValue( 'scale2' ) __children["PlotRGBPoints"]["BoxIn12"]["__in"].setInput( __children["PlotRGBPoints"]["scale2"] ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["BoxIn12"]["__in"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["BoxIn12"]["__in"], 'noduleLayout:section', 'left' ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["BoxIn12"]["__in"], 'userDefault', None ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["BoxIn12"]["__in"], 'description', '' ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["BoxIn12"]["__in"], 'label', 'scale2' ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["BoxIn12"]["__in"], 'presetNames', None ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["BoxIn12"]["__in"], 'presetValues', None ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["BoxIn12"]["__in"], 'plugValueWidget:type', None ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["BoxIn12"]["__in"], 'nodule:type', None ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["BoxIn12"]["__in"], 'noduleLayout:visible', True ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["BoxIn12"]["__in"], 'noduleLayout:label', None ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["BoxIn12"]["__in"], 'renameable', True ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["BoxIn12"]["__in"], 'deletable', True ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["BoxIn12"]["out"], 'noduleLayout:section', 'right' ) __children["PlotRGBPoints"]["BoxIn12"]["__uiPosition"].setValue( imath.V2f( 33.2580414, 15.6305676 ) ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["scale2"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["scale2"], 'noduleLayout:section', 'left' ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["scale2"], 'description', 'scale of 2nd cube.' ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["scale2"], 'label', 'scale cube 2' ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["scale2"], 'presetNames', None ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["scale2"], 'presetValues', None ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["scale2"], 'plugValueWidget:type', None ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["scale2"], 'nodule:type', '' ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["scale2"], 'noduleLayout:visible', True ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["scale2"], 'noduleLayout:label', None ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["scale2"], 'renameable', True ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["scale2"], 'deletable', True ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["scale2"], 'layout:section', 'Settings.Gamut Cube Options' ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["scale2"], 'layout:index', 11 ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["ShuffleLayer"], 'description', 'Shuffle RGBA into specified layer name.' ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["ShuffleLayer"], 'noduleLayout:customGadget:addButtonTop:visible', False ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["ShuffleLayer"], 'noduleLayout:customGadget:addButtonBottom:visible', False ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["ShuffleLayer"], 'noduleLayout:customGadget:addButtonLeft:visible', False ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["ShuffleLayer"], 'noduleLayout:customGadget:addButtonRight:visible', False ) __children["PlotRGBPoints"]["ShuffleLayer"]["__uiPosition"].setValue( imath.V2f( 0.150000572, 22.0242157 ) ) __children["PlotRGBPoints"]["ShuffleLayer"]["ShuffleLayer"]["user"]["inLayer"].setInput( __children["PlotRGBPoints"]["ShuffleLayer"]["inLayer"] ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["ShuffleLayer"]["ShuffleLayer"]["user"]["inLayer"], 'nodule:type', '' ) __children["PlotRGBPoints"]["ShuffleLayer"]["ShuffleLayer"]["user"]["outLayer"].setInput( __children["PlotRGBPoints"]["ShuffleLayer"]["outLayer"] ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["ShuffleLayer"]["ShuffleLayer"]["user"]["outLayer"], 'nodule:type', '' ) __children["PlotRGBPoints"]["ShuffleLayer"]["ShuffleLayer"]["in"].setInput( __children["PlotRGBPoints"]["ShuffleLayer"]["BoxIn"]["out"] ) __children["PlotRGBPoints"]["ShuffleLayer"]["ShuffleLayer"]["channels"]["channel"]["out"].setInput( __children["PlotRGBPoints"]["ShuffleLayer"]["Expression3"]["__out"]["p1"] ) __children["PlotRGBPoints"]["ShuffleLayer"]["ShuffleLayer"]["channels"]["channel"]["in"].setInput( __children["PlotRGBPoints"]["ShuffleLayer"]["Expression3"]["__out"]["p0"] ) __children["PlotRGBPoints"]["ShuffleLayer"]["ShuffleLayer"]["channels"]["channel1"]["out"].setInput( __children["PlotRGBPoints"]["ShuffleLayer"]["Expression3"]["__out"]["p3"] ) __children["PlotRGBPoints"]["ShuffleLayer"]["ShuffleLayer"]["channels"]["channel1"]["in"].setInput( __children["PlotRGBPoints"]["ShuffleLayer"]["Expression3"]["__out"]["p2"] ) __children["PlotRGBPoints"]["ShuffleLayer"]["ShuffleLayer"]["channels"]["channel2"]["out"].setInput( __children["PlotRGBPoints"]["ShuffleLayer"]["Expression3"]["__out"]["p5"] ) __children["PlotRGBPoints"]["ShuffleLayer"]["ShuffleLayer"]["channels"]["channel2"]["in"].setInput( __children["PlotRGBPoints"]["ShuffleLayer"]["Expression3"]["__out"]["p4"] ) __children["PlotRGBPoints"]["ShuffleLayer"]["ShuffleLayer"]["channels"]["channel3"]["out"].setInput( __children["PlotRGBPoints"]["ShuffleLayer"]["Expression3"]["__out"]["p7"] ) __children["PlotRGBPoints"]["ShuffleLayer"]["ShuffleLayer"]["channels"]["channel3"]["in"].setInput( __children["PlotRGBPoints"]["ShuffleLayer"]["Expression3"]["__out"]["p6"] ) __children["PlotRGBPoints"]["ShuffleLayer"]["ShuffleLayer"]["__uiPosition"].setValue( imath.V2f( -435.811401, -36.8944016 ) ) __children["PlotRGBPoints"]["ShuffleLayer"]["in"].setInput( __children["PlotRGBPoints"]["BoxIn"]["out"] ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["ShuffleLayer"]["in"], 'nodule:type', 'GafferUI::StandardNodule' ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["ShuffleLayer"]["in"], 'description', 'The input image' ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["ShuffleLayer"]["in"], 'plugValueWidget:type', '' ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["ShuffleLayer"]["in"], 'noduleLayout:spacing', 2.0 ) __children["PlotRGBPoints"]["ShuffleLayer"]["Expression3"]["__in"]["p0"].setInput( __children["PlotRGBPoints"]["ShuffleLayer"]["ShuffleLayer"]["user"]["inLayer"] ) __children["PlotRGBPoints"]["ShuffleLayer"]["Expression3"]["__in"]["p1"].setInput( __children["PlotRGBPoints"]["ShuffleLayer"]["ShuffleLayer"]["user"]["outLayer"] ) __children["PlotRGBPoints"]["ShuffleLayer"]["Expression3"]["__uiPosition"].setValue( imath.V2f( -431.010468, -35.6086273 ) ) __children["PlotRGBPoints"]["ShuffleLayer"]["BoxIn"]["__in"].setInput( __children["PlotRGBPoints"]["ShuffleLayer"]["in"] ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["ShuffleLayer"]["BoxIn"]["__in"], 'deletable', True ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["ShuffleLayer"]["BoxIn"]["__in"], 'renameable', True ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["ShuffleLayer"]["BoxIn"]["__in"], 'nodule:type', 'GafferUI::StandardNodule' ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["ShuffleLayer"]["BoxIn"]["__in"], 'description', 'The input image' ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["ShuffleLayer"]["BoxIn"]["__in"], 'plugValueWidget:type', '' ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["ShuffleLayer"]["BoxIn"]["__in"], 'noduleLayout:spacing', 2.0 ) __children["PlotRGBPoints"]["ShuffleLayer"]["BoxIn"]["__uiPosition"].setValue( imath.V2f( -435.811401, -28.5623684 ) ) __children["PlotRGBPoints"]["ShuffleLayer"]["BoxOut"]["in"].setInput( __children["PlotRGBPoints"]["ShuffleLayer"]["ShuffleLayer"]["out"] ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["ShuffleLayer"]["BoxOut"]["__out"], 'description', 'The output image generated by this node.' ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["ShuffleLayer"]["BoxOut"]["__out"], 'nodule:type', 'GafferUI::StandardNodule' ) __children["PlotRGBPoints"]["ShuffleLayer"]["BoxOut"]["passThrough"].setInput( __children["PlotRGBPoints"]["ShuffleLayer"]["BoxIn"]["out"] ) __children["PlotRGBPoints"]["ShuffleLayer"]["BoxOut"]["enabled"].setInput( __children["PlotRGBPoints"]["ShuffleLayer"]["enabled"] ) __children["PlotRGBPoints"]["ShuffleLayer"]["BoxOut"]["__uiPosition"].setValue( imath.V2f( -434.310516, -45.2264328 ) ) __children["PlotRGBPoints"]["ShuffleLayer"]["out"].setInput( __children["PlotRGBPoints"]["ShuffleLayer"]["BoxOut"]["__out"] ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["ShuffleLayer"]["out"], 'description', 'The output image generated by this node.' ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["ShuffleLayer"]["out"], 'nodule:type', 'GafferUI::StandardNodule' ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["ShuffleLayer"]["inLayer"], 'deletable', True ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["ShuffleLayer"]["inLayer"], 'renameable', True ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["ShuffleLayer"]["inLayer"], 'nodule:type', '' ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["ShuffleLayer"]["inLayer"], 'description', '' ) __children["PlotRGBPoints"]["ShuffleLayer"]["outLayer"].setValue( 'pos' ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["ShuffleLayer"]["outLayer"], 'deletable', True ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["ShuffleLayer"]["outLayer"], 'renameable', True ) Gaffer.Metadata.registerValue( __children["PlotRGBPoints"]["ShuffleLayer"]["outLayer"], 'nodule:type', '' ) Gaffer.Metadata.registerValue( __children["oslNormLuminance"], 'description', '' ) Gaffer.Metadata.registerValue( __children["oslNormLuminance"], 'documentation:url', '' ) Gaffer.Metadata.registerValue( __children["oslNormLuminance"], 'noduleLayout:customGadget:addButtonTop:visible', False ) Gaffer.Metadata.registerValue( __children["oslNormLuminance"], 'noduleLayout:customGadget:addButtonBottom:visible', False ) Gaffer.Metadata.registerValue( __children["oslNormLuminance"], 'noduleLayout:customGadget:addButtonLeft:visible', False ) Gaffer.Metadata.registerValue( __children["oslNormLuminance"], 'noduleLayout:customGadget:addButtonRight:visible', False ) Gaffer.Metadata.registerValue( __children["oslNormLuminance"], 'nodeGadget:color', imath.Color3f( 0.209999993, 0.209999993, 0.209999993 ) ) __children["oslNormLuminance"]["__uiPosition"].setValue( imath.V2f( -149.711273, 19.9770508 ) ) __children["oslNormLuminance"]["BoxIn"]["__in"].setInput( __children["oslNormLuminance"]["in"] ) Gaffer.Metadata.registerValue( __children["oslNormLuminance"]["BoxIn"]["__in"], 'nodule:color', imath.Color3f( 0.689999998, 0.537800014, 0.228300005 ) ) Gaffer.Metadata.registerValue( __children["oslNormLuminance"]["BoxIn"]["__in"], 'noduleLayout:section', 'right' ) Gaffer.Metadata.registerValue( __children["oslNormLuminance"]["BoxIn"]["__in"], 'noduleLayout:visible', True ) Gaffer.Metadata.registerValue( __children["oslNormLuminance"]["BoxIn"]["__in"], 'noduleLayout:label', None ) Gaffer.Metadata.registerValue( __children["oslNormLuminance"]["BoxIn"]["__in"], 'renameable', True ) Gaffer.Metadata.registerValue( __children["oslNormLuminance"]["BoxIn"]["__in"], 'deletable', True ) Gaffer.Metadata.registerValue( __children["oslNormLuminance"]["BoxIn"]["__in"], 'label', 'out' ) Gaffer.Metadata.registerValue( __children["oslNormLuminance"]["BoxIn"]["__in"]["r"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) Gaffer.Metadata.registerValue( __children["oslNormLuminance"]["BoxIn"]["__in"]["g"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) Gaffer.Metadata.registerValue( __children["oslNormLuminance"]["BoxIn"]["__in"]["b"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) Gaffer.Metadata.registerValue( __children["oslNormLuminance"]["BoxIn"]["out"], 'noduleLayout:section', 'bottom' ) __children["oslNormLuminance"]["BoxIn"]["__uiPosition"].setValue( imath.V2f( -30.1665955, 1.79955077 ) ) __children["oslNormLuminance"]["in"].setInput( __children["Dot2"]["out"] ) Gaffer.Metadata.registerValue( __children["oslNormLuminance"]["in"], 'nodule:color', imath.Color3f( 0.689999998, 0.537800014, 0.228300005 ) ) Gaffer.Metadata.registerValue( __children["oslNormLuminance"]["in"], 'noduleLayout:section', 'top' ) Gaffer.Metadata.registerValue( __children["oslNormLuminance"]["in"], 'noduleLayout:visible', True ) Gaffer.Metadata.registerValue( __children["oslNormLuminance"]["in"], 'noduleLayout:label', None ) Gaffer.Metadata.registerValue( __children["oslNormLuminance"]["in"], 'renameable', True ) Gaffer.Metadata.registerValue( __children["oslNormLuminance"]["in"], 'deletable', True ) Gaffer.Metadata.registerValue( __children["oslNormLuminance"]["in"], 'label', 'out' ) Gaffer.Metadata.registerValue( __children["oslNormLuminance"]["in"], 'plugValueWidget:type', '' ) Gaffer.Metadata.registerValue( __children["oslNormLuminance"]["in"]["r"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) Gaffer.Metadata.registerValue( __children["oslNormLuminance"]["in"]["g"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) Gaffer.Metadata.registerValue( __children["oslNormLuminance"]["in"]["b"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) Gaffer.Metadata.registerValue( __children["oslNormLuminance"]["BoxOut"], 'noduleLayout:customGadget:addButtonTop:visible', True ) Gaffer.Metadata.registerValue( __children["oslNormLuminance"]["BoxOut"], 'noduleLayout:customGadget:addButtonBottom:visible', True ) Gaffer.Metadata.registerValue( __children["oslNormLuminance"]["BoxOut"], 'noduleLayout:customGadget:addButtonLeft:visible', True ) Gaffer.Metadata.registerValue( __children["oslNormLuminance"]["BoxOut"], 'noduleLayout:customGadget:addButtonRight:visible', True ) Gaffer.Metadata.registerValue( __children["oslNormLuminance"]["BoxOut"]["in"], 'noduleLayout:section', 'top' ) Gaffer.Metadata.registerValue( __children["oslNormLuminance"]["BoxOut"]["in"], 'compoundNumericNodule:childrenVisible', True ) __children["oslNormLuminance"]["BoxOut"]["in"]["r"].setInput( __children["oslNormLuminance"]["c"]["out"]["out"] ) __children["oslNormLuminance"]["BoxOut"]["in"]["g"].setInput( __children["oslNormLuminance"]["c"]["out"]["out"] ) __children["oslNormLuminance"]["BoxOut"]["in"]["b"].setInput( __children["oslNormLuminance"]["c"]["out"]["out"] ) Gaffer.Metadata.registerValue( __children["oslNormLuminance"]["BoxOut"]["__out"], 'nodule:color', imath.Color3f( 0.689999998, 0.537800014, 0.228300005 ) ) Gaffer.Metadata.registerValue( __children["oslNormLuminance"]["BoxOut"]["__out"], 'plugValueWidget:type', '' ) Gaffer.Metadata.registerValue( __children["oslNormLuminance"]["BoxOut"]["__out"], 'noduleLayout:section', 'bottom' ) Gaffer.Metadata.registerValue( __children["oslNormLuminance"]["BoxOut"]["__out"]["r"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) Gaffer.Metadata.registerValue( __children["oslNormLuminance"]["BoxOut"]["__out"]["g"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) Gaffer.Metadata.registerValue( __children["oslNormLuminance"]["BoxOut"]["__out"]["b"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) __children["oslNormLuminance"]["BoxOut"]["passThrough"].setInput( __children["oslNormLuminance"]["BoxIn"]["out"] ) Gaffer.Metadata.registerValue( __children["oslNormLuminance"]["BoxOut"]["passThrough"], 'noduleLayout:section', 'top' ) __children["oslNormLuminance"]["BoxOut"]["enabled"].setInput( __children["oslNormLuminance"]["enabled"] ) __children["oslNormLuminance"]["BoxOut"]["__uiPosition"].setValue( imath.V2f( -23.8544044, -11.6043367 ) ) __children["oslNormLuminance"]["out"].setInput( __children["oslNormLuminance"]["BoxOut"]["__out"] ) Gaffer.Metadata.registerValue( __children["oslNormLuminance"]["out"], 'nodule:color', imath.Color3f( 0.689999998, 0.537800014, 0.228300005 ) ) Gaffer.Metadata.registerValue( __children["oslNormLuminance"]["out"], 'plugValueWidget:type', '' ) Gaffer.Metadata.registerValue( __children["oslNormLuminance"]["out"], 'noduleLayout:section', 'bottom' ) Gaffer.Metadata.registerValue( __children["oslNormLuminance"]["out"]["r"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) Gaffer.Metadata.registerValue( __children["oslNormLuminance"]["out"]["g"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) Gaffer.Metadata.registerValue( __children["oslNormLuminance"]["out"]["b"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) Gaffer.Metadata.registerValue( __children["oslNormLuminance"]["c"], 'noduleLayout:customGadget:addButtonTop:visible', True ) Gaffer.Metadata.registerValue( __children["oslNormLuminance"]["c"], 'noduleLayout:customGadget:addButtonBottom:visible', True ) Gaffer.Metadata.registerValue( __children["oslNormLuminance"]["c"], 'noduleLayout:customGadget:addButtonLeft:visible', True ) Gaffer.Metadata.registerValue( __children["oslNormLuminance"]["c"], 'noduleLayout:customGadget:addButtonRight:visible', True ) __children["oslNormLuminance"]["c"]["parameters"]["in"].setInput( __children["oslNormLuminance"]["BoxIn"]["out"] ) __children["oslNormLuminance"]["c"]["parameters"]["w"].setInput( __children["oslNormLuminance"]["BoxIn1"]["out"] ) __children["oslNormLuminance"]["c"]["code"].setValue( 'float wg = 1-(w.r+w.b);\nout = in.r*w.r + in.g*wg + in.b*w.b;' ) __children["oslNormLuminance"]["c"]["__uiPosition"].setValue( imath.V2f( -30.4532413, -7.60239458 ) ) __children["oslNormLuminance"]["BoxIn1"]["name"].setValue( 'w' ) __children["oslNormLuminance"]["BoxIn1"]["__in"].setInput( __children["oslNormLuminance"]["w"] ) Gaffer.Metadata.registerValue( __children["oslNormLuminance"]["BoxIn1"]["__in"], 'nodule:color', imath.Color3f( 0.689999998, 0.537800014, 0.228300005 ) ) Gaffer.Metadata.registerValue( __children["oslNormLuminance"]["BoxIn1"]["__in"], 'noduleLayout:section', 'left' ) Gaffer.Metadata.registerValue( __children["oslNormLuminance"]["BoxIn1"]["__in"], 'userDefault', None ) Gaffer.Metadata.registerValue( __children["oslNormLuminance"]["BoxIn1"]["__in"], 'description', '' ) Gaffer.Metadata.registerValue( __children["oslNormLuminance"]["BoxIn1"]["__in"], 'label', 'w' ) Gaffer.Metadata.registerValue( __children["oslNormLuminance"]["BoxIn1"]["__in"], 'presetNames', None ) Gaffer.Metadata.registerValue( __children["oslNormLuminance"]["BoxIn1"]["__in"], 'presetValues', None ) Gaffer.Metadata.registerValue( __children["oslNormLuminance"]["BoxIn1"]["__in"], 'plugValueWidget:type', None ) Gaffer.Metadata.registerValue( __children["oslNormLuminance"]["BoxIn1"]["__in"], 'nodule:type', None ) Gaffer.Metadata.registerValue( __children["oslNormLuminance"]["BoxIn1"]["__in"], 'noduleLayout:visible', True ) Gaffer.Metadata.registerValue( __children["oslNormLuminance"]["BoxIn1"]["__in"], 'noduleLayout:label', None ) Gaffer.Metadata.registerValue( __children["oslNormLuminance"]["BoxIn1"]["__in"], 'renameable', True ) Gaffer.Metadata.registerValue( __children["oslNormLuminance"]["BoxIn1"]["__in"], 'deletable', True ) Gaffer.Metadata.registerValue( __children["oslNormLuminance"]["BoxIn1"]["__in"]["r"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) Gaffer.Metadata.registerValue( __children["oslNormLuminance"]["BoxIn1"]["__in"]["r"], 'noduleLayout:section', 'left' ) Gaffer.Metadata.registerValue( __children["oslNormLuminance"]["BoxIn1"]["__in"]["r"], 'userDefault', None ) Gaffer.Metadata.registerValue( __children["oslNormLuminance"]["BoxIn1"]["__in"]["r"], 'noduleLayout:label', 'w.r' ) Gaffer.Metadata.registerValue( __children["oslNormLuminance"]["BoxIn1"]["__in"]["g"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) Gaffer.Metadata.registerValue( __children["oslNormLuminance"]["BoxIn1"]["__in"]["g"], 'noduleLayout:section', 'left' ) Gaffer.Metadata.registerValue( __children["oslNormLuminance"]["BoxIn1"]["__in"]["g"], 'userDefault', None ) Gaffer.Metadata.registerValue( __children["oslNormLuminance"]["BoxIn1"]["__in"]["g"], 'noduleLayout:label', 'w.g' ) Gaffer.Metadata.registerValue( __children["oslNormLuminance"]["BoxIn1"]["__in"]["b"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) Gaffer.Metadata.registerValue( __children["oslNormLuminance"]["BoxIn1"]["__in"]["b"], 'noduleLayout:section', 'left' ) Gaffer.Metadata.registerValue( __children["oslNormLuminance"]["BoxIn1"]["__in"]["b"], 'userDefault', None ) Gaffer.Metadata.registerValue( __children["oslNormLuminance"]["BoxIn1"]["__in"]["b"], 'noduleLayout:label', 'w.b' ) Gaffer.Metadata.registerValue( __children["oslNormLuminance"]["BoxIn1"]["out"], 'noduleLayout:section', 'right' ) __children["oslNormLuminance"]["BoxIn1"]["__uiPosition"].setValue( imath.V2f( -39.0608864, -8.20239449 ) ) Gaffer.Metadata.registerValue( __children["oslNormLuminance"]["w"], 'nodule:color', imath.Color3f( 0.689999998, 0.537800014, 0.228300005 ) ) Gaffer.Metadata.registerValue( __children["oslNormLuminance"]["w"], 'noduleLayout:section', 'left' ) Gaffer.Metadata.registerValue( __children["oslNormLuminance"]["w"], 'description', '' ) Gaffer.Metadata.registerValue( __children["oslNormLuminance"]["w"], 'label', 'weights' ) Gaffer.Metadata.registerValue( __children["oslNormLuminance"]["w"], 'presetNames', None ) Gaffer.Metadata.registerValue( __children["oslNormLuminance"]["w"], 'presetValues', None ) Gaffer.Metadata.registerValue( __children["oslNormLuminance"]["w"], 'plugValueWidget:type', None ) Gaffer.Metadata.registerValue( __children["oslNormLuminance"]["w"], 'nodule:type', '' ) Gaffer.Metadata.registerValue( __children["oslNormLuminance"]["w"], 'noduleLayout:visible', True ) Gaffer.Metadata.registerValue( __children["oslNormLuminance"]["w"], 'noduleLayout:label', None ) Gaffer.Metadata.registerValue( __children["oslNormLuminance"]["w"], 'renameable', True ) Gaffer.Metadata.registerValue( __children["oslNormLuminance"]["w"], 'deletable', True ) Gaffer.Metadata.registerValue( __children["oslNormLuminance"]["w"]["r"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) Gaffer.Metadata.registerValue( __children["oslNormLuminance"]["w"]["r"], 'noduleLayout:section', 'left' ) Gaffer.Metadata.registerValue( __children["oslNormLuminance"]["w"]["r"], 'noduleLayout:label', 'w.r' ) Gaffer.Metadata.registerValue( __children["oslNormLuminance"]["w"]["g"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) Gaffer.Metadata.registerValue( __children["oslNormLuminance"]["w"]["g"], 'noduleLayout:section', 'left' ) Gaffer.Metadata.registerValue( __children["oslNormLuminance"]["w"]["g"], 'noduleLayout:label', 'w.g' ) Gaffer.Metadata.registerValue( __children["oslNormLuminance"]["w"]["b"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) Gaffer.Metadata.registerValue( __children["oslNormLuminance"]["w"]["b"], 'noduleLayout:section', 'left' ) Gaffer.Metadata.registerValue( __children["oslNormLuminance"]["w"]["b"], 'noduleLayout:label', 'w.b' ) Gaffer.Metadata.registerValue( __children["DivideColor"], 'noduleLayout:customGadget:addButtonTop:visible', True ) Gaffer.Metadata.registerValue( __children["DivideColor"], 'noduleLayout:customGadget:addButtonBottom:visible', True ) Gaffer.Metadata.registerValue( __children["DivideColor"], 'noduleLayout:customGadget:addButtonLeft:visible', True ) Gaffer.Metadata.registerValue( __children["DivideColor"], 'noduleLayout:customGadget:addButtonRight:visible', True ) __children["DivideColor"]["parameters"]["a"].setInput( __children["Dot2"]["out"] ) __children["DivideColor"]["parameters"]["b"].setInput( __children["oslNormLuminance"]["out"] ) __children["DivideColor"]["__uiPosition"].setValue( imath.V2f( -125.411926, 16.9897003 ) ) __children["Dot2"]["in"].setInput( __children["Dot5"]["out"] ) Gaffer.Metadata.registerValue( __children["Dot2"]["in"], 'noduleLayout:section', 'left' ) Gaffer.Metadata.registerValue( __children["Dot2"]["out"], 'noduleLayout:section', 'right' ) __children["Dot2"]["__uiPosition"].setValue( imath.V2f( -151.392365, 30.4214478 ) ) Gaffer.Metadata.registerValue( __children["MultiplyColor"], 'noduleLayout:customGadget:addButtonTop:visible', True ) Gaffer.Metadata.registerValue( __children["MultiplyColor"], 'noduleLayout:customGadget:addButtonBottom:visible', True ) Gaffer.Metadata.registerValue( __children["MultiplyColor"], 'noduleLayout:customGadget:addButtonLeft:visible', True ) Gaffer.Metadata.registerValue( __children["MultiplyColor"], 'noduleLayout:customGadget:addButtonRight:visible', True ) __children["MultiplyColor"]["parameters"]["a"].setInput( __children["Dot3"]["out"] ) __children["MultiplyColor"]["parameters"]["b"].setInput( __children["DivideColor"]["out"]["out"] ) __children["MultiplyColor"]["__uiPosition"].setValue( imath.V2f( -120.672821, -8.7500124 ) ) __children["Dot3"]["in"].setInput( __children["tonescale_daniele_evo1"]["h"] ) Gaffer.Metadata.registerValue( __children["Dot3"]["in"], 'noduleLayout:section', 'top' ) Gaffer.Metadata.registerValue( __children["Dot3"]["out"], 'noduleLayout:section', 'bottom' ) __children["Dot3"]["__uiPosition"].setValue( imath.V2f( -149.711273, -5.70606327 ) ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"], 'noduleLayout:customGadget:addButtonTop:visible', False ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"], 'noduleLayout:customGadget:addButtonBottom:visible', False ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"], 'noduleLayout:customGadget:addButtonLeft:visible', False ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"], 'noduleLayout:customGadget:addButtonRight:visible', False ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"], 'description', '' ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"], 'uiEditor:emptySections', IECore.StringVectorData( [ ] ) ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"], 'uiEditor:emptySectionIndices', IECore.IntVectorData( [ ] ) ) __children["tonescale_daniele_evo1"]["__uiPosition"].setValue( imath.V2f( -151.211273, 7.31777859 ) ) __children["tonescale_daniele_evo1"]["BoxIn"]["__in"].setInput( __children["tonescale_daniele_evo1"]["in"] ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["BoxIn"]["__in"], 'nodule:color', imath.Color3f( 0.689999998, 0.537800014, 0.228300005 ) ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["BoxIn"]["__in"], 'deletable', True ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["BoxIn"]["__in"], 'renameable', True ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["BoxIn"]["__in"], 'noduleLayout:section', 'bottom' ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["BoxIn"]["__in"], 'userDefault', None ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["BoxIn"]["__in"], 'description', '' ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["BoxIn"]["__in"], 'label', 'in' ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["BoxIn"]["__in"], 'presetNames', None ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["BoxIn"]["__in"], 'presetValues', None ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["BoxIn"]["__in"], 'noduleLayout:visible', True ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["BoxIn"]["__in"], 'noduleLayout:label', None ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["BoxIn"]["__in"], 'plugValueWidget:type', '' ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["BoxIn"]["__in"]["r"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["BoxIn"]["__in"]["r"], 'noduleLayout:section', 'left' ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["BoxIn"]["__in"]["r"], 'userDefault', None ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["BoxIn"]["__in"]["r"], 'noduleLayout:label', 'in.r' ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["BoxIn"]["__in"]["g"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["BoxIn"]["__in"]["g"], 'noduleLayout:section', 'left' ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["BoxIn"]["__in"]["g"], 'userDefault', None ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["BoxIn"]["__in"]["g"], 'noduleLayout:label', 'in.g' ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["BoxIn"]["__in"]["b"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["BoxIn"]["__in"]["b"], 'noduleLayout:section', 'left' ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["BoxIn"]["__in"]["b"], 'userDefault', None ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["BoxIn"]["__in"]["b"], 'noduleLayout:label', 'in.b' ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["BoxIn"]["out"], 'noduleLayout:section', 'bottom' ) __children["tonescale_daniele_evo1"]["BoxIn"]["__uiPosition"].setValue( imath.V2f( -136.661484, 51.6403198 ) ) __children["tonescale_daniele_evo1"]["in"].setInput( __children["oslNormLuminance"]["out"] ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["in"], 'nodule:color', imath.Color3f( 0.689999998, 0.537800014, 0.228300005 ) ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["in"], 'deletable', True ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["in"], 'renameable', True ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["in"], 'noduleLayout:section', 'top' ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["in"], 'userDefault', None ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["in"], 'description', '' ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["in"], 'label', 'in' ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["in"], 'presetNames', None ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["in"], 'presetValues', None ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["in"], 'noduleLayout:visible', True ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["in"], 'noduleLayout:label', None ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["in"], 'plugValueWidget:type', '' ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["in"], 'layout:section', 'Settings' ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["in"], 'layout:index', 0 ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["in"]["r"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["in"]["r"], 'noduleLayout:section', 'left' ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["in"]["r"], 'userDefault', None ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["in"]["r"], 'noduleLayout:label', 'in.r' ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["in"]["g"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["in"]["g"], 'noduleLayout:section', 'left' ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["in"]["g"], 'userDefault', None ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["in"]["g"], 'noduleLayout:label', 'in.g' ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["in"]["b"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["in"]["b"], 'noduleLayout:section', 'left' ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["in"]["b"], 'userDefault', None ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["in"]["b"], 'noduleLayout:label', 'in.b' ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["BoxOut"], 'noduleLayout:customGadget:addButtonTop:visible', True ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["BoxOut"], 'noduleLayout:customGadget:addButtonBottom:visible', True ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["BoxOut"], 'noduleLayout:customGadget:addButtonLeft:visible', True ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["BoxOut"], 'noduleLayout:customGadget:addButtonRight:visible', True ) __children["tonescale_daniele_evo1"]["BoxOut"]["name"].setValue( 'f' ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["BoxOut"]["in"], 'noduleLayout:section', 'top' ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["BoxOut"]["in"], 'compoundNumericNodule:childrenVisible', True ) __children["tonescale_daniele_evo1"]["BoxOut"]["in"]["r"].setInput( __children["tonescale_daniele_evo1"]["OSLCode"]["out"]["f"] ) __children["tonescale_daniele_evo1"]["BoxOut"]["in"]["g"].setInput( __children["tonescale_daniele_evo1"]["OSLCode"]["out"]["f"] ) __children["tonescale_daniele_evo1"]["BoxOut"]["in"]["b"].setInput( __children["tonescale_daniele_evo1"]["OSLCode"]["out"]["f"] ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["BoxOut"]["__out"], 'nodule:color', imath.Color3f( 0.689999998, 0.537800014, 0.228300005 ) ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["BoxOut"]["__out"], 'deletable', True ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["BoxOut"]["__out"], 'renameable', True ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["BoxOut"]["__out"], 'noduleLayout:section', 'top' ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["BoxOut"]["__out"], 'userDefault', None ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["BoxOut"]["__out"], 'description', '' ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["BoxOut"]["__out"], 'presetNames', None ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["BoxOut"]["__out"], 'presetValues', None ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["BoxOut"]["__out"], 'plugValueWidget:type', '' ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["BoxOut"]["__out"], 'nodule:type', None ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["BoxOut"]["__out"], 'noduleLayout:visible', True ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["BoxOut"]["__out"], 'noduleLayout:label', None ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["BoxOut"]["__out"]["r"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["BoxOut"]["__out"]["r"], 'noduleLayout:section', 'left' ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["BoxOut"]["__out"]["r"], 'userDefault', None ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["BoxOut"]["__out"]["r"], 'noduleLayout:label', 'c.r' ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["BoxOut"]["__out"]["g"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["BoxOut"]["__out"]["g"], 'noduleLayout:section', 'left' ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["BoxOut"]["__out"]["g"], 'userDefault', None ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["BoxOut"]["__out"]["g"], 'noduleLayout:label', 'c.g' ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["BoxOut"]["__out"]["b"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["BoxOut"]["__out"]["b"], 'noduleLayout:section', 'left' ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["BoxOut"]["__out"]["b"], 'userDefault', None ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["BoxOut"]["__out"]["b"], 'noduleLayout:label', 'c.b' ) __children["tonescale_daniele_evo1"]["BoxOut"]["passThrough"].setInput( __children["tonescale_daniele_evo1"]["BoxIn"]["out"] ) __children["tonescale_daniele_evo1"]["BoxOut"]["enabled"].setInput( __children["tonescale_daniele_evo1"]["enabled"] ) __children["tonescale_daniele_evo1"]["BoxOut"]["__uiPosition"].setValue( imath.V2f( -119.545837, 31.9306412 ) ) __children["tonescale_daniele_evo1"]["f"].setInput( __children["tonescale_daniele_evo1"]["BoxOut"]["__out"] ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["f"], 'nodule:color', imath.Color3f( 0.689999998, 0.537800014, 0.228300005 ) ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["f"], 'deletable', True ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["f"], 'renameable', True ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["f"], 'noduleLayout:section', 'bottom' ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["f"], 'userDefault', None ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["f"], 'description', '' ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["f"], 'presetNames', None ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["f"], 'presetValues', None ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["f"], 'plugValueWidget:type', '' ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["f"], 'nodule:type', None ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["f"], 'noduleLayout:visible', True ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["f"], 'noduleLayout:label', None ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["f"], 'layout:section', 'Settings' ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["f"], 'layout:index', 1 ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["f"]["r"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["f"]["r"], 'noduleLayout:section', 'left' ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["f"]["r"], 'userDefault', None ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["f"]["r"], 'noduleLayout:label', 'c.r' ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["f"]["g"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["f"]["g"], 'noduleLayout:section', 'left' ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["f"]["g"], 'userDefault', None ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["f"]["g"], 'noduleLayout:label', 'c.g' ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["f"]["b"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["f"]["b"], 'noduleLayout:section', 'left' ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["f"]["b"], 'userDefault', None ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["f"]["b"], 'noduleLayout:label', 'c.b' ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["enabled"], 'layout:section', 'Node' ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["enabled"], 'layout:index', 12 ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["OSLCode"], 'noduleLayout:customGadget:addButtonTop:visible', True ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["OSLCode"], 'noduleLayout:customGadget:addButtonBottom:visible', True ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["OSLCode"], 'noduleLayout:customGadget:addButtonLeft:visible', True ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["OSLCode"], 'noduleLayout:customGadget:addButtonRight:visible', True ) __children["tonescale_daniele_evo1"]["OSLCode"]["parameters"]["Y"].setInput( __children["tonescale_daniele_evo1"]["BoxIn"]["out"]["r"] ) __children["tonescale_daniele_evo1"]["OSLCode"]["parameters"]["s2"].setInput( __children["tonescale_daniele_evo1"]["Expression"]["__out"]["p1"] ) __children["tonescale_daniele_evo1"]["OSLCode"]["parameters"]["g"].setInput( __children["tonescale_daniele_evo1"]["Expression"]["__out"]["p2"] ) __children["tonescale_daniele_evo1"]["OSLCode"]["parameters"]["m2"].setInput( __children["tonescale_daniele_evo1"]["Expression"]["__out"]["p0"] ) __children["tonescale_daniele_evo1"]["OSLCode"]["parameters"]["t1"].setInput( __children["tonescale_daniele_evo1"]["Expression"]["__out"]["p3"] ) __children["tonescale_daniele_evo1"]["OSLCode"]["parameters"]["invert"].setInput( __children["tonescale_daniele_evo1"]["invert"] ) __children["tonescale_daniele_evo1"]["OSLCode"]["code"].setValue( 'if (invert == 0) {\n\tf = m2 * pow(max(0.0, Y) / (Y + s2), g);\n\th = max(0.0, f * f / (f + t1));\n} else {\n\th = (Y + sqrt(Y * (4.0 * t1 + Y))) / 2.0;\n\tf = s2 / (pow((m2 / h), (1.0 / g)) - 1.0);\n}' ) __children["tonescale_daniele_evo1"]["OSLCode"]["__uiPosition"].setValue( imath.V2f( -131.209885, 35.8591118 ) ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["Expression"], 'noduleLayout:customGadget:addButtonTop:visible', True ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["Expression"], 'noduleLayout:customGadget:addButtonBottom:visible', True ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["Expression"], 'noduleLayout:customGadget:addButtonLeft:visible', True ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["Expression"], 'noduleLayout:customGadget:addButtonRight:visible', True ) __children["tonescale_daniele_evo1"]["Expression"]["__in"]["p0"].setInput( __children["tonescale_daniele_evo1"]["rhit_min"] ) __children["tonescale_daniele_evo1"]["Expression"]["__in"]["p1"].setInput( __children["tonescale_daniele_evo1"]["rhit_max"] ) __children["tonescale_daniele_evo1"]["Expression"]["__in"]["p2"].setInput( __children["tonescale_daniele_evo1"]["n"] ) __children["tonescale_daniele_evo1"]["Expression"]["__in"]["p3"].setInput( __children["tonescale_daniele_evo1"]["n_r"] ) __children["tonescale_daniele_evo1"]["Expression"]["__in"]["p4"].setInput( __children["tonescale_daniele_evo1"]["t1"] ) __children["tonescale_daniele_evo1"]["Expression"]["__in"]["p5"].setInput( __children["tonescale_daniele_evo1"]["g"] ) __children["tonescale_daniele_evo1"]["Expression"]["__in"]["p6"].setInput( __children["tonescale_daniele_evo1"]["w_g"] ) __children["tonescale_daniele_evo1"]["Expression"]["__in"]["p7"].setInput( __children["tonescale_daniele_evo1"]["c_d"] ) __children["tonescale_daniele_evo1"]["Expression"]["__in"]["p8"].setInput( __children["tonescale_daniele_evo1"]["c"] ) __children["tonescale_daniele_evo1"]["Expression"]["__uiPosition"].setValue( imath.V2f( -139.64801, 38.4507561 ) ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["rhit_min"], 'nodule:type', '' ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["rhit_min"], 'layout:section', 'Settings' ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["rhit_min"], 'layout:index', 9 ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["rhit_max"], 'nodule:type', '' ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["rhit_max"], 'layout:section', 'Settings' ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["rhit_max"], 'layout:index', 10 ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["n"], 'nodule:type', '' ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["n"], 'layout:section', 'Settings' ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["n"], 'layout:index', 2 ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["n_r"], 'nodule:type', '' ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["n_r"], 'layout:section', 'Settings' ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["n_r"], 'layout:index', 3 ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["invert"], 'nodule:type', '' ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["invert"], 'layout:section', 'Settings' ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["invert"], 'layout:index', 11 ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["c_d"], 'nodule:type', '' ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["c_d"], 'layout:section', 'Settings' ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["c_d"], 'layout:index', 6 ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["c"], 'nodule:type', '' ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["c"], 'layout:section', 'Settings' ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["c"], 'layout:index', 5 ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["t1"], 'nodule:type', '' ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["t1"], 'layout:section', 'Settings' ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["t1"], 'layout:index', 8 ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["w_g"], 'nodule:type', '' ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["w_g"], 'layout:section', 'Settings' ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["w_g"], 'layout:index', 7 ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["g"], 'nodule:type', '' ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["g"], 'layout:section', 'Settings' ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["g"], 'layout:index', 4 ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["mmScaleFactor"], 'nodule:type', '' ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["BoxOut1"], 'noduleLayout:customGadget:addButtonTop:visible', True ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["BoxOut1"], 'noduleLayout:customGadget:addButtonBottom:visible', True ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["BoxOut1"], 'noduleLayout:customGadget:addButtonLeft:visible', True ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["BoxOut1"], 'noduleLayout:customGadget:addButtonRight:visible', True ) __children["tonescale_daniele_evo1"]["BoxOut1"]["name"].setValue( 'h' ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["BoxOut1"]["in"], 'noduleLayout:section', 'top' ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["BoxOut1"]["in"], 'compoundNumericNodule:childrenVisible', True ) __children["tonescale_daniele_evo1"]["BoxOut1"]["in"]["r"].setInput( __children["tonescale_daniele_evo1"]["OSLCode"]["out"]["h"] ) __children["tonescale_daniele_evo1"]["BoxOut1"]["in"]["g"].setInput( __children["tonescale_daniele_evo1"]["OSLCode"]["out"]["h"] ) __children["tonescale_daniele_evo1"]["BoxOut1"]["in"]["b"].setInput( __children["tonescale_daniele_evo1"]["OSLCode"]["out"]["h"] ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["BoxOut1"]["__out"], 'nodule:color', imath.Color3f( 0.689999998, 0.537800014, 0.228300005 ) ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["BoxOut1"]["__out"], 'deletable', True ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["BoxOut1"]["__out"], 'renameable', True ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["BoxOut1"]["__out"], 'noduleLayout:section', 'top' ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["BoxOut1"]["__out"], 'userDefault', None ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["BoxOut1"]["__out"], 'description', '' ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["BoxOut1"]["__out"], 'presetNames', None ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["BoxOut1"]["__out"], 'presetValues', None ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["BoxOut1"]["__out"], 'plugValueWidget:type', '' ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["BoxOut1"]["__out"], 'nodule:type', None ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["BoxOut1"]["__out"], 'noduleLayout:visible', True ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["BoxOut1"]["__out"], 'noduleLayout:label', None ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["BoxOut1"]["__out"]["r"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["BoxOut1"]["__out"]["r"], 'noduleLayout:section', 'left' ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["BoxOut1"]["__out"]["r"], 'userDefault', None ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["BoxOut1"]["__out"]["r"], 'noduleLayout:label', 'c.r' ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["BoxOut1"]["__out"]["g"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["BoxOut1"]["__out"]["g"], 'noduleLayout:section', 'left' ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["BoxOut1"]["__out"]["g"], 'userDefault', None ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["BoxOut1"]["__out"]["g"], 'noduleLayout:label', 'c.g' ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["BoxOut1"]["__out"]["b"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["BoxOut1"]["__out"]["b"], 'noduleLayout:section', 'left' ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["BoxOut1"]["__out"]["b"], 'userDefault', None ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["BoxOut1"]["__out"]["b"], 'noduleLayout:label', 'c.b' ) __children["tonescale_daniele_evo1"]["BoxOut1"]["passThrough"].setInput( __children["tonescale_daniele_evo1"]["BoxIn"]["out"] ) __children["tonescale_daniele_evo1"]["BoxOut1"]["enabled"].setInput( __children["tonescale_daniele_evo1"]["enabled"] ) __children["tonescale_daniele_evo1"]["BoxOut1"]["__uiPosition"].setValue( imath.V2f( -122.907066, 24.2564621 ) ) __children["tonescale_daniele_evo1"]["h"].setInput( __children["tonescale_daniele_evo1"]["BoxOut1"]["__out"] ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["h"], 'nodule:color', imath.Color3f( 0.689999998, 0.537800014, 0.228300005 ) ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["h"], 'deletable', True ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["h"], 'renameable', True ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["h"], 'noduleLayout:section', 'bottom' ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["h"], 'userDefault', None ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["h"], 'description', '' ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["h"], 'presetNames', None ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["h"], 'presetValues', None ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["h"], 'plugValueWidget:type', '' ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["h"], 'nodule:type', None ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["h"], 'noduleLayout:visible', True ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["h"], 'noduleLayout:label', None ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["h"]["r"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["h"]["r"], 'noduleLayout:section', 'left' ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["h"]["r"], 'userDefault', None ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["h"]["r"], 'noduleLayout:label', 'c.r' ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["h"]["g"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["h"]["g"], 'noduleLayout:section', 'left' ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["h"]["g"], 'userDefault', None ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["h"]["g"], 'noduleLayout:label', 'c.g' ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["h"]["b"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["h"]["b"], 'noduleLayout:section', 'left' ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["h"]["b"], 'userDefault', None ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["h"]["b"], 'noduleLayout:label', 'c.b' ) __children["tonescale_daniele_evo1"]["daniele_m_0"].setInput( __children["tonescale_daniele_evo1"]["Expression"]["__out"]["p4"] ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["daniele_m_0"], 'nodule:type', '' ) __children["tonescale_daniele_evo1"]["daniele_c_t"].setInput( __children["tonescale_daniele_evo1"]["Expression"]["__out"]["p5"] ) Gaffer.Metadata.registerValue( __children["tonescale_daniele_evo1"]["daniele_c_t"], 'nodule:type', '' ) Gaffer.Metadata.registerValue( __children["Dot4"], 'noduleLayout:customGadget:addButtonTop:visible', True ) Gaffer.Metadata.registerValue( __children["Dot4"], 'noduleLayout:customGadget:addButtonBottom:visible', True ) Gaffer.Metadata.registerValue( __children["Dot4"], 'noduleLayout:customGadget:addButtonLeft:visible', True ) Gaffer.Metadata.registerValue( __children["Dot4"], 'noduleLayout:customGadget:addButtonRight:visible', True ) __children["Dot4"]["in"].setInput( __children["inLayer"]["out"]["out"] ) Gaffer.Metadata.registerValue( __children["Dot4"]["in"], 'noduleLayout:section', 'left' ) Gaffer.Metadata.registerValue( __children["Dot4"]["out"], 'noduleLayout:section', 'right' ) __children["Dot4"]["__uiPosition"].setValue( imath.V2f( -301.086487, 69.3596115 ) ) Gaffer.Metadata.registerValue( __children["Dot5"], 'noduleLayout:customGadget:addButtonTop:visible', True ) Gaffer.Metadata.registerValue( __children["Dot5"], 'noduleLayout:customGadget:addButtonBottom:visible', True ) Gaffer.Metadata.registerValue( __children["Dot5"], 'noduleLayout:customGadget:addButtonLeft:visible', True ) Gaffer.Metadata.registerValue( __children["Dot5"], 'noduleLayout:customGadget:addButtonRight:visible', True ) __children["Dot5"]["in"].setInput( __children["Dot4"]["out"] ) Gaffer.Metadata.registerValue( __children["Dot5"]["in"], 'noduleLayout:section', 'left' ) Gaffer.Metadata.registerValue( __children["Dot5"]["out"], 'noduleLayout:section', 'right' ) __children["Dot5"]["__uiPosition"].setValue( imath.V2f( -157.892365, 69.359642 ) ) Gaffer.Metadata.registerValue( __children["HueSwatch"], 'uiEditor:emptySections', IECore.StringVectorData( [ ] ) ) Gaffer.Metadata.registerValue( __children["HueSwatch"], 'uiEditor:emptySectionIndices', IECore.IntVectorData( [ ] ) ) Gaffer.Metadata.registerValue( __children["HueSwatch"], 'noduleLayout:customGadget:addButtonTop:visible', False ) Gaffer.Metadata.registerValue( __children["HueSwatch"], 'noduleLayout:customGadget:addButtonLeft:visible', False ) Gaffer.Metadata.registerValue( __children["HueSwatch"], 'noduleLayout:customGadget:addButtonRight:visible', False ) Gaffer.Metadata.registerValue( __children["HueSwatch"], 'noduleLayout:customGadget:addButtonBottom:visible', False ) Gaffer.Metadata.registerValue( __children["HueSwatch"], 'description', 'Generate a UV Map of the incoming image.' ) __children["HueSwatch"]["__uiPosition"].setValue( imath.V2f( -52.4921112, 15.4844742 ) ) __children["HueSwatch"]["BoxOut"]["in"].setInput( __children["HueSwatch"]["OSLImage"]["out"] ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["BoxOut"]["in"], 'noduleLayout:section', 'top' ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["BoxOut"]["__out"], 'plugValueWidget:type', '' ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["BoxOut"]["__out"], 'noduleLayout:section', 'bottom' ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["BoxOut"]["passThrough"], 'noduleLayout:section', 'top' ) __children["HueSwatch"]["BoxOut"]["enabled"].setInput( __children["HueSwatch"]["enabled"] ) __children["HueSwatch"]["BoxOut"]["__uiPosition"].setValue( imath.V2f( -1.49999988, -30.6654415 ) ) __children["HueSwatch"]["out"].setInput( __children["HueSwatch"]["BoxOut"]["__out"] ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["out"], 'plugValueWidget:type', '' ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["out"], 'noduleLayout:section', 'bottom' ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["out"], 'layout:section', 'Settings' ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["out"], 'layout:index', 0 ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["enabled"], 'layout:section', 'Node' ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["enabled"], 'layout:index', 9 ) __children["HueSwatch"]["OSLImage"]["defaultFormat"]["displayWindow"]["min"].setValue( imath.V2i( 0, 0 ) ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["OSLImage"]["defaultFormat"], 'formatPlugValueWidget:mode', 'custom' ) __children["HueSwatch"]["OSLImage"]["defaultFormat"]["displayWindow"]["max"].setInput( __children["HueSwatch"]["Expression"]["__out"] ) __children["HueSwatch"]["OSLImage"]["channels"]["channel"]["value"].setInput( __children["HueSwatch"]["OSLCode"]["out"]["out"] ) __children["HueSwatch"]["OSLImage"]["__uiPosition"].setValue( imath.V2f( -3, -20.6320343 ) ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["OSLCode"], 'noduleLayout:customGadget:addButtonTop:visible', True ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["OSLCode"], 'noduleLayout:customGadget:addButtonBottom:visible', True ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["OSLCode"], 'noduleLayout:customGadget:addButtonLeft:visible', True ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["OSLCode"], 'noduleLayout:customGadget:addButtonRight:visible', True ) __children["HueSwatch"]["OSLCode"]["parameters"]["hue"].setInput( __children["HueSwatch"]["BoxIn"]["out"] ) __children["HueSwatch"]["OSLCode"]["parameters"]["valQ"].setInput( __children["HueSwatch"]["BoxIn3"]["out"] ) __children["HueSwatch"]["OSLCode"]["parameters"]["satQ"].setInput( __children["HueSwatch"]["BoxIn4"]["out"] ) __children["HueSwatch"]["OSLCode"]["parameters"]["valM"].setInput( __children["HueSwatch"]["BoxIn5"]["out"] ) __children["HueSwatch"]["OSLCode"]["parameters"]["steps"].setInput( __children["HueSwatch"]["BoxIn6"]["out"] ) __children["HueSwatch"]["OSLCode"]["parameters"]["valp"].setInput( __children["HueSwatch"]["BoxIn7"]["out"] ) __children["HueSwatch"]["OSLCode"]["parameters"]["mode"].setInput( __children["HueSwatch"]["BoxIn8"]["out"] ) __children["HueSwatch"]["OSLCode"]["code"].setValue( 'float quantize(float x, float steps) { \n\treturn round(x*steps+0.5001)/steps;\n}\nfloat qs = pow(2,steps);\n\nfloat sat = 1-v;\nfloat val = u;\n\nif (satQ) sat = quantize(sat, qs);\nif (valQ) val = quantize(val, qs);\n\n// "perceptual" nonlinear value\nval = pow(val, valp);\n\nif (mode==0) { // ramp color to black\n\tout = color("hsv", hue/6, sat, val);\n} else { // ramp color to white\n\tsat = pow(sat, valp);\n\tout = (1-val)*color(sat,0,0)+val;\n\tout = transformc("rgb", "hsv", out);\n\tout.r = out.r + hue/6;\n\tout = transformc("hsv", "rgb", out);\n}\n\nout *= pow(2,valM);\n\n' ) __children["HueSwatch"]["OSLCode"]["__uiPosition"].setValue( imath.V2f( -16.4621582, -20.0320339 ) ) __children["HueSwatch"]["BoxIn"]["name"].setValue( 'hue' ) __children["HueSwatch"]["BoxIn"]["__in"].setInput( __children["HueSwatch"]["hue"] ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["BoxIn"]["__in"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["BoxIn"]["__in"], 'noduleLayout:section', 'left' ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["BoxIn"]["__in"], 'userDefault', None ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["BoxIn"]["__in"], 'description', '' ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["BoxIn"]["__in"], 'label', 'hue' ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["BoxIn"]["__in"], 'presetNames', None ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["BoxIn"]["__in"], 'presetValues', None ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["BoxIn"]["__in"], 'plugValueWidget:type', None ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["BoxIn"]["__in"], 'nodule:type', None ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["BoxIn"]["__in"], 'noduleLayout:visible', True ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["BoxIn"]["__in"], 'noduleLayout:label', None ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["BoxIn"]["__in"], 'renameable', True ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["BoxIn"]["__in"], 'deletable', True ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["BoxIn"]["out"], 'noduleLayout:section', 'right' ) __children["HueSwatch"]["BoxIn"]["__uiPosition"].setValue( imath.V2f( -27.8483696, -17.032032 ) ) __children["HueSwatch"]["hue"].setInput( __children["Expression"]["__out"]["p0"] ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["hue"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["hue"], 'noduleLayout:section', 'left' ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["hue"], 'userDefault', None ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["hue"], 'description', 'Hue of the hue swatch. The range is 0-6. 0 is red, and each primary and secondary are 1 unit apart.\n0 == Red\n1 == Yellow\n2 == Green\n3 == Cyan\n4 == Blue\n5 == Magenta\n6 == Red' ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["hue"], 'label', 'hue' ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["hue"], 'presetNames', None ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["hue"], 'presetValues', None ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["hue"], 'plugValueWidget:type', None ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["hue"], 'nodule:type', '' ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["hue"], 'noduleLayout:visible', True ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["hue"], 'noduleLayout:label', None ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["hue"], 'renameable', True ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["hue"], 'deletable', True ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["hue"], 'layout:section', 'Settings' ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["hue"], 'layout:index', 2 ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["format"], 'nodule:type', '' ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["format"], 'layout:section', 'Settings' ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["format"], 'layout:index', 1 ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["format"], 'description', 'Specify the size of the output hue swatch. Height = 0 means square.' ) __children["HueSwatch"]["Expression"]["__in"]["p0"].setInput( __children["HueSwatch"]["format"]["x"] ) __children["HueSwatch"]["Expression"]["__in"]["p1"].setInput( __children["HueSwatch"]["format"]["y"] ) __children["HueSwatch"]["Expression"]["__uiPosition"].setValue( imath.V2f( 1.62688255, -19.4848537 ) ) __children["HueSwatch"]["BoxIn3"]["name"].setValue( 'valQ' ) __children["HueSwatch"]["BoxIn3"]["__in"].setInput( __children["HueSwatch"]["valQ"] ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["BoxIn3"]["__in"], 'noduleLayout:section', 'left' ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["BoxIn3"]["__in"], 'userDefault', None ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["BoxIn3"]["__in"], 'description', '' ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["BoxIn3"]["__in"], 'label', 'valQ' ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["BoxIn3"]["__in"], 'presetNames', None ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["BoxIn3"]["__in"], 'presetValues', None ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["BoxIn3"]["__in"], 'plugValueWidget:type', None ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["BoxIn3"]["__in"], 'nodule:type', None ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["BoxIn3"]["__in"], 'noduleLayout:visible', True ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["BoxIn3"]["__in"], 'noduleLayout:label', None ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["BoxIn3"]["__in"], 'renameable', True ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["BoxIn3"]["__in"], 'deletable', True ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["BoxIn3"]["out"], 'noduleLayout:section', 'right' ) __children["HueSwatch"]["BoxIn3"]["__uiPosition"].setValue( imath.V2f( -28.0905571, -18.2320328 ) ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["valQ"], 'noduleLayout:section', 'left' ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["valQ"], 'userDefault', None ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["valQ"], 'description', 'Quantize value into a number of discrete steps. 0 == no quantization.' ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["valQ"], 'label', 'quantize value' ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["valQ"], 'presetNames', None ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["valQ"], 'presetValues', None ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["valQ"], 'plugValueWidget:type', 'GafferUI.BoolPlugValueWidget' ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["valQ"], 'nodule:type', '' ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["valQ"], 'noduleLayout:visible', True ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["valQ"], 'noduleLayout:label', None ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["valQ"], 'renameable', True ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["valQ"], 'deletable', True ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["valQ"], 'layout:section', 'Settings' ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["valQ"], 'layout:index', 3 ) __children["HueSwatch"]["BoxIn4"]["name"].setValue( 'satQ' ) __children["HueSwatch"]["BoxIn4"]["__in"].setInput( __children["HueSwatch"]["satQ"] ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["BoxIn4"]["__in"], 'noduleLayout:section', 'left' ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["BoxIn4"]["__in"], 'userDefault', None ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["BoxIn4"]["__in"], 'description', '' ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["BoxIn4"]["__in"], 'label', 'satQ' ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["BoxIn4"]["__in"], 'presetNames', None ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["BoxIn4"]["__in"], 'presetValues', None ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["BoxIn4"]["__in"], 'plugValueWidget:type', None ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["BoxIn4"]["__in"], 'nodule:type', None ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["BoxIn4"]["__in"], 'noduleLayout:visible', True ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["BoxIn4"]["__in"], 'noduleLayout:label', None ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["BoxIn4"]["__in"], 'renameable', True ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["BoxIn4"]["__in"], 'deletable', True ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["BoxIn4"]["out"], 'noduleLayout:section', 'right' ) __children["HueSwatch"]["BoxIn4"]["__uiPosition"].setValue( imath.V2f( -28.1115532, -19.4320335 ) ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["satQ"], 'noduleLayout:section', 'left' ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["satQ"], 'userDefault', None ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["satQ"], 'description', 'Quantize saturation into a number of discrete steps. 0 == no quantization.' ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["satQ"], 'label', 'quantize sat' ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["satQ"], 'presetNames', None ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["satQ"], 'presetValues', None ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["satQ"], 'plugValueWidget:type', 'GafferUI.BoolPlugValueWidget' ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["satQ"], 'nodule:type', '' ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["satQ"], 'noduleLayout:visible', True ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["satQ"], 'noduleLayout:label', None ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["satQ"], 'renameable', True ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["satQ"], 'deletable', True ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["satQ"], 'layout:section', 'Settings' ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["satQ"], 'layout:index', 4 ) __children["HueSwatch"]["BoxIn5"]["name"].setValue( 'valM' ) __children["HueSwatch"]["BoxIn5"]["__in"].setInput( __children["HueSwatch"]["valM"] ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["BoxIn5"]["__in"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["BoxIn5"]["__in"], 'noduleLayout:section', 'left' ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["BoxIn5"]["__in"], 'userDefault', None ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["BoxIn5"]["__in"], 'description', '' ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["BoxIn5"]["__in"], 'label', 'valM' ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["BoxIn5"]["__in"], 'presetNames', None ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["BoxIn5"]["__in"], 'presetValues', None ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["BoxIn5"]["__in"], 'plugValueWidget:type', None ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["BoxIn5"]["__in"], 'nodule:type', None ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["BoxIn5"]["__in"], 'noduleLayout:visible', True ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["BoxIn5"]["__in"], 'noduleLayout:label', None ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["BoxIn5"]["__in"], 'renameable', True ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["BoxIn5"]["__in"], 'deletable', True ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["BoxIn5"]["out"], 'noduleLayout:section', 'right' ) __children["HueSwatch"]["BoxIn5"]["__uiPosition"].setValue( imath.V2f( -28.1420689, -20.6320305 ) ) __children["HueSwatch"]["valM"].setValue( 4.0 ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["valM"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["valM"], 'noduleLayout:section', 'left' ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["valM"], 'description', 'adjust exposure of swatch by valM stops' ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["valM"], 'label', 'exposure' ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["valM"], 'presetNames', None ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["valM"], 'presetValues', None ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["valM"], 'plugValueWidget:type', None ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["valM"], 'nodule:type', '' ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["valM"], 'noduleLayout:visible', True ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["valM"], 'noduleLayout:label', None ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["valM"], 'renameable', True ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["valM"], 'deletable', True ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["valM"], 'layout:section', 'Settings' ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["valM"], 'layout:index', 8 ) __children["HueSwatch"]["BoxIn6"]["name"].setValue( 'steps' ) __children["HueSwatch"]["BoxIn6"]["__in"].setInput( __children["HueSwatch"]["steps"] ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["BoxIn6"]["__in"], 'noduleLayout:section', 'left' ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["BoxIn6"]["__in"], 'userDefault', None ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["BoxIn6"]["__in"], 'description', '' ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["BoxIn6"]["__in"], 'label', 'steps' ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["BoxIn6"]["__in"], 'presetNames', None ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["BoxIn6"]["__in"], 'presetValues', None ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["BoxIn6"]["__in"], 'plugValueWidget:type', None ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["BoxIn6"]["__in"], 'nodule:type', None ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["BoxIn6"]["__in"], 'noduleLayout:visible', True ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["BoxIn6"]["__in"], 'noduleLayout:label', None ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["BoxIn6"]["__in"], 'renameable', True ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["BoxIn6"]["__in"], 'deletable', True ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["BoxIn6"]["out"], 'noduleLayout:section', 'right' ) __children["HueSwatch"]["BoxIn6"]["__uiPosition"].setValue( imath.V2f( -28.3451958, -21.8320312 ) ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["steps"], 'noduleLayout:section', 'left' ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["steps"], 'description', 'quantize into 2^steps discrete steps' ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["steps"], 'presetNames', None ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["steps"], 'presetValues', None ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["steps"], 'plugValueWidget:type', None ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["steps"], 'noduleLayout:visible', True ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["steps"], 'noduleLayout:label', None ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["steps"], 'renameable', True ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["steps"], 'deletable', True ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["steps"], 'layout:section', 'Settings' ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["steps"], 'layout:index', 7 ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["steps"], 'nodule:type', '' ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["steps"], 'label', 'steps' ) __children["HueSwatch"]["BoxIn7"]["name"].setValue( 'valp' ) __children["HueSwatch"]["BoxIn7"]["__in"].setInput( __children["HueSwatch"]["valp"] ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["BoxIn7"]["__in"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["BoxIn7"]["__in"], 'noduleLayout:section', 'left' ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["BoxIn7"]["__in"], 'userDefault', None ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["BoxIn7"]["__in"], 'description', '' ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["BoxIn7"]["__in"], 'label', 'valp' ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["BoxIn7"]["__in"], 'presetNames', None ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["BoxIn7"]["__in"], 'presetValues', None ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["BoxIn7"]["__in"], 'plugValueWidget:type', None ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["BoxIn7"]["__in"], 'nodule:type', None ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["BoxIn7"]["__in"], 'noduleLayout:visible', True ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["BoxIn7"]["__in"], 'noduleLayout:label', None ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["BoxIn7"]["__in"], 'renameable', True ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["BoxIn7"]["__in"], 'deletable', True ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["BoxIn7"]["out"], 'noduleLayout:section', 'right' ) __children["HueSwatch"]["BoxIn7"]["__uiPosition"].setValue( imath.V2f( -28.026104, -23.0320339 ) ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["valp"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["valp"], 'noduleLayout:section', 'left' ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["valp"], 'description', '' ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["valp"], 'label', 'power' ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["valp"], 'presetNames', None ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["valp"], 'presetValues', None ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["valp"], 'plugValueWidget:type', None ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["valp"], 'nodule:type', '' ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["valp"], 'noduleLayout:visible', True ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["valp"], 'noduleLayout:label', None ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["valp"], 'renameable', True ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["valp"], 'deletable', True ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["valp"], 'layout:section', 'Settings' ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["valp"], 'layout:index', 6 ) __children["HueSwatch"]["BoxIn8"]["name"].setValue( 'mode' ) __children["HueSwatch"]["BoxIn8"]["__in"].setInput( __children["HueSwatch"]["mode"] ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["BoxIn8"]["__in"], 'noduleLayout:section', 'left' ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["BoxIn8"]["__in"], 'userDefault', None ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["BoxIn8"]["__in"], 'description', '' ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["BoxIn8"]["__in"], 'label', 'mode' ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["BoxIn8"]["__in"], 'presetNames', None ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["BoxIn8"]["__in"], 'presetValues', None ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["BoxIn8"]["__in"], 'plugValueWidget:type', None ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["BoxIn8"]["__in"], 'nodule:type', None ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["BoxIn8"]["__in"], 'noduleLayout:visible', True ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["BoxIn8"]["__in"], 'noduleLayout:label', None ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["BoxIn8"]["__in"], 'renameable', True ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["BoxIn8"]["__in"], 'deletable', True ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["BoxIn8"]["out"], 'noduleLayout:section', 'right' ) __children["HueSwatch"]["BoxIn8"]["__uiPosition"].setValue( imath.V2f( -28.3593559, -29.532032 ) ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["mode"], 'noduleLayout:section', 'left' ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["mode"], 'userDefault', None ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["mode"], 'description', 'ramps from fully saturated color to white instead of to black.' ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["mode"], 'label', 'white mode' ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["mode"], 'presetNames', None ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["mode"], 'presetValues', None ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["mode"], 'plugValueWidget:type', 'GafferUI.BoolPlugValueWidget' ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["mode"], 'nodule:type', '' ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["mode"], 'noduleLayout:visible', True ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["mode"], 'noduleLayout:label', None ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["mode"], 'renameable', True ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["mode"], 'deletable', True ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["mode"], 'layout:section', 'Settings' ) Gaffer.Metadata.registerValue( __children["HueSwatch"]["mode"], 'layout:index', 5 ) Gaffer.Metadata.registerValue( __children["BFD"], 'noduleLayout:customGadget:addButtonTop:visible', False ) Gaffer.Metadata.registerValue( __children["BFD"], 'noduleLayout:customGadget:addButtonBottom:visible', False ) Gaffer.Metadata.registerValue( __children["BFD"], 'noduleLayout:customGadget:addButtonLeft:visible', False ) Gaffer.Metadata.registerValue( __children["BFD"], 'noduleLayout:customGadget:addButtonRight:visible', False ) Gaffer.Metadata.registerValue( __children["BFD"], 'description', 'Creates a contact sheet or "Big Fucking Deal" of all items in a grid, controlled by the loop:index context variable (exposed as the index plug). This index plug can be expression linked to control iteration over the input.' ) __children["BFD"]["__uiPosition"].setValue( imath.V2f( -52.4921112, 6.98447323 ) ) __children["BFD"]["BoxOut1"]["in"].setInput( __children["BFD"]["Loop"]["out"] ) Gaffer.Metadata.registerValue( __children["BFD"]["BoxOut1"]["in"], 'noduleLayout:section', 'top' ) Gaffer.Metadata.registerValue( __children["BFD"]["BoxOut1"]["__out"], 'plugValueWidget:type', '' ) __children["BFD"]["BoxOut1"]["passThrough"].setInput( __children["BFD"]["BoxIn"]["out"] ) __children["BFD"]["BoxOut1"]["enabled"].setInput( __children["BFD"]["enabled"] ) __children["BFD"]["BoxOut1"]["__uiPosition"].setValue( imath.V2f( -46.321003, -7.81532097 ) ) __children["BFD"]["out"].setInput( __children["BFD"]["BoxOut1"]["__out"] ) Gaffer.Metadata.registerValue( __children["BFD"]["out"], 'plugValueWidget:type', '' ) Gaffer.Metadata.registerValue( __children["BFD"]["Loop"], 'description', '' ) __children["BFD"]["Loop"]["in"].setInput( __children["BFD"]["Constant"]["out"] ) __children["BFD"]["Loop"]["next"].setInput( __children["BFD"]["Merge"]["out"] ) __children["BFD"]["Loop"]["iterations"].setInput( __children["BFD"]["Expression4"]["__out"]["p0"] ) __children["BFD"]["Loop"]["__uiPosition"].setValue( imath.V2f( -46.321003, 2.51171017 ) ) __children["BFD"]["Merge"]["in"][0].setInput( __children["BFD"]["Dot17"]["out"] ) __children["BFD"]["Merge"]["in"][1].setInput( __children["BFD"]["Offset"]["out"] ) __children["BFD"]["Merge"]["operation"].setValue( 8 ) __children["BFD"]["Merge"]["__uiPosition"].setValue( imath.V2f( -44.821003, 10.6757727 ) ) __children["BFD"]["Constant"]["format"]["displayWindow"]["min"].setValue( imath.V2i( 0, 0 ) ) Gaffer.Metadata.registerValue( __children["BFD"]["Constant"]["format"], 'formatPlugValueWidget:mode', 'custom' ) __children["BFD"]["Constant"]["format"]["displayWindow"]["max"].setInput( __children["BFD"]["Expression"]["__out"]["p0"] ) __children["BFD"]["Constant"]["__uiPosition"].setValue( imath.V2f( -56.5862541, 10.6757727 ) ) __children["BFD"]["Dot17"]["in"].setInput( __children["BFD"]["Loop"]["previous"] ) __children["BFD"]["Dot17"]["__uiPosition"].setValue( imath.V2f( -28.0155964, 7.973773 ) ) __children["BFD"]["Expression"]["__in"]["p0"].setInput( __children["BFD"]["BoxIn"]["out"]["format"] ) __children["BFD"]["Expression"]["__in"]["p1"].setInput( __children["BFD"]["div"] ) __children["BFD"]["Expression"]["__in"]["p2"].setInput( __children["BFD"]["grid"]["x"] ) __children["BFD"]["Expression"]["__in"]["p3"].setInput( __children["BFD"]["grid"]["y"] ) __children["BFD"]["Expression"]["__uiPosition"].setValue( imath.V2f( -56.6817436, 27.6646442 ) ) __children["BFD"]["Resize"]["in"].setInput( __children["BFD"]["BoxIn"]["out"] ) __children["BFD"]["Resize"]["format"]["displayWindow"]["min"].setValue( imath.V2i( 0, 0 ) ) Gaffer.Metadata.registerValue( __children["BFD"]["Resize"]["format"], 'formatPlugValueWidget:mode', 'custom' ) __children["BFD"]["Resize"]["format"]["displayWindow"]["max"].setInput( __children["BFD"]["Expression"]["__out"]["p3"] ) __children["BFD"]["Resize"]["filter"].setValue( 'blackman-harris' ) __children["BFD"]["Resize"]["__uiPosition"].setValue( imath.V2f( -44.821003, 23.5796432 ) ) __children["BFD"]["Expression4"]["__in"]["p0"].setInput( __children["BFD"]["grid"]["x"] ) __children["BFD"]["Expression4"]["__in"]["p1"].setInput( __children["BFD"]["grid"]["y"] ) __children["BFD"]["Expression4"]["__uiPosition"].setValue( imath.V2f( -41.4986076, 3.64738083 ) ) __children["BFD"]["BoxIn"]["__in"].setInput( __children["BFD"]["in"] ) Gaffer.Metadata.registerValue( __children["BFD"]["BoxIn"]["__in"], 'nodule:type', 'GafferUI::StandardNodule' ) Gaffer.Metadata.registerValue( __children["BFD"]["BoxIn"]["__in"], 'description', 'The input image' ) Gaffer.Metadata.registerValue( __children["BFD"]["BoxIn"]["__in"], 'plugValueWidget:type', '' ) Gaffer.Metadata.registerValue( __children["BFD"]["BoxIn"]["__in"], 'noduleLayout:spacing', 2.0 ) Gaffer.Metadata.registerValue( __children["BFD"]["BoxIn"]["out"], 'noduleLayout:section', 'bottom' ) __children["BFD"]["BoxIn"]["__uiPosition"].setValue( imath.V2f( -44.821003, 31.9116745 ) ) __children["BFD"]["in"].setInput( __children["HueSwatch"]["out"] ) Gaffer.Metadata.registerValue( __children["BFD"]["in"], 'nodule:type', 'GafferUI::StandardNodule' ) Gaffer.Metadata.registerValue( __children["BFD"]["in"], 'description', 'The input image' ) Gaffer.Metadata.registerValue( __children["BFD"]["in"], 'plugValueWidget:type', '' ) Gaffer.Metadata.registerValue( __children["BFD"]["in"], 'noduleLayout:spacing', 2.0 ) Gaffer.Metadata.registerValue( __children["BFD"]["in"], 'noduleLayout:section', 'top' ) Gaffer.Metadata.registerValue( __children["BFD"]["grid"], 'nodule:type', '' ) Gaffer.Metadata.registerValue( __children["BFD"]["grid"], 'label', 'grid' ) Gaffer.Metadata.registerValue( __children["BFD"]["div"], 'nodule:type', '' ) Gaffer.Metadata.registerValue( __children["BFD"]["div"], 'label', 'downres' ) __children["BFD"]["Offset"]["in"].setInput( __children["BFD"]["Resize"]["out"] ) __children["BFD"]["Offset"]["offset"]["x"].setInput( __children["BFD"]["Expression"]["__out"]["p1"] ) __children["BFD"]["Offset"]["offset"]["y"].setInput( __children["BFD"]["Expression"]["__out"]["p2"] ) __children["BFD"]["Offset"]["__uiPosition"].setValue( imath.V2f( -44.8209991, 17.9155807 ) ) __children["BFD"]["index"].setInput( __children["BFD"]["exprSetParentIDX"]["__out"]["p0"] ) Gaffer.Metadata.registerValue( __children["BFD"]["index"], 'nodule:type', '' ) Gaffer.Metadata.registerValue( __children["BFD"]["index"], 'label', 'index' ) Gaffer.Metadata.registerValue( __children["BFD"]["index"], 'description', 'this plug exposes the Loop Index context variable. It will increment for each item in the index, and can be expression linked to control things like frame number, switch input etc etc' ) __children["BFD"]["exprSetParentIDX"]["__uiPosition"].setValue( imath.V2f( -50.9259262, 3.64817715 ) ) Gaffer.Metadata.registerValue( __children["Dot6"], 'noduleLayout:customGadget:addButtonTop:visible', True ) Gaffer.Metadata.registerValue( __children["Dot6"], 'noduleLayout:customGadget:addButtonBottom:visible', True ) Gaffer.Metadata.registerValue( __children["Dot6"], 'noduleLayout:customGadget:addButtonLeft:visible', True ) Gaffer.Metadata.registerValue( __children["Dot6"], 'noduleLayout:customGadget:addButtonRight:visible', True ) __children["Dot6"]["in"].setInput( __children["oslGamutConvert1"]["out"] ) Gaffer.Metadata.registerValue( __children["Dot6"]["in"], 'noduleLayout:section', 'top' ) Gaffer.Metadata.registerValue( __children["Dot6"]["out"], 'noduleLayout:section', 'bottom' ) __children["Dot6"]["__uiPosition"].setValue( imath.V2f( -236.016678, -72.598053 ) ) Gaffer.Metadata.registerValue( __children["Dot7"], 'noduleLayout:customGadget:addButtonTop:visible', True ) Gaffer.Metadata.registerValue( __children["Dot7"], 'noduleLayout:customGadget:addButtonBottom:visible', True ) Gaffer.Metadata.registerValue( __children["Dot7"], 'noduleLayout:customGadget:addButtonLeft:visible', True ) Gaffer.Metadata.registerValue( __children["Dot7"], 'noduleLayout:customGadget:addButtonRight:visible', True ) __children["Dot7"]["in"].setInput( __children["BFD"]["out"] ) __children["Dot7"]["__uiPosition"].setValue( imath.V2f( -52.4921112, -5.04499722 ) ) __children["Expression"]["__engine"].setValue( 'python' ) __children["Expression"]["__expression"].setValue( '# context var for loop iteration index\nindex = parent["__in"]["p1"]\n\ngrid = parent["__in"]["p0"]\ntiles = grid.x*grid.y\n\nparent["__out"]["p0"] = index*(6/tiles)' ) __children["oslGamutConvert"]["Expression4"]["__engine"].setValue( 'python' ) __children["oslGamutConvert"]["Expression4"]["__expression"].setValue( 'import imath\n\n# M33f describing conversion from gamut to XYZ D65 (CAT02)\ngamuts = {\n\t\'ACES\': imath.M33f(0.93863094875027, -0.00574192055037, 0.01756689885177, 0.33809359492202, 0.72721390281144, -0.06530749773346, 0.00072312151134, 0.00081844184924, 1.0875161873993),\n\t\'ACEScg\': imath.M33f(0.65241871767191, 0.12717992553754, 0.17085728384222, 0.26806405919427, 0.67246447899262, 0.05947146181311, -0.0054699285105, 0.00518279997698, 1.0893448792934),\n\t\'FilmlightEGamut\': imath.M33f(0.70539685008777, 0.16404132830992, 0.08101774865398, 0.28013072409111, 0.8202066415496, -0.1003373656407, -0.10378151156916, -0.07290725702663, 1.2657465193557),\n\t\'DavinciWideGamut\': imath.M33f(0.70062239209367, 0.1487748151232, 0.1010587198348, 0.27411851090665, 0.87363189594044, -0.14775040684709, -0.09896291288323, -0.13789532507554, 1.3259159887187),\n\t\'Rec709\': imath.M33f(0.41239079926596, 0.35758433938388, 0.18048078840183, 0.21263900587151, 0.71516867876776, 0.07219231536073, 0.01933081871559, 0.11919477979463, 0.95053215224966),\n\t\'Rec2020\': imath.M33f(0.63695804830129, 0.14461690358621, 0.16888097516417, 0.26270021201127, 0.67799807151887, 0.05930171646986, 0, 0.02807269304909, 1.0609850577108),\n\t\'P3D65\': imath.M33f(0.48657094864822, 0.26566769316909, 0.19821728523436, 0.22897456406975, 0.69173852183651, 0.07928691409374, -0, 0.0451133818589, 1.043944368901),\n\t\'ArriWideGamut3\': imath.M33f(0.63800761928373, 0.2147038563371, 0.09774445143084, 0.29195377899972, 0.82384104151069, -0.11579482051041, 0.00279827903195, -0.06703423568896, 1.1532937074169),\n\t\'ArriWideGamut4\': imath.M33f(0.70485832040723, 0.12976029517046, 0.11583731147398, 0.25452417640403, 0.781477732712, -0.03600190911603, 0, 0, 1.0890577507599),\n\t\'RedWideGamutRGB\': imath.M33f(0.73527524590586, 0.06860941061396, 0.14657127053185, 0.28669409949993, 0.84297913401698, -0.12967323351691, -0.07968085687837, -0.34734321699443, 1.5160818246327),\n\t\'SonySGamut3\': imath.M33f(0.70648271319232, 0.12880104979056, 0.1151721640688, 0.27097967081349, 0.78660641122091, -0.0575860820344, -0.0096778453862, 0.00460003749252, 1.0941355586535),\n\t\'SonySGamut3.Cine\': imath.M33f(0.59908392075833, 0.24892551611542, 0.10244649017792, 0.21507582011559, 0.88506850174373, -0.10014432185932, -0.03206584954451, -0.02765839067949, 1.1487819909839),\n\t\'PanasonicVGamut\': imath.M33f(0.67964446987847, 0.15221141243975, 0.11860004473344, 0.26068555009037, 0.77489446332966, -0.03558001342003, -0.00931019821751, -0.00461246704363, 1.102980416021),\n\t\'DJIDGamut\': imath.M33f(0.64817196863381, 0.19405814982076, 0.1082258085971, 0.28300466236124, 0.81319605639174, -0.09620071875298, -0.01825836531363, -0.08316777849461, 1.1904838945681),\n\t\'BlackmagicWideGamut\': imath.M33f(0.60653836828278, 0.22041273532927, 0.12350482343962, 0.26799294005674, 0.83274840912338, -0.10074134918012, -0.02944255416011, -0.08661243027726, 1.2051127351972),\n}\n\n# input gamut\nmi = gamuts.get(parent["__in"]["p0"], imath.M33f())\n\n# output gamut\nmo = gamuts.get(parent["__in"]["p1"], imath.M33f())\n\nm = mo.invert() * mi\n\nparent["__out"]["p0"] = imath.V3f(m[0][0], m[0][1], m[0][2])\nparent["__out"]["p1"] = imath.V3f(m[1][0], m[1][1], m[1][2])\nparent["__out"]["p2"] = imath.V3f(m[2][0], m[2][1], m[2][2])' ) __children["oslGamutConvert1"]["Expression4"]["__engine"].setValue( 'python' ) __children["oslGamutConvert1"]["Expression4"]["__expression"].setValue( 'import imath\n\n# M33f describing conversion from gamut to XYZ D65 (CAT02)\ngamuts = {\n\t\'ACES\': imath.M33f(0.93863094875027, -0.00574192055037, 0.01756689885177, 0.33809359492202, 0.72721390281144, -0.06530749773346, 0.00072312151134, 0.00081844184924, 1.0875161873993),\n\t\'ACEScg\': imath.M33f(0.65241871767191, 0.12717992553754, 0.17085728384222, 0.26806405919427, 0.67246447899262, 0.05947146181311, -0.0054699285105, 0.00518279997698, 1.0893448792934),\n\t\'FilmlightEGamut\': imath.M33f(0.70539685008777, 0.16404132830992, 0.08101774865398, 0.28013072409111, 0.8202066415496, -0.1003373656407, -0.10378151156916, -0.07290725702663, 1.2657465193557),\n\t\'DavinciWideGamut\': imath.M33f(0.70062239209367, 0.1487748151232, 0.1010587198348, 0.27411851090665, 0.87363189594044, -0.14775040684709, -0.09896291288323, -0.13789532507554, 1.3259159887187),\n\t\'Rec709\': imath.M33f(0.41239079926596, 0.35758433938388, 0.18048078840183, 0.21263900587151, 0.71516867876776, 0.07219231536073, 0.01933081871559, 0.11919477979463, 0.95053215224966),\n\t\'Rec2020\': imath.M33f(0.63695804830129, 0.14461690358621, 0.16888097516417, 0.26270021201127, 0.67799807151887, 0.05930171646986, 0, 0.02807269304909, 1.0609850577108),\n\t\'P3D65\': imath.M33f(0.48657094864822, 0.26566769316909, 0.19821728523436, 0.22897456406975, 0.69173852183651, 0.07928691409374, -0, 0.0451133818589, 1.043944368901),\n\t\'ArriWideGamut3\': imath.M33f(0.63800761928373, 0.2147038563371, 0.09774445143084, 0.29195377899972, 0.82384104151069, -0.11579482051041, 0.00279827903195, -0.06703423568896, 1.1532937074169),\n\t\'ArriWideGamut4\': imath.M33f(0.70485832040723, 0.12976029517046, 0.11583731147398, 0.25452417640403, 0.781477732712, -0.03600190911603, 0, 0, 1.0890577507599),\n\t\'RedWideGamutRGB\': imath.M33f(0.73527524590586, 0.06860941061396, 0.14657127053185, 0.28669409949993, 0.84297913401698, -0.12967323351691, -0.07968085687837, -0.34734321699443, 1.5160818246327),\n\t\'SonySGamut3\': imath.M33f(0.70648271319232, 0.12880104979056, 0.1151721640688, 0.27097967081349, 0.78660641122091, -0.0575860820344, -0.0096778453862, 0.00460003749252, 1.0941355586535),\n\t\'SonySGamut3.Cine\': imath.M33f(0.59908392075833, 0.24892551611542, 0.10244649017792, 0.21507582011559, 0.88506850174373, -0.10014432185932, -0.03206584954451, -0.02765839067949, 1.1487819909839),\n\t\'PanasonicVGamut\': imath.M33f(0.67964446987847, 0.15221141243975, 0.11860004473344, 0.26068555009037, 0.77489446332966, -0.03558001342003, -0.00931019821751, -0.00461246704363, 1.102980416021),\n\t\'DJIDGamut\': imath.M33f(0.64817196863381, 0.19405814982076, 0.1082258085971, 0.28300466236124, 0.81319605639174, -0.09620071875298, -0.01825836531363, -0.08316777849461, 1.1904838945681),\n\t\'BlackmagicWideGamut\': imath.M33f(0.60653836828278, 0.22041273532927, 0.12350482343962, 0.26799294005674, 0.83274840912338, -0.10074134918012, -0.02944255416011, -0.08661243027726, 1.2051127351972),\n}\n\n# input gamut\nmi = gamuts.get(parent["__in"]["p0"], imath.M33f())\n\n# output gamut\nmo = gamuts.get(parent["__in"]["p1"], imath.M33f())\n\nm = mo.invert() * mi\n\nparent["__out"]["p0"] = imath.V3f(m[0][0], m[0][1], m[0][2])\nparent["__out"]["p1"] = imath.V3f(m[1][0], m[1][1], m[1][2])\nparent["__out"]["p2"] = imath.V3f(m[2][0], m[2][1], m[2][2])' ) __children["tonescale_daniele_evo"]["Expression"]["__engine"].setValue( 'OSL' ) __children["tonescale_daniele_evo"]["Expression"]["__expression"].setValue( 'float rhit_min = parent.__in.p0;\nfloat rhit_max = parent.__in.p1;\nfloat n = parent.__in.p2;\nfloat n_r = parent.__in.p3;\n\nfloat t1 = parent.__in.p4;\nfloat g = parent.__in.p5;\nfloat w_g = parent.__in.p6;\nfloat c_d = parent.__in.p7;\nfloat c = parent.__in.p8;\n\n\n// pre-calculate Daniele Evo constants\nfloat rhit = rhit_min + (rhit_max - rhit_min) * (log(n / n_r) / log(10000.0 / 100.0));\nfloat m0 = n / n_r;\nfloat m1 = 0.5 * (m0 + sqrt(m0 * (m0 + 4.0 * t1)));\nfloat u_ = pow((rhit / m1) / ((rhit / m1) + 1.0), g);\nfloat m = m1 / u_;\nfloat w_i = log(n / 100.0) / log(2.0);\nfloat ct = c_d * (1.0 + w_i * w_g) / n_r;\nfloat gip = 0.5 * (ct + sqrt(ct * (ct + 4.0 * t1)));\nfloat gipp2 = -m1 * pow(gip / m, 1.0 / g) / (pow(gip / m, 1.0 / g) - 1.0);\nfloat w2 = c / gipp2;\nfloat s2 = w2 * m1;\nfloat u2 = pow((rhit / m1) / ((rhit / m1) + w2), g);\nfloat m2 = m1 / u2;\n\nparent.__out.p0 = m2;\nparent.__out.p1 = s2;\nparent.__out.p2 = g;\nparent.__out.p3 = t1;\n\n// These are needed by the chroma compressor apparently\nparent.__out.p4 = m0;\nparent.__out.p5 = ct;' ) __children["oslGamutConvert3"]["Expression4"]["__engine"].setValue( 'python' ) __children["oslGamutConvert3"]["Expression4"]["__expression"].setValue( 'import imath\n\n# M33f describing conversion from gamut to XYZ D65 (CAT02)\ngamuts = {\n\t\'ACES\': imath.M33f(0.93863094875027, -0.00574192055037, 0.01756689885177, 0.33809359492202, 0.72721390281144, -0.06530749773346, 0.00072312151134, 0.00081844184924, 1.0875161873993),\n\t\'ACEScg\': imath.M33f(0.65241871767191, 0.12717992553754, 0.17085728384222, 0.26806405919427, 0.67246447899262, 0.05947146181311, -0.0054699285105, 0.00518279997698, 1.0893448792934),\n\t\'FilmlightEGamut\': imath.M33f(0.70539685008777, 0.16404132830992, 0.08101774865398, 0.28013072409111, 0.8202066415496, -0.1003373656407, -0.10378151156916, -0.07290725702663, 1.2657465193557),\n\t\'DavinciWideGamut\': imath.M33f(0.70062239209367, 0.1487748151232, 0.1010587198348, 0.27411851090665, 0.87363189594044, -0.14775040684709, -0.09896291288323, -0.13789532507554, 1.3259159887187),\n\t\'Rec709\': imath.M33f(0.41239079926596, 0.35758433938388, 0.18048078840183, 0.21263900587151, 0.71516867876776, 0.07219231536073, 0.01933081871559, 0.11919477979463, 0.95053215224966),\n\t\'Rec2020\': imath.M33f(0.63695804830129, 0.14461690358621, 0.16888097516417, 0.26270021201127, 0.67799807151887, 0.05930171646986, 0, 0.02807269304909, 1.0609850577108),\n\t\'P3D65\': imath.M33f(0.48657094864822, 0.26566769316909, 0.19821728523436, 0.22897456406975, 0.69173852183651, 0.07928691409374, -0, 0.0451133818589, 1.043944368901),\n\t\'ArriWideGamut3\': imath.M33f(0.63800761928373, 0.2147038563371, 0.09774445143084, 0.29195377899972, 0.82384104151069, -0.11579482051041, 0.00279827903195, -0.06703423568896, 1.1532937074169),\n\t\'ArriWideGamut4\': imath.M33f(0.70485832040723, 0.12976029517046, 0.11583731147398, 0.25452417640403, 0.781477732712, -0.03600190911603, 0, 0, 1.0890577507599),\n\t\'RedWideGamutRGB\': imath.M33f(0.73527524590586, 0.06860941061396, 0.14657127053185, 0.28669409949993, 0.84297913401698, -0.12967323351691, -0.07968085687837, -0.34734321699443, 1.5160818246327),\n\t\'SonySGamut3\': imath.M33f(0.70648271319232, 0.12880104979056, 0.1151721640688, 0.27097967081349, 0.78660641122091, -0.0575860820344, -0.0096778453862, 0.00460003749252, 1.0941355586535),\n\t\'SonySGamut3.Cine\': imath.M33f(0.59908392075833, 0.24892551611542, 0.10244649017792, 0.21507582011559, 0.88506850174373, -0.10014432185932, -0.03206584954451, -0.02765839067949, 1.1487819909839),\n\t\'PanasonicVGamut\': imath.M33f(0.67964446987847, 0.15221141243975, 0.11860004473344, 0.26068555009037, 0.77489446332966, -0.03558001342003, -0.00931019821751, -0.00461246704363, 1.102980416021),\n\t\'DJIDGamut\': imath.M33f(0.64817196863381, 0.19405814982076, 0.1082258085971, 0.28300466236124, 0.81319605639174, -0.09620071875298, -0.01825836531363, -0.08316777849461, 1.1904838945681),\n\t\'BlackmagicWideGamut\': imath.M33f(0.60653836828278, 0.22041273532927, 0.12350482343962, 0.26799294005674, 0.83274840912338, -0.10074134918012, -0.02944255416011, -0.08661243027726, 1.2051127351972),\n}\n\n# input gamut\nmi = gamuts.get(parent["__in"]["p0"], imath.M33f())\n\n# output gamut\nmo = gamuts.get(parent["__in"]["p1"], imath.M33f())\n\nm = mo.invert() * mi\n\nparent["__out"]["p0"] = imath.V3f(m[0][0], m[0][1], m[0][2])\nparent["__out"]["p1"] = imath.V3f(m[1][0], m[1][1], m[1][2])\nparent["__out"]["p2"] = imath.V3f(m[2][0], m[2][1], m[2][2])' ) __children["oslGamutConvert4"]["Expression4"]["__engine"].setValue( 'python' ) __children["oslGamutConvert4"]["Expression4"]["__expression"].setValue( 'import imath\n\n# M33f describing conversion from gamut to XYZ D65 (CAT02)\ngamuts = {\n\t\'ACES\': imath.M33f(0.93863094875027, -0.00574192055037, 0.01756689885177, 0.33809359492202, 0.72721390281144, -0.06530749773346, 0.00072312151134, 0.00081844184924, 1.0875161873993),\n\t\'ACEScg\': imath.M33f(0.65241871767191, 0.12717992553754, 0.17085728384222, 0.26806405919427, 0.67246447899262, 0.05947146181311, -0.0054699285105, 0.00518279997698, 1.0893448792934),\n\t\'FilmlightEGamut\': imath.M33f(0.70539685008777, 0.16404132830992, 0.08101774865398, 0.28013072409111, 0.8202066415496, -0.1003373656407, -0.10378151156916, -0.07290725702663, 1.2657465193557),\n\t\'DavinciWideGamut\': imath.M33f(0.70062239209367, 0.1487748151232, 0.1010587198348, 0.27411851090665, 0.87363189594044, -0.14775040684709, -0.09896291288323, -0.13789532507554, 1.3259159887187),\n\t\'Rec709\': imath.M33f(0.41239079926596, 0.35758433938388, 0.18048078840183, 0.21263900587151, 0.71516867876776, 0.07219231536073, 0.01933081871559, 0.11919477979463, 0.95053215224966),\n\t\'Rec2020\': imath.M33f(0.63695804830129, 0.14461690358621, 0.16888097516417, 0.26270021201127, 0.67799807151887, 0.05930171646986, 0, 0.02807269304909, 1.0609850577108),\n\t\'P3D65\': imath.M33f(0.48657094864822, 0.26566769316909, 0.19821728523436, 0.22897456406975, 0.69173852183651, 0.07928691409374, -0, 0.0451133818589, 1.043944368901),\n\t\'ArriWideGamut3\': imath.M33f(0.63800761928373, 0.2147038563371, 0.09774445143084, 0.29195377899972, 0.82384104151069, -0.11579482051041, 0.00279827903195, -0.06703423568896, 1.1532937074169),\n\t\'ArriWideGamut4\': imath.M33f(0.70485832040723, 0.12976029517046, 0.11583731147398, 0.25452417640403, 0.781477732712, -0.03600190911603, 0, 0, 1.0890577507599),\n\t\'RedWideGamutRGB\': imath.M33f(0.73527524590586, 0.06860941061396, 0.14657127053185, 0.28669409949993, 0.84297913401698, -0.12967323351691, -0.07968085687837, -0.34734321699443, 1.5160818246327),\n\t\'SonySGamut3\': imath.M33f(0.70648271319232, 0.12880104979056, 0.1151721640688, 0.27097967081349, 0.78660641122091, -0.0575860820344, -0.0096778453862, 0.00460003749252, 1.0941355586535),\n\t\'SonySGamut3.Cine\': imath.M33f(0.59908392075833, 0.24892551611542, 0.10244649017792, 0.21507582011559, 0.88506850174373, -0.10014432185932, -0.03206584954451, -0.02765839067949, 1.1487819909839),\n\t\'PanasonicVGamut\': imath.M33f(0.67964446987847, 0.15221141243975, 0.11860004473344, 0.26068555009037, 0.77489446332966, -0.03558001342003, -0.00931019821751, -0.00461246704363, 1.102980416021),\n\t\'DJIDGamut\': imath.M33f(0.64817196863381, 0.19405814982076, 0.1082258085971, 0.28300466236124, 0.81319605639174, -0.09620071875298, -0.01825836531363, -0.08316777849461, 1.1904838945681),\n\t\'BlackmagicWideGamut\': imath.M33f(0.60653836828278, 0.22041273532927, 0.12350482343962, 0.26799294005674, 0.83274840912338, -0.10074134918012, -0.02944255416011, -0.08661243027726, 1.2051127351972),\n}\n\n# input gamut\nmi = gamuts.get(parent["__in"]["p0"], imath.M33f())\n\n# output gamut\nmo = gamuts.get(parent["__in"]["p1"], imath.M33f())\n\nm = mo.invert() * mi\n\nparent["__out"]["p0"] = imath.V3f(m[0][0], m[0][1], m[0][2])\nparent["__out"]["p1"] = imath.V3f(m[1][0], m[1][1], m[1][2])\nparent["__out"]["p2"] = imath.V3f(m[2][0], m[2][1], m[2][2])' ) __children["PlotRGBPoints"]["Expression"]["__engine"].setValue( 'OSL' ) __children["PlotRGBPoints"]["Expression"]["__expression"].setValue( 'parent.__out.p0 = degrees(atan(sqrt(0.5)));\nparent.__out.p1 = parent.__in.p0;' ) __children["PlotRGBPoints"]["ShuffleLayer"]["Expression3"]["__engine"].setValue( 'python' ) __children["PlotRGBPoints"]["ShuffleLayer"]["Expression3"]["__expression"].setValue( 'def conform(l):\n\tif l == "RGBA" or l == "RGB" or l == "":\n\t\tl = ("R", "G", "B", "A")\n\telif l == "White":\n\t\tl = ("__white", "__white", "__white", "__white")\n\telif l == "Black":\n\t\tl = ("__black", "__black", "__black", "__black")\n\telse:\n\t\tl = (l+".R", l+".G", l+".B", l+".A")\n\treturn l\n\ninLayer = conform(parent["__in"]["p0"])\n\nparent["__out"]["p0"] = inLayer[0]\nparent["__out"]["p2"] = inLayer[1]\nparent["__out"]["p4"] = inLayer[2]\nparent["__out"]["p6"] = inLayer[3]\n\noutLayer = conform(parent["__in"]["p1"])\nparent["__out"]["p1"] = outLayer[0]\nparent["__out"]["p3"] = outLayer[1]\nparent["__out"]["p5"] = outLayer[2]\nparent["__out"]["p7"] = outLayer[3]\n\n' ) __children["tonescale_daniele_evo1"]["Expression"]["__engine"].setValue( 'OSL' ) __children["tonescale_daniele_evo1"]["Expression"]["__expression"].setValue( 'float rhit_min = parent.__in.p0;\nfloat rhit_max = parent.__in.p1;\nfloat n = parent.__in.p2;\nfloat n_r = parent.__in.p3;\n\nfloat t1 = parent.__in.p4;\nfloat g = parent.__in.p5;\nfloat w_g = parent.__in.p6;\nfloat c_d = parent.__in.p7;\nfloat c = parent.__in.p8;\n\n\n// pre-calculate Daniele Evo constants\nfloat rhit = rhit_min + (rhit_max - rhit_min) * (log(n / n_r) / log(10000.0 / 100.0));\nfloat m0 = n / n_r;\nfloat m1 = 0.5 * (m0 + sqrt(m0 * (m0 + 4.0 * t1)));\nfloat u_ = pow((rhit / m1) / ((rhit / m1) + 1.0), g);\nfloat m = m1 / u_;\nfloat w_i = log(n / 100.0) / log(2.0);\nfloat ct = c_d * (1.0 + w_i * w_g) / n_r;\nfloat gip = 0.5 * (ct + sqrt(ct * (ct + 4.0 * t1)));\nfloat gipp2 = -m1 * pow(gip / m, 1.0 / g) / (pow(gip / m, 1.0 / g) - 1.0);\nfloat w2 = c / gipp2;\nfloat s2 = w2 * m1;\nfloat u2 = pow((rhit / m1) / ((rhit / m1) + w2), g);\nfloat m2 = m1 / u2;\n\nparent.__out.p0 = m2;\nparent.__out.p1 = s2;\nparent.__out.p2 = g;\nparent.__out.p3 = t1;\n\n// These are needed by the chroma compressor apparently\nparent.__out.p4 = m0;\nparent.__out.p5 = ct;' ) __children["HueSwatch"]["Expression"]["__engine"].setValue( 'OSL' ) __children["HueSwatch"]["Expression"]["__expression"].setValue( 'int xSize = parent.__in.p0;\nparent.__out.p0 = xSize;\nint ySize = parent.__in.p1;\nif (ySize == 0) ySize = xSize;\nparent.__out.p1 = ySize;' ) __children["BFD"]["Expression"]["__engine"].setValue( 'python' ) __children["BFD"]["Expression"]["__expression"].setValue( 'import imath\n\nindex = context.get("loop:index", 0)\n\n# BFD grid size\ncols = parent["__in"]["p2"]\nrows = parent["__in"]["p3"]\ngrid_ar = cols/rows\n\n# input format\ninFmt = parent["__in"]["p0"]\ninFmt = imath.V2i(inFmt.width(), inFmt.height())\n\n# set format of individual BFD tile\ndiv = parent["__in"]["p1"]\ntileFmt = imath.V2i(round(inFmt.x/div), round(inFmt.y/div))\nparent["__out"]["p3"] = tileFmt\n\n# set BFD Background format based on grid dimensions\noutFmt = imath.V2i(tileFmt.x*cols, tileFmt.y*rows)\nparent["__out"]["p0"] = outFmt\n\n# set up translate for each tile. start from upper left.\nrow = index // cols\ncol = index % cols\nparent["__out"]["p1"] = tileFmt.x*col\nparent["__out"]["p2"] = tileFmt.y*(rows-1)-tileFmt.y*row\n\n\n' ) __children["BFD"]["Expression4"]["__engine"].setValue( 'OSL' ) __children["BFD"]["Expression4"]["__expression"].setValue( '// parent.__out.p0 = pow(0,2);\nparent.__out.p0 = parent.__in.p0*parent.__in.p1;' ) __children["BFD"]["exprSetParentIDX"]["__engine"].setValue( 'python' ) __children["BFD"]["exprSetParentIDX"]["__expression"].setValue( '# Set iteration index on parent for easy access\nindex = context.get("loop:index", 0)\nparent["__out"]["p0"] = index' ) del __children