Hi,
looking at usd shading loading, I fear that I don't understand how it's works
I don't see how to import the lookdev in gaffer and apply it to my object
in other DCCs, like maya, i'm used to have the DCC update the "master" usd file, but i don't see how to do it in gaffer
so I also don't see how to setup where the usdlayer is supposed to be in the USD hierarchy
can you enlight me on what's wrong with my setup please ?
here is my little test scene :
import Gaffer
import GafferArnold
import GafferDispatch
import GafferImage
import GafferOSL
import GafferScene
import GafferUSD
import IECore
import imath
Gaffer.Metadata.registerValue( parent, "serialiser:milestoneVersion", 1, persistent=False )
Gaffer.Metadata.registerValue( parent, "serialiser:majorVersion", 2, persistent=False )
Gaffer.Metadata.registerValue( parent, "serialiser:minorVersion", 6, persistent=False )
Gaffer.Metadata.registerValue( parent, "serialiser:patchVersion", 0, persistent=False )
__children = {}
__children["SceneReader"] = GafferScene.SceneReader( "SceneReader" )
parent.addChild( __children["SceneReader"] )
__children["SceneReader"].addChild(
Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags
= Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) )
__children["USDLayerWriter"] = GafferUSD.USDLayerWriter( "USDLayerWriter" )
parent.addChild( __children["USDLayerWriter"] )
__children["USDLayerWriter"].addChild(
Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags
= Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) )
__children["ShaderAssignment"] = GafferScene.ShaderAssignment( "ShaderAssignment" )
parent.addChild( __children["ShaderAssignment"] )
__children["ShaderAssignment"].addChild(
Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags
= Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) )
__children["shd_BLUE"] = GafferArnold.ArnoldShader( "shd_BLUE" )
parent.addChild( __children["shd_BLUE"] )
__children["shd_BLUE"].loadShader( "standard_surface" )
__children["shd_BLUE"].addChild(
Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags
= Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) )
__children["PathFilter"] = GafferScene.PathFilter( "PathFilter" )
parent.addChild( __children["PathFilter"] )
__children["PathFilter"].addChild(
Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags
= Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) )
__children["ShaderAssignment1"] = GafferScene.ShaderAssignment( "ShaderAssignment1" )
parent.addChild( __children["ShaderAssignment1"] )
__children["ShaderAssignment1"].addChild(
Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags
= Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) )
__children["PathFilter1"] = GafferScene.PathFilter( "PathFilter1" )
parent.addChild( __children["PathFilter1"] )
__children["PathFilter1"].addChild(
Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags
= Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) )
__children["shd_RED"] = GafferArnold.ArnoldShader( "shd_RED" )
parent.addChild( __children["shd_RED"] )
__children["shd_RED"].loadShader( "standard_surface" )
__children["shd_RED"].addChild(
Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags
= Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) )
__children["Outputs"] = GafferScene.Outputs( "Outputs" )
parent.addChild( __children["Outputs"] )
__children["Outputs"]["outputs"].addChild(
Gaffer.ValuePlug( "output1", flags = Gaffer.Plug.Flags.Default |
Gaffer.Plug.Flags.Dynamic, ) )
__children["Outputs"]["outputs"]["output1"].addChild(
Gaffer.StringPlug( "name", defaultValue = '', flags =
Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) )
__children["Outputs"]["outputs"]["output1"].addChild(
Gaffer.BoolPlug( "active", defaultValue = True, flags =
Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) )
__children["Outputs"]["outputs"]["output1"].addChild(
Gaffer.StringPlug( "fileName", defaultValue = '', flags =
Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) )
__children["Outputs"]["outputs"]["output1"].addChild(
Gaffer.StringPlug( "type", defaultValue = '', flags =
Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) )
__children["Outputs"]["outputs"]["output1"].addChild(
Gaffer.StringPlug( "data", defaultValue = '', flags =
Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) )
__children["Outputs"]["outputs"]["output1"].addChild(
Gaffer.CompoundDataPlug( "parameters", flags =
Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) )
__children["Outputs"]["outputs"]["output1"]["parameters"].addChild(
Gaffer.NameValuePlug( "driverType", Gaffer.StringPlug( "value",
defaultValue = 'ClientDisplayDriver', flags = Gaffer.Plug.Flags.Default |
Gaffer.Plug.Flags.Dynamic, ), "driverType", Gaffer.Plug.Flags.Default |
Gaffer.Plug.Flags.Dynamic ) )
__children["Outputs"]["outputs"]["output1"]["parameters"].addChild(
Gaffer.NameValuePlug( "displayPort", Gaffer.StringPlug( "value",
defaultValue = '${image:catalogue:port}', flags =
Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ), "displayPort",
Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic ) )
__children["Outputs"]["outputs"]["output1"]["parameters"].addChild(
Gaffer.NameValuePlug( "displayHost", Gaffer.StringPlug( "value",
defaultValue = 'localhost', flags = Gaffer.Plug.Flags.Default |
Gaffer.Plug.Flags.Dynamic, ), "displayHost", Gaffer.Plug.Flags.Default |
Gaffer.Plug.Flags.Dynamic ) )
__children["Outputs"]["outputs"]["output1"]["parameters"].addChild(
Gaffer.NameValuePlug( "layerPerLightGroup", Gaffer.BoolPlug( "value",
defaultValue = False, flags = Gaffer.Plug.Flags.Default |
Gaffer.Plug.Flags.Dynamic, ), "layerPerLightGroup",
Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic ) )
__children["Outputs"]["outputs"]["output1"]["parameters"].addChild(
Gaffer.NameValuePlug( "remoteDisplayType", Gaffer.StringPlug( "value",
defaultValue = 'GafferImage::GafferDisplayDriver', flags =
Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ),
"remoteDisplayType", Gaffer.Plug.Flags.Default |
Gaffer.Plug.Flags.Dynamic ) )
__children["Outputs"].addChild(
Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags =
Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) )
__children["InteractiveArnoldRender"] = GafferArnold.InteractiveArnoldRender( "InteractiveArnoldRender" )
parent.addChild( __children["InteractiveArnoldRender"] )
__children["InteractiveArnoldRender"].addChild(
Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags
= Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) )
__children["Catalogue"] = GafferImage.Catalogue( "Catalogue" )
parent.addChild( __children["Catalogue"] )
__children["Catalogue"]["images"].addChild(
GafferImage.Catalogue.Image( "Image", flags = Gaffer.Plug.Flags.Default
| Gaffer.Plug.Flags.Dynamic, ) )
__children["Catalogue"]["images"].addChild(
GafferImage.Catalogue.Image( "Image1", flags =
Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) )
__children["Catalogue"]["images"].addChild(
GafferImage.Catalogue.Image( "Image2", flags =
Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) )
__children["Catalogue"]["images"].addChild(
GafferImage.Catalogue.Image( "Image3", flags =
Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) )
__children["Catalogue"]["images"].addChild(
GafferImage.Catalogue.Image( "Image4", flags =
Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) )
__children["Catalogue"]["images"].addChild(
GafferImage.Catalogue.Image( "Image5", flags =
Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) )
__children["Catalogue"].addChild(
Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags
= Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) )
__children["MergeScenes"] = GafferScene.MergeScenes( "MergeScenes" )
parent.addChild( __children["MergeScenes"] )
__children["MergeScenes"]["in"].addChild(
GafferScene.ScenePlug( "in2", flags = Gaffer.Plug.Flags.Default |
Gaffer.Plug.Flags.Dynamic, ) )
__children["MergeScenes"]["in"].addChild(
GafferScene.ScenePlug( "in3", flags = Gaffer.Plug.Flags.Default |
Gaffer.Plug.Flags.Dynamic, ) )
__children["MergeScenes"].addChild(
Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags =
Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) )
__children["Camera"] = GafferScene.Camera( "Camera" )
parent.addChild( __children["Camera"] )
__children["Camera"].addChild(
Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags
= Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) )
__children["ArnoldOptions"] = GafferArnold.ArnoldOptions( "ArnoldOptions" )
parent.addChild( __children["ArnoldOptions"] )
__children["ArnoldOptions"].addChild(
Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags
= Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) )
__children["StandardOptions"] = GafferScene.StandardOptions( "StandardOptions" )
parent.addChild( __children["StandardOptions"] )
__children["StandardOptions"].addChild(
Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags
= Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) )
__children["SceneWriter"] = GafferScene.SceneWriter( "SceneWriter" )
parent.addChild( __children["SceneWriter"] )
__children["SceneWriter"].addChild(
Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags
= Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) )
__children["Load_Geo"] = GafferScene.SceneReader( "Load_Geo" )
parent.addChild( __children["Load_Geo"] )
__children["Load_Geo"].addChild(
Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags
= Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) )
__children["load_Layer"] = GafferScene.SceneReader( "load_Layer" )
parent.addChild( __children["load_Layer"] )
__children["load_Layer"].addChild(
Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags
= Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) )
__children["MergeScenes1"] = GafferScene.MergeScenes( "MergeScenes1" )
parent.addChild( __children["MergeScenes1"] )
__children["MergeScenes1"]["in"].addChild(
GafferScene.ScenePlug( "in2", flags = Gaffer.Plug.Flags.Default |
Gaffer.Plug.Flags.Dynamic, ) )
__children["MergeScenes1"].addChild(
Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags =
Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) )
__children["Sphere"] = GafferScene.Sphere( "Sphere" )
parent.addChild( __children["Sphere"] )
__children["Sphere"].addChild(
Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags
= Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) )
__children["Cube"] = GafferScene.Cube( "Cube" )
parent.addChild( __children["Cube"] )
__children["Cube"].addChild(
Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags
= Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) )
__children["MergeScenes2"] = GafferScene.MergeScenes( "MergeScenes2" )
parent.addChild( __children["MergeScenes2"] )
__children["MergeScenes2"]["in"].addChild(
GafferScene.ScenePlug( "in2", flags = Gaffer.Plug.Flags.Default |
Gaffer.Plug.Flags.Dynamic, ) )
__children["MergeScenes2"].addChild(
Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags =
Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) )
__children["CopyAttributes"] = GafferScene.CopyAttributes( "CopyAttributes" )
parent.addChild( __children["CopyAttributes"] )
__children["CopyAttributes"].addChild(
Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags
= Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) )
__children["PathFilter2"] = GafferScene.PathFilter( "PathFilter2" )
parent.addChild( __children["PathFilter2"] )
__children["PathFilter2"].addChild(
Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags
= Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) )
__children["DistantLight"] = GafferArnold.ArnoldLight( "DistantLight" )
parent.addChild( __children["DistantLight"] )
__children["DistantLight"].loadShader( "distant_light" )
__children["DistantLight"].addChild(
Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags
= Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) )
__children["FullScene_OUT"] = GafferScene.SceneWriter( "FullScene_OUT" )
parent.addChild( __children["FullScene_OUT"] )
__children["FullScene_OUT"].addChild(
Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags
= Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) )
__children["SceneReader3"] = GafferScene.SceneReader( "SceneReader3" )
parent.addChild( __children["SceneReader3"] )
__children["SceneReader3"].addChild(
Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags
= Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) )
__children["Switch"] = Gaffer.Switch( "Switch" )
parent.addChild( __children["Switch"] )
__children["Switch"].setup( GafferScene.ScenePlug( "in", ) )
__children["Switch"].addChild(
Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags
= Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) )
__children["Switch"]["in"].addChild(
GafferScene.ScenePlug( "in1", flags = Gaffer.Plug.Flags.Default |
Gaffer.Plug.Flags.Dynamic, ) )
__children["Switch"]["in"].addChild(
GafferScene.ScenePlug( "in2", flags = Gaffer.Plug.Flags.Default |
Gaffer.Plug.Flags.Dynamic, ) )
__children["Switch"]["in"].addChild(
GafferScene.ScenePlug( "in3", 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["Backdrop1"] = Gaffer.Backdrop( "Backdrop1" )
parent.addChild( __children["Backdrop1"] )
__children["Backdrop1"].addChild(
Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags
= Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) )
__children["Backdrop1"].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["Backdrop2"] = Gaffer.Backdrop( "Backdrop2" )
parent.addChild( __children["Backdrop2"] )
__children["Backdrop2"].addChild(
Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags
= Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) )
__children["Backdrop2"].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["SceneReader"]["fileName"].setValue( 'E:/TEST_USD/Gaffer/master1.usda' )
__children["SceneReader"]["refreshCount"].setValue( 11 )
__children["SceneReader"]["__uiPosition"].setValue( imath.V2f( -11.9459076, 70.5467911 ) )
__children["USDLayerWriter"]["dispatcher"]["deadline"]["pool"].setValue( 'none' )
__children["USDLayerWriter"]["dispatcher"]["deadline"]["secondaryPool"].setValue( 'none' )
__children["USDLayerWriter"]["dispatcher"]["deadline"]["group"].setValue( 'none' )
__children["USDLayerWriter"]["base"].setInput( __children["SceneReader"]["out"] )
__children["USDLayerWriter"]["layer"].setInput( __children["ShaderAssignment1"]["out"] )
__children["USDLayerWriter"]["fileName"].setValue( 'E:/TEST_USD/Gaffer/look1.usda' )
__children["USDLayerWriter"]["__uiPosition"].setValue( imath.V2f( -11.9459076, -3.96795058 ) )
__children["ShaderAssignment"]["in"].setInput( __children["SceneReader"]["out"] )
__children["ShaderAssignment"]["filter"].setInput( __children["PathFilter"]["out"] )
__children["ShaderAssignment"]["shader"].setInput( __children["shd_BLUE"]["out"] )
__children["ShaderAssignment"]["__uiPosition"].setValue( imath.V2f( 44.8880386, 42.2679367 ) )
__children["shd_BLUE"]["parameters"]["base_color"].setValue( imath.Color3f( 0.144999996, 0.800000012, 0.800000012 ) )
__children["shd_BLUE"]["__uiPosition"].setValue( imath.V2f( 22.4930267, 42.2679367 ) )
__children["PathFilter"]["paths"].setValue( IECore.StringVectorData( [ '/cube' ] ) )
__children["PathFilter"]["__uiPosition"].setValue( imath.V2f( 59.1602554, 48.3499641 ) )
__children["ShaderAssignment1"]["in"].setInput( __children["ShaderAssignment"]["out"] )
__children["ShaderAssignment1"]["filter"].setInput( __children["PathFilter1"]["out"] )
__children["ShaderAssignment1"]["shader"].setInput( __children["shd_RED"]["out"] )
__children["ShaderAssignment1"]["__uiPosition"].setValue( imath.V2f( 44.8880386, 19.7931328 ) )
__children["PathFilter1"]["paths"].setValue( IECore.StringVectorData( [ '/sphere' ] ) )
__children["PathFilter1"]["__uiPosition"].setValue( imath.V2f( 62.0455322, 23.8811378 ) )
__children["shd_RED"]["parameters"]["base_color"].setValue( imath.Color3f( 0.485000014, 0.138225019, 0.138225019 ) )
__children["shd_RED"]["__uiPosition"].setValue( imath.V2f( 21.5487995, 19.7931328 ) )
__children["Outputs"]["in"].setInput( __children["ArnoldOptions"]["out"] )
__children["Outputs"]["outputs"]["output1"]["name"].setValue( 'Interactive/Arnold/Beauty' )
__children["Outputs"]["outputs"]["output1"]["fileName"].setValue( 'beauty' )
__children["Outputs"]["outputs"]["output1"]["type"].setValue( 'ieDisplay' )
__children["Outputs"]["outputs"]["output1"]["data"].setValue( 'rgba' )
__children["Outputs"]["__uiPosition"].setValue( imath.V2f( 64.9539413, -60.4149437 ) )
__children["InteractiveArnoldRender"]["in"].setInput( __children["Outputs"]["out"] )
__children["InteractiveArnoldRender"]["__uiPosition"].setValue( imath.V2f( 64.9539413, -66.0789795 ) )
__children["Catalogue"]["images"]["Image"]["fileName"].setValue(
'C:/Users/william/gaffer/projects/default/catalogues/usdLayerTests/2fe5ee8e6a3254197d60978b4a53c66c.exr'
)
__children["Catalogue"]["images"]["Image1"]["fileName"].setValue(
'C:/Users/william/gaffer/projects/default/catalogues/usdLayerTests/2fe5ee8e6a3254197d60978b4a53c66c.exr'
)
__children["Catalogue"]["images"]["Image2"]["fileName"].setValue(
'C:/Users/william/gaffer/projects/default/catalogues/usdLayerTests/2fe5ee8e6a3254197d60978b4a53c66c.exr'
)
__children["Catalogue"]["images"]["Image3"]["fileName"].setValue(
'C:/Users/william/gaffer/projects/default/catalogues/usdLayerTests/d0807f8e1bf6521b10dade6e345b960d.exr'
)
__children["Catalogue"]["images"]["Image4"]["fileName"].setValue(
'C:/Users/william/gaffer/projects/default/catalogues/usdLayerTests/438cd43372c80763ce348c963abfb66d.exr'
)
__children["Catalogue"]["images"]["Image5"]["fileName"].setValue(
'C:/Users/william/gaffer/projects/default/catalogues/usdLayerTests/25d8b1184009aefb600f6ffc92816538.exr'
)
__children["Catalogue"]["imageIndex"].setValue( 6 )
__children["Catalogue"]["directory"].setValue( '${project:rootDirectory}/catalogues/${script:name}' )
__children["Catalogue"]["__uiPosition"].setValue( imath.V2f( 42.8670654, -64.6271515 ) )
__children["MergeScenes"]["in"][0].setInput( __children["Switch"]["out"] )
__children["MergeScenes"]["in"][1].setInput( __children["DistantLight"]["out"] )
__children["MergeScenes"]["in"][2].setInput( __children["Camera"]["out"] )
__children["MergeScenes"]["__uiPosition"].setValue( imath.V2f( 64.9539413, -35.9180222 ) )
__children["Camera"]["transform"]["translate"].setValue( imath.V3f( 0, 0, 9.2494278 ) )
__children["Camera"]["transform"]["rotate"].setValue( imath.V3f( 0, 0, 5.1226416e-06 ) )
__children["Camera"]["__uiPosition"].setValue( imath.V2f( 76.123085, -27.7539597 ) )
__children["ArnoldOptions"]["in"].setInput( __children["StandardOptions"]["out"] )
__children["ArnoldOptions"]["__uiPosition"].setValue( imath.V2f( 64.9539413, -52.2508812 ) )
__children["StandardOptions"]["in"].setInput( __children["MergeScenes"]["out"] )
__children["StandardOptions"]["options"]["renderCamera"]["value"].setValue( '/camera' )
__children["StandardOptions"]["options"]["renderCamera"]["enabled"].setValue( True )
__children["StandardOptions"]["__uiPosition"].setValue( imath.V2f( 64.9539413, -46.5868187 ) )
__children["SceneWriter"]["dispatcher"]["deadline"]["pool"].setValue( 'none' )
__children["SceneWriter"]["dispatcher"]["deadline"]["secondaryPool"].setValue( 'none' )
__children["SceneWriter"]["dispatcher"]["deadline"]["group"].setValue( 'none' )
__children["SceneWriter"]["in"].setInput( __children["MergeScenes2"]["out"] )
__children["SceneWriter"]["fileName"].setValue( 'E:/TEST_USD/Gaffer/master1.usda' )
__children["SceneWriter"]["__uiPosition"].setValue( imath.V2f( -12.2830811, 96.229599 ) )
__children["Load_Geo"]["fileName"].setValue( 'E:/TEST_USD/Gaffer/master1.usda' )
__children["Load_Geo"]["refreshCount"].setValue( 1 )
__children["Load_Geo"]["__uiPosition"].setValue( imath.V2f( -41.5651817, -12.883811 ) )
__children["load_Layer"]["fileName"].setValue( 'E:/TEST_USD/Gaffer/look1.usda' )
__children["load_Layer"]["refreshCount"].setValue( 6 )
__children["load_Layer"]["__uiPosition"].setValue( imath.V2f( -9.71572971, -12.7824364 ) )
__children["MergeScenes1"]["in"][0].setInput( __children["Load_Geo"]["out"] )
__children["MergeScenes1"]["in"][1].setInput( __children["load_Layer"]["out"] )
__children["MergeScenes1"]["attributesMode"].setValue( 1 )
__children["MergeScenes1"]["__uiPosition"].setValue( imath.V2f( -9.71572971, -27.0138855 ) )
__children["Sphere"]["transform"]["translate"].setValue( imath.V3f( -1.68023252, 0, 0 ) )
__children["Sphere"]["__uiPosition"].setValue( imath.V2f( -23.6799049, 119.92881 ) )
__children["Cube"]["transform"]["translate"].setValue( imath.V3f( 1.56395364, 0, 0 ) )
__children["Cube"]["__uiPosition"].setValue( imath.V2f( -0.885452271, 118.843361 ) )
__children["MergeScenes2"]["in"][0].setInput( __children["Sphere"]["out"] )
__children["MergeScenes2"]["in"][1].setInput( __children["Cube"]["out"] )
__children["MergeScenes2"]["__uiPosition"].setValue( imath.V2f( -10.7830811, 110.679298 ) )
__children["CopyAttributes"]["in"].setInput( __children["Load_Geo"]["out"] )
__children["CopyAttributes"]["filter"].setInput( __children["PathFilter2"]["out"] )
__children["CopyAttributes"]["source"].setInput( __children["load_Layer"]["out"] )
__children["CopyAttributes"]["__uiPosition"].setValue( imath.V2f( -40.0651817, -29.0442429 ) )
__children["PathFilter2"]["paths"].setValue( IECore.StringVectorData( [ '/*' ] ) )
__children["PathFilter2"]["__uiPosition"].setValue( imath.V2f( -25.5950146, -25.0123768 ) )
__children["DistantLight"]["name"].setValue( 'distantLight' )
__children["DistantLight"]["transform"]["rotate"].setValue( imath.V3f( 0, -46.9000015, 0 ) )
__children["DistantLight"]["__uiPosition"].setValue( imath.V2f( 63.4539375, -27.7539597 ) )
__children["FullScene_OUT"]["dispatcher"]["deadline"]["pool"].setValue( 'none' )
__children["FullScene_OUT"]["dispatcher"]["deadline"]["secondaryPool"].setValue( 'none' )
__children["FullScene_OUT"]["dispatcher"]["deadline"]["group"].setValue( 'none' )
__children["FullScene_OUT"]["in"].setInput( __children["ShaderAssignment1"]["out"] )
__children["FullScene_OUT"]["fileName"].setValue( 'E:/TEST_USD/Gaffer/Fullscene.usda' )
__children["FullScene_OUT"]["__uiPosition"].setValue( imath.V2f( 43.3880386, -4.07110023 ) )
__children["SceneReader3"]["fileName"].setValue( 'E:/TEST_USD/Gaffer/Fullscene.usda' )
__children["SceneReader3"]["__uiPosition"].setValue( imath.V2f( 41.1257095, -11.8346634 ) )
__children["Switch"]["index"].setValue( 1 )
__children["Switch"]["__uiPosition"].setValue( imath.V2f( 48.085041, -31.8132782 ) )
Gaffer.Metadata.registerValue( __children["Switch"]["in"], 'noduleLayout:section', 'left' )
__children["Switch"]["in"][0].setInput( __children["SceneReader3"]["out"] )
__children["Switch"]["in"][1].setInput( __children["MergeScenes1"]["out"] )
__children["Switch"]["in"][2].setInput( __children["CopyAttributes"]["out"] )
Gaffer.Metadata.registerValue( __children["Switch"]["out"], 'noduleLayout:section', 'right' )
__children["Backdrop"]["title"].setValue( 'ASSET' )
__children["Backdrop"]["__uiPosition"].setValue( imath.V2f( -12.2826786, 108.079208 ) )
__children["Backdrop"]["__uiBound"].setValue(
imath.Box2f( imath.V2f( -19.8972263, -16.9316368 ), imath.V2f(
25.8972263, 22.9316368 ) ) )
__children["Backdrop1"]["title"].setValue( 'Shaded USD' )
__children["Backdrop1"]["__uiPosition"].setValue( imath.V2f( 42.296669, -7.95288181 ) )
__children["Backdrop1"]["__uiBound"].setValue(
imath.Box2f( imath.V2f( -9.67095947, -8.96381283 ), imath.V2f(
15.6709595, 14.9638128 ) ) )
__children["Backdrop2"]["title"].setValue( 'Layered SHD' )
__children["Backdrop2"]["__uiPosition"].setValue( imath.V2f( -25.6404552, -8.42588043 ) )
__children["Backdrop2"]["__uiBound"].setValue(
imath.Box2f( imath.V2f( -24.4247265, -9.53996086 ), imath.V2f(
30.4247265, 15.5399609 ) ) )
del __children