Gaffer - FX build simple

 avatar
polygonMerge
plain_text
13 days ago
5.5 kB
2
Indexable
Never
import Gaffer
import GafferScene
import IECore
import imath

Gaffer.Metadata.registerValue( parent, "serialiser:milestoneVersion", 1, persistent=False )
Gaffer.Metadata.registerValue( parent, "serialiser:majorVersion", 4, persistent=False )
Gaffer.Metadata.registerValue( parent, "serialiser:minorVersion", 7, persistent=False )
Gaffer.Metadata.registerValue( parent, "serialiser:patchVersion", 0, persistent=False )

__children = {}

__children["FX_BD"] = Gaffer.Backdrop( "FX_BD" )
parent.addChild( __children["FX_BD"] )
__children["FX_BD"].addChild( Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) )
__children["FX_BD"].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["FX_Dot"] = Gaffer.Dot( "FX_Dot" )
parent.addChild( __children["FX_Dot"] )
__children["FX_Dot"].setup( GafferScene.ScenePlug( "in", ) )
__children["FX_Dot"].addChild( Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) )
__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["SceneReader1"] = GafferScene.SceneReader( "SceneReader1" )
parent.addChild( __children["SceneReader1"] )
__children["SceneReader1"].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"].addChild( Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) )
__children["Encapsulate"] = GafferScene.Encapsulate( "Encapsulate" )
parent.addChild( __children["Encapsulate"] )
__children["Encapsulate"].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["FX_Grp"] = GafferScene.Group( "FX_Grp" )
parent.addChild( __children["FX_Grp"] )
__children["FX_Grp"]["in"].addChild( GafferScene.ScenePlug( "in1", flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) )
__children["FX_Grp"].addChild( Gaffer.V2fPlug( "__uiPosition", defaultValue = imath.V2f( 0, 0 ), flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic, ) )
__children["FX_BD"]["title"].setValue( 'FX' )
__children["FX_BD"]["__uiPosition"].setValue( imath.V2f( -126.35318, 202.360641 ) )
__children["FX_BD"]["__uiBound"].setValue( imath.Box2f( imath.V2f( -12.5379486, -25.9178314 ), imath.V2f( 31.4463806, 25.0414734 ) ) )
__children["FX_Dot"]["labelType"].setValue( 1 )
__children["FX_Dot"]["in"].setInput( __children["FX_Grp"]["out"] )
Gaffer.Metadata.registerValue( __children["FX_Dot"]["in"], 'noduleLayout:section', 'top' )
Gaffer.Metadata.registerValue( __children["FX_Dot"]["out"], 'noduleLayout:section', 'bottom' )
__children["FX_Dot"]["__uiPosition"].setValue( imath.V2f( -122.793373, 172.355957 ) )
__children["SceneReader"]["fileName"].setValue( 'Y:/CWD2/episodes/GafferTraining/shots/CWD_201_027_050/products/fx_caches/abc/Bowl_Cereal_01_destruction_debris_meshes_fruitloops/v0000.0011/Bowl_Cereal_01_destruction_debris_meshes_fruitloops_v0000.0011.abc' )
__children["SceneReader"]["__uiPosition"].setValue( imath.V2f( -127.294304, 210.414841 ) )
__children["SceneReader1"]["fileName"].setValue( 'Y:/CWD2/episodes/GafferTraining/shots/CWD_201_027_050/products/fx_caches/abc/Bowl_Cereal_01_water_milk_meshes_default/v0000.0009/Bowl_Cereal_01_water_milk_meshes_default_v0000.0009.abc' )
__children["SceneReader1"]["__uiPosition"].setValue( imath.V2f( -112.194328, 210.414841 ) )
__children["MergeScenes"]["in"][0].setInput( __children["SceneReader"]["out"] )
__children["MergeScenes"]["in"][1].setInput( __children["SceneReader1"]["out"] )
__children["MergeScenes"]["__uiPosition"].setValue( imath.V2f( -124.294304, 202.250778 ) )
__children["Encapsulate"]["in"].setInput( __children["MergeScenes"]["out"] )
__children["Encapsulate"]["filter"].setInput( __children["PathFilter"]["out"] )
__children["Encapsulate"]["__uiPosition"].setValue( imath.V2f( -124.293373, 194.086716 ) )
__children["PathFilter"]["paths"].setValue( IECore.StringVectorData( [ '/cereal', '/milk' ] ) )
__children["PathFilter"]["__uiPosition"].setValue( imath.V2f( -110.893379, 198.668747 ) )
__children["FX_Grp"]["in"][0].setInput( __children["Encapsulate"]["out"] )
__children["FX_Grp"]["name"].setValue( 'FX_Grp' )
__children["FX_Grp"]["__uiPosition"].setValue( imath.V2f( -122.793373, 185.922653 ) )


del __children

Leave a Comment