import Gaffer import GafferImage import GafferOSL import IECore import imath Gaffer.Metadata.registerValue( parent, "serialiser:milestoneVersion", 1, persistent=False ) Gaffer.Metadata.registerValue( parent, "serialiser:majorVersion", 5, persistent=False ) Gaffer.Metadata.registerValue( parent, "serialiser:minorVersion", 9, 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 ) ) parent["variables"].addChild( Gaffer.NameValuePlug( "renderPass", Gaffer.StringPlug( "value", defaultValue = '', ), "renderPass", 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["ImageStats"] = GafferImage.ImageStats( "ImageStats" ) parent.addChild( __children["ImageStats"] ) __children["ImageStats"].addChild( Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["Merge"] = GafferImage.Merge( "Merge" ) parent.addChild( __children["Merge"] ) __children["Merge"]["in"].resize( 3 ) __children["Merge"].addChild( Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["LUT"] = GafferImage.LUT( "LUT" ) parent.addChild( __children["LUT"] ) __children["LUT"].addChild( Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["LUT1"] = GafferImage.LUT( "LUT1" ) parent.addChild( __children["LUT1"] ) __children["LUT1"].addChild( Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["ColorSpace"] = GafferImage.ColorSpace( "ColorSpace" ) parent.addChild( __children["ColorSpace"] ) __children["ColorSpace"].addChild( Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["Merge1"] = GafferImage.Merge( "Merge1" ) parent.addChild( __children["Merge1"] ) __children["Merge1"]["in"].resize( 3 ) __children["Merge1"].addChild( Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["ImageStats1"] = GafferImage.ImageStats( "ImageStats1" ) parent.addChild( __children["ImageStats1"] ) __children["ImageStats1"].addChild( Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["LinearGradient"] = Gaffer.Box( "LinearGradient" ) parent.addChild( __children["LinearGradient"] ) __children["LinearGradient"].addChild( Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["LinearGradient"].addChild( Gaffer.BoxOut( "BoxOut" ) ) __children["LinearGradient"]["BoxOut"].setup( GafferImage.ImagePlug( "in", ) ) __children["LinearGradient"]["BoxOut"].addChild( Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["LinearGradient"].addChild( GafferImage.ImagePlug( "out", direction = Gaffer.Plug.Direction.Out, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["LinearGradient"].addChild( Gaffer.BoolPlug( "enabled", defaultValue = True, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["LinearGradient"].addChild( GafferOSL.OSLImage( "OSLImage" ) ) __children["LinearGradient"]["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["LinearGradient"]["OSLImage"].addChild( Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["LinearGradient"].addChild( Gaffer.V2iPlug( "format", defaultValue = imath.V2i( 2048, 1024 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["LinearGradient"].addChild( Gaffer.Expression( "Expression" ) ) __children["LinearGradient"]["Expression"]["__in"].addChild( Gaffer.IntPlug( "p0", defaultValue = 0, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["LinearGradient"]["Expression"]["__in"].addChild( Gaffer.IntPlug( "p1", defaultValue = 0, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["LinearGradient"]["Expression"]["__out"].addChild( Gaffer.IntPlug( "p0", direction = Gaffer.Plug.Direction.Out, defaultValue = -2147483648, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["LinearGradient"]["Expression"]["__out"].addChild( Gaffer.IntPlug( "p1", direction = Gaffer.Plug.Direction.Out, defaultValue = -2147483648, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["LinearGradient"]["Expression"].addChild( Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["LinearGradient"].addChild( GafferOSL.OSLCode( "OSLCode" ) ) __children["LinearGradient"]["OSLCode"]["parameters"].addChild( Gaffer.FloatPlug( "exposure", defaultValue = 0.0, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["LinearGradient"]["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["LinearGradient"]["OSLCode"].addChild( Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["LinearGradient"].addChild( Gaffer.BoxIn( "BoxIn" ) ) __children["LinearGradient"]["BoxIn"].setup( Gaffer.FloatPlug( "out", defaultValue = 0.0, ) ) __children["LinearGradient"]["BoxIn"].addChild( Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["LinearGradient"].addChild( Gaffer.FloatPlug( "exposure", defaultValue = 0.0, flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["Dot1"] = Gaffer.Dot( "Dot1" ) parent.addChild( __children["Dot1"] ) __children["Dot1"].setup( GafferImage.ImagePlug( "in", ) ) __children["Dot1"].addChild( Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["Grade"] = GafferImage.Grade( "Grade" ) parent.addChild( __children["Grade"] ) __children["Grade"].addChild( Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["Grade1"] = GafferImage.Grade( "Grade1" ) parent.addChild( __children["Grade1"] ) __children["Grade1"].addChild( Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) __children["ColorSpace1"] = GafferImage.ColorSpace( "ColorSpace1" ) parent.addChild( __children["ColorSpace1"] ) __children["ColorSpace1"].addChild( Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) ) parent["variables"]["imageCataloguePort"]["value"].setValue( 42129 ) 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 ) Gaffer.Metadata.registerValue( parent["variables"]["renderPass"]["name"], 'readOnly', True ) Gaffer.Metadata.registerValue( parent["variables"]["renderPass"]["value"], 'plugValueWidget:type', 'GafferSceneUI.RenderPassEditor._RenderPassPlugValueWidget' ) __children["openColorIO"]["config"].setValue( 'ocio://studio-config-v1.0.0_aces-v1.3_ocio-v2.1' ) Gaffer.Metadata.registerValue( __children["ImageStats"], 'annotation:user:text', 'average error: {average.r}' ) Gaffer.Metadata.registerValue( __children["ImageStats"], 'annotation:user:color', imath.Color3f( 0.25999999, 0.25999999, 0.25999999 ) ) __children["ImageStats"]["in"].setInput( __children["Grade"]["out"] ) __children["ImageStats"]["areaSource"].setValue( 2 ) __children["ImageStats"]["area"].setValue( imath.Box2i( imath.V2i( 0, 0 ), imath.V2i( 1920, 1080 ) ) ) __children["ImageStats"]["__uiPosition"].setValue( imath.V2f( 88.7516556, -36.1821594 ) ) Gaffer.Metadata.registerValue( __children["Merge"], 'noduleLayout:customGadget:addButtonTop:visible', True ) Gaffer.Metadata.registerValue( __children["Merge"], 'noduleLayout:customGadget:addButtonBottom:visible', True ) Gaffer.Metadata.registerValue( __children["Merge"], 'noduleLayout:customGadget:addButtonLeft:visible', True ) Gaffer.Metadata.registerValue( __children["Merge"], 'noduleLayout:customGadget:addButtonRight:visible', True ) __children["Merge"]["in"][0].setInput( __children["LUT1"]["out"] ) __children["Merge"]["in"][1].setInput( __children["Dot1"]["out"] ) __children["Merge"]["operation"].setValue( 10 ) __children["Merge"]["__uiPosition"].setValue( imath.V2f( 74.3014908, -20.8601551 ) ) Gaffer.Metadata.registerValue( __children["LUT"], 'noduleLayout:customGadget:addButtonTop:visible', True ) Gaffer.Metadata.registerValue( __children["LUT"], 'noduleLayout:customGadget:addButtonBottom:visible', True ) Gaffer.Metadata.registerValue( __children["LUT"], 'noduleLayout:customGadget:addButtonLeft:visible', True ) Gaffer.Metadata.registerValue( __children["LUT"], 'noduleLayout:customGadget:addButtonRight:visible', True ) __children["LUT"]["in"].setInput( __children["Dot1"]["out"] ) __children["LUT"]["fileName"].setValue( '/work/color/data/ocio-configs/aces/aces-ocio-v2.4/oetf_acescct_to_linear.spi1d' ) __children["LUT"]["__uiPosition"].setValue( imath.V2f( 71.3014908, -4.53203011 ) ) __children["LUT1"]["in"].setInput( __children["LUT"]["out"] ) __children["LUT1"]["fileName"].setValue( '/work/color/data/ocio-configs/aces/aces-ocio-v2.4/oetf_acescct_to_linear.spi1d' ) __children["LUT1"]["direction"].setValue( 1 ) __children["LUT1"]["__uiPosition"].setValue( imath.V2f( 71.3014908, -12.6960926 ) ) __children["ColorSpace"]["in"].setInput( __children["Dot1"]["out"] ) __children["ColorSpace"]["inputSpace"].setValue( 'ACEScct' ) __children["ColorSpace"]["__uiPosition"].setValue( imath.V2f( 29.7000084, -4.53202963 ) ) Gaffer.Metadata.registerValue( __children["Merge1"], 'noduleLayout:customGadget:addButtonTop:visible', True ) Gaffer.Metadata.registerValue( __children["Merge1"], 'noduleLayout:customGadget:addButtonBottom:visible', True ) Gaffer.Metadata.registerValue( __children["Merge1"], 'noduleLayout:customGadget:addButtonLeft:visible', True ) Gaffer.Metadata.registerValue( __children["Merge1"], 'noduleLayout:customGadget:addButtonRight:visible', True ) __children["Merge1"]["in"][0].setInput( __children["ColorSpace1"]["out"] ) __children["Merge1"]["in"][1].setInput( __children["Dot1"]["out"] ) __children["Merge1"]["operation"].setValue( 10 ) __children["Merge1"]["__uiPosition"].setValue( imath.V2f( 39.8074379, -20.8601551 ) ) Gaffer.Metadata.registerValue( __children["ImageStats1"], 'annotation:user:text', 'average error: {average.r}' ) Gaffer.Metadata.registerValue( __children["ImageStats1"], 'annotation:user:color', imath.Color3f( 0.25999999, 0.25999999, 0.25999999 ) ) __children["ImageStats1"]["in"].setInput( __children["Grade1"]["out"] ) __children["ImageStats1"]["areaSource"].setValue( 2 ) __children["ImageStats1"]["area"].setValue( imath.Box2i( imath.V2i( 0, 0 ), imath.V2i( 1920, 1080 ) ) ) __children["ImageStats1"]["__uiPosition"].setValue( imath.V2f( 54.2864075, -37.188282 ) ) Gaffer.Metadata.registerValue( __children["LinearGradient"], 'uiEditor:emptySections', IECore.StringVectorData( [ ] ) ) Gaffer.Metadata.registerValue( __children["LinearGradient"], 'uiEditor:emptySectionIndices', IECore.IntVectorData( [ ] ) ) Gaffer.Metadata.registerValue( __children["LinearGradient"], 'noduleLayout:customGadget:addButtonTop:visible', False ) Gaffer.Metadata.registerValue( __children["LinearGradient"], 'noduleLayout:customGadget:addButtonLeft:visible', False ) Gaffer.Metadata.registerValue( __children["LinearGradient"], 'noduleLayout:customGadget:addButtonRight:visible', False ) Gaffer.Metadata.registerValue( __children["LinearGradient"], 'noduleLayout:customGadget:addButtonBottom:visible', False ) Gaffer.Metadata.registerValue( __children["LinearGradient"], 'description', 'Generate a linear gradient of the specified dimensions' ) Gaffer.Metadata.registerValue( __children["LinearGradient"], 'documentation:url', '' ) __children["LinearGradient"]["__uiPosition"].setValue( imath.V2f( 29.7000084, 7.80000114 ) ) __children["LinearGradient"]["BoxOut"]["in"].setInput( __children["LinearGradient"]["OSLImage"]["out"] ) Gaffer.Metadata.registerValue( __children["LinearGradient"]["BoxOut"]["in"], 'noduleLayout:section', 'top' ) Gaffer.Metadata.registerValue( __children["LinearGradient"]["BoxOut"]["__out"], 'plugValueWidget:type', '' ) Gaffer.Metadata.registerValue( __children["LinearGradient"]["BoxOut"]["__out"], 'noduleLayout:section', 'bottom' ) Gaffer.Metadata.registerValue( __children["LinearGradient"]["BoxOut"]["passThrough"], 'noduleLayout:section', 'top' ) __children["LinearGradient"]["BoxOut"]["enabled"].setInput( __children["LinearGradient"]["enabled"] ) __children["LinearGradient"]["BoxOut"]["__uiPosition"].setValue( imath.V2f( -1.49999988, -28.83218 ) ) __children["LinearGradient"]["out"].setInput( __children["LinearGradient"]["BoxOut"]["__out"] ) Gaffer.Metadata.registerValue( __children["LinearGradient"]["out"], 'plugValueWidget:type', '' ) Gaffer.Metadata.registerValue( __children["LinearGradient"]["out"], 'noduleLayout:section', 'bottom' ) Gaffer.Metadata.registerValue( __children["LinearGradient"]["out"], 'layout:section', 'Settings' ) Gaffer.Metadata.registerValue( __children["LinearGradient"]["out"], 'layout:index', 0 ) Gaffer.Metadata.registerValue( __children["LinearGradient"]["enabled"], 'layout:section', 'Node' ) Gaffer.Metadata.registerValue( __children["LinearGradient"]["enabled"], 'layout:index', 8 ) Gaffer.Metadata.registerValue( __children["LinearGradient"]["OSLImage"], 'noduleLayout:customGadget:addButtonTop:visible', True ) Gaffer.Metadata.registerValue( __children["LinearGradient"]["OSLImage"], 'noduleLayout:customGadget:addButtonBottom:visible', True ) Gaffer.Metadata.registerValue( __children["LinearGradient"]["OSLImage"], 'noduleLayout:customGadget:addButtonLeft:visible', True ) Gaffer.Metadata.registerValue( __children["LinearGradient"]["OSLImage"], 'noduleLayout:customGadget:addButtonRight:visible', True ) __children["LinearGradient"]["OSLImage"]["defaultFormat"]["displayWindow"]["min"].setValue( imath.V2i( 0, 0 ) ) Gaffer.Metadata.registerValue( __children["LinearGradient"]["OSLImage"]["defaultFormat"], 'formatPlugValueWidget:mode', 'custom' ) __children["LinearGradient"]["OSLImage"]["defaultFormat"]["displayWindow"]["max"].setInput( __children["LinearGradient"]["Expression"]["__out"] ) __children["LinearGradient"]["OSLImage"]["channels"]["channel"]["value"].setInput( __children["LinearGradient"]["OSLCode"]["out"]["out"] ) __children["LinearGradient"]["OSLImage"]["__uiPosition"].setValue( imath.V2f( -3, -20.5001488 ) ) Gaffer.Metadata.registerValue( __children["LinearGradient"]["format"], 'nodule:type', '' ) Gaffer.Metadata.registerValue( __children["LinearGradient"]["format"], 'layout:section', 'Settings' ) Gaffer.Metadata.registerValue( __children["LinearGradient"]["format"], 'layout:index', 1 ) Gaffer.Metadata.registerValue( __children["LinearGradient"]["format"], 'description', 'Specify the size of the output. Height = 0 means square.' ) Gaffer.Metadata.registerValue( __children["LinearGradient"]["format"], 'label', 'format' ) __children["LinearGradient"]["Expression"]["__in"]["p0"].setInput( __children["LinearGradient"]["format"]["x"] ) __children["LinearGradient"]["Expression"]["__in"]["p1"].setInput( __children["LinearGradient"]["format"]["y"] ) __children["LinearGradient"]["Expression"]["__uiPosition"].setValue( imath.V2f( 1.62688255, -19.4848537 ) ) Gaffer.Metadata.registerValue( __children["LinearGradient"]["OSLCode"], 'noduleLayout:customGadget:addButtonTop:visible', True ) Gaffer.Metadata.registerValue( __children["LinearGradient"]["OSLCode"], 'noduleLayout:customGadget:addButtonBottom:visible', True ) Gaffer.Metadata.registerValue( __children["LinearGradient"]["OSLCode"], 'noduleLayout:customGadget:addButtonLeft:visible', True ) Gaffer.Metadata.registerValue( __children["LinearGradient"]["OSLCode"], 'noduleLayout:customGadget:addButtonRight:visible', True ) __children["LinearGradient"]["OSLCode"]["parameters"]["exposure"].setInput( __children["LinearGradient"]["BoxIn"]["out"] ) __children["LinearGradient"]["OSLCode"]["code"].setValue( 'out = color(u,u,u);\nout = out*pow(2,exposure);' ) __children["LinearGradient"]["OSLCode"]["__uiPosition"].setValue( imath.V2f( -16.4621582, -19.9001484 ) ) __children["LinearGradient"]["BoxIn"]["name"].setValue( 'exposure' ) __children["LinearGradient"]["BoxIn"]["__in"].setInput( __children["LinearGradient"]["exposure"] ) Gaffer.Metadata.registerValue( __children["LinearGradient"]["BoxIn"]["__in"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) Gaffer.Metadata.registerValue( __children["LinearGradient"]["BoxIn"]["__in"], 'noduleLayout:section', 'left' ) Gaffer.Metadata.registerValue( __children["LinearGradient"]["BoxIn"]["__in"], 'userDefault', None ) Gaffer.Metadata.registerValue( __children["LinearGradient"]["BoxIn"]["__in"], 'description', '' ) Gaffer.Metadata.registerValue( __children["LinearGradient"]["BoxIn"]["__in"], 'label', 'exposure' ) Gaffer.Metadata.registerValue( __children["LinearGradient"]["BoxIn"]["__in"], 'presetNames', None ) Gaffer.Metadata.registerValue( __children["LinearGradient"]["BoxIn"]["__in"], 'presetValues', None ) Gaffer.Metadata.registerValue( __children["LinearGradient"]["BoxIn"]["__in"], 'plugValueWidget:type', None ) Gaffer.Metadata.registerValue( __children["LinearGradient"]["BoxIn"]["__in"], 'nodule:type', None ) Gaffer.Metadata.registerValue( __children["LinearGradient"]["BoxIn"]["__in"], 'noduleLayout:visible', True ) Gaffer.Metadata.registerValue( __children["LinearGradient"]["BoxIn"]["__in"], 'noduleLayout:label', None ) Gaffer.Metadata.registerValue( __children["LinearGradient"]["BoxIn"]["__in"], 'renameable', True ) Gaffer.Metadata.registerValue( __children["LinearGradient"]["BoxIn"]["__in"], 'deletable', True ) Gaffer.Metadata.registerValue( __children["LinearGradient"]["BoxIn"]["out"], 'noduleLayout:section', 'right' ) __children["LinearGradient"]["BoxIn"]["__uiPosition"].setValue( imath.V2f( -29.4201469, -19.9001484 ) ) Gaffer.Metadata.registerValue( __children["LinearGradient"]["exposure"], 'nodule:color', imath.Color3f( 0.246700004, 0.376199991, 0.469999999 ) ) Gaffer.Metadata.registerValue( __children["LinearGradient"]["exposure"], 'noduleLayout:section', 'left' ) Gaffer.Metadata.registerValue( __children["LinearGradient"]["exposure"], 'userDefault', None ) Gaffer.Metadata.registerValue( __children["LinearGradient"]["exposure"], 'description', '' ) Gaffer.Metadata.registerValue( __children["LinearGradient"]["exposure"], 'label', 'exposure' ) Gaffer.Metadata.registerValue( __children["LinearGradient"]["exposure"], 'presetNames', None ) Gaffer.Metadata.registerValue( __children["LinearGradient"]["exposure"], 'presetValues', None ) Gaffer.Metadata.registerValue( __children["LinearGradient"]["exposure"], 'plugValueWidget:type', None ) Gaffer.Metadata.registerValue( __children["LinearGradient"]["exposure"], 'nodule:type', '' ) Gaffer.Metadata.registerValue( __children["LinearGradient"]["exposure"], 'noduleLayout:visible', True ) Gaffer.Metadata.registerValue( __children["LinearGradient"]["exposure"], 'noduleLayout:label', None ) Gaffer.Metadata.registerValue( __children["LinearGradient"]["exposure"], 'renameable', True ) Gaffer.Metadata.registerValue( __children["LinearGradient"]["exposure"], 'deletable', True ) Gaffer.Metadata.registerValue( __children["Dot1"], 'noduleLayout:customGadget:addButtonTop:visible', True ) Gaffer.Metadata.registerValue( __children["Dot1"], 'noduleLayout:customGadget:addButtonBottom:visible', True ) Gaffer.Metadata.registerValue( __children["Dot1"], 'noduleLayout:customGadget:addButtonLeft:visible', True ) Gaffer.Metadata.registerValue( __children["Dot1"], 'noduleLayout:customGadget:addButtonRight:visible', True ) __children["Dot1"]["in"].setInput( __children["LinearGradient"]["out"] ) Gaffer.Metadata.registerValue( __children["Dot1"]["in"], 'noduleLayout:section', 'top' ) Gaffer.Metadata.registerValue( __children["Dot1"]["out"], 'noduleLayout:section', 'bottom' ) __children["Dot1"]["__uiPosition"].setValue( imath.V2f( 29.7000084, 2.80000138 ) ) Gaffer.Metadata.registerValue( __children["Grade"], 'annotation:user:text', 'multiply: {gain.r}' ) Gaffer.Metadata.registerValue( __children["Grade"], 'annotation:user:color', imath.Color3f( 0.25999999, 0.25999999, 0.25999999 ) ) Gaffer.MetadataAlgo.setNumericBookmark( __children["Grade"].scriptNode(), 6, __children["Grade"] ) __children["Grade"]["in"].setInput( __children["Merge"]["out"] ) __children["Grade"]["gain"]["r"].setValue( 1000000.0 ) __children["Grade"]["gain"]["g"].setInput( __children["Grade"]["gain"]["r"] ) __children["Grade"]["gain"]["b"].setInput( __children["Grade"]["gain"]["r"] ) __children["Grade"]["__uiPosition"].setValue( imath.V2f( 74.3014908, -28.0180969 ) ) Gaffer.Metadata.registerValue( __children["Grade1"], 'annotation:user:text', 'multiply: {gain.r}' ) Gaffer.Metadata.registerValue( __children["Grade1"], 'annotation:user:color', imath.Color3f( 0.25999999, 0.25999999, 0.25999999 ) ) __children["Grade1"]["in"].setInput( __children["Merge1"]["out"] ) __children["Grade1"]["gain"]["r"].setValue( 1000000.0 ) __children["Grade1"]["gain"]["g"].setInput( __children["Grade1"]["gain"]["r"] ) __children["Grade1"]["gain"]["b"].setInput( __children["Grade1"]["gain"]["r"] ) __children["Grade1"]["__uiPosition"].setValue( imath.V2f( 39.8074379, -29.0242176 ) ) __children["ColorSpace1"]["in"].setInput( __children["ColorSpace"]["out"] ) __children["ColorSpace1"]["outputSpace"].setValue( 'ACEScct' ) __children["ColorSpace1"]["__uiPosition"].setValue( imath.V2f( 29.7000084, -12.6960926 ) ) __children["LinearGradient"]["Expression"]["__engine"].setValue( 'OSL' ) __children["LinearGradient"]["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;' ) del __children