<s> import IECore <EOL> import Gaffer <EOL> import GafferUI <EOL> import GafferScene <EOL> import GafferSceneUI <EOL> import GafferDispatch <EOL> Gaffer . Metadata . registerNodeValue ( GafferDispatch . ExecutableNode , "<STR_LIT>" , IECore . Color3f ( <NUM_LIT> , <NUM_LIT> , <NUM_LIT> ) ) <EOL> Gaffer . Metadata . registerPlugValue ( GafferDispatch . ExecutableNode , "<STR_LIT>" , "<STR_LIT>" , IECore . Color3f ( <NUM_LIT> , <NUM_LIT> , <NUM_LIT> ) ) <EOL> Gaffer . Metadata . registerPlugValue ( GafferDispatch . ExecutableNode , "<STR_LIT>" , "<STR_LIT>" , IECore . Color3f ( <NUM_LIT> , <NUM_LIT> , <NUM_LIT> ) ) <EOL> Gaffer . Metadata . registerPlugValue ( GafferDispatch . ExecutableNode , "<STR_LIT>" , "<STR_LIT>" , IECore . Color3f ( <NUM_LIT> , <NUM_LIT> , <NUM_LIT> ) ) <EOL> Gaffer . Metadata . registerPlugValue ( GafferDispatch . ExecutableNode , "<STR_LIT>" , "<STR_LIT>" , IECore . Color3f ( <NUM_LIT> , <NUM_LIT> , <NUM_LIT> ) ) <EOL> Gaffer . Metadata . registerPlugValue ( GafferDispatch . ExecutableNode , "<STR_LIT>" , "<STR_LIT>" , IECore . Color3f ( <NUM_LIT> , <NUM_LIT> , <NUM_LIT> ) ) <EOL> Gaffer . Metadata . registerPlugValue ( GafferDispatch . ExecutableNode , "<STR_LIT>" , "<STR_LIT>" , IECore . Color3f ( <NUM_LIT> , <NUM_LIT> , <NUM_LIT> ) ) <EOL> Gaffer . Metadata . registerNodeValue ( Gaffer . SubGraph , "<STR_LIT>" , IECore . Color3f ( <NUM_LIT> ) ) <EOL> Gaffer . Metadata . registerPlugValue ( GafferScene . SceneNode , "<STR_LIT>" , "<STR_LIT>" , IECore . Color3f ( <NUM_LIT> , <NUM_LIT> , <NUM_LIT> ) ) <EOL> Gaffer . Metadata . registerPlugValue ( GafferScene . SceneNode , "<STR_LIT>" , "<STR_LIT>" , IECore . Color3f ( <NUM_LIT> , <NUM_LIT> , <NUM_LIT> ) ) <EOL> Gaffer . Metadata . registerPlugValue ( GafferScene . ExecutableRender , "<STR_LIT>" , "<STR_LIT>" , IECore . Color3f ( <NUM_LIT> , <NUM_LIT> , <NUM_LIT> ) ) <EOL> Gaffer . Metadata . registerPlugValue ( GafferScene . InteractiveRender , "<STR_LIT>" , "<STR_LIT>" , IECore . Color3f ( <NUM_LIT> , <NUM_LIT> , <NUM_LIT> ) ) <EOL> Gaffer . Metadata . registerPlugValue ( GafferScene . Parent , "<STR_LIT>" , "<STR_LIT>" , IECore . Color3f ( <NUM_LIT> , <NUM_LIT> , <NUM_LIT> ) ) <EOL> Gaffer . Metadata . registerNodeValue ( GafferScene . SceneProcessor , "<STR_LIT>" , IECore . Color3f ( <NUM_LIT> , <NUM_LIT> , <NUM_LIT> ) ) <EOL> Gaffer . Metadata . registerNodeValue ( GafferScene . SceneElementProcessor , "<STR_LIT>" , IECore . Color3f ( <NUM_LIT> , <NUM_LIT> , <NUM_LIT> ) ) <EOL> Gaffer . Metadata . registerPlugValue ( GafferScene . FilteredSceneProcessor , "<STR_LIT>" , "<STR_LIT>" , IECore . Color3f ( <NUM_LIT> , <NUM_LIT> , <NUM_LIT> ) ) <EOL> Gaffer . Metadata . registerPlugValue ( GafferScene . Filter , "<STR_LIT>" , "<STR_LIT>" , IECore . Color3f ( <NUM_LIT> , <NUM_LIT> , <NUM_LIT> ) ) <EOL> Gaffer . Metadata . registerNodeValue ( GafferScene . Transform , "<STR_LIT>" , IECore . Color3f ( <NUM_LIT> , <NUM_LIT> , <NUM_LIT> ) ) <EOL> Gaffer . Metadata . registerNodeValue ( GafferScene . Constraint , "<STR_LIT>" , IECore . Color3f ( <NUM_LIT> , <NUM_LIT> , <NUM_LIT> ) ) <EOL> Gaffer . Metadata . registerNodeValue ( GafferScene . GlobalsProcessor , "<STR_LIT>" , IECore . Color3f ( <NUM_LIT> , <NUM_LIT> , <NUM_LIT> ) ) <EOL> __shaderNoduleColors = { <EOL> Gaffer . FloatPlug . staticTypeId ( ) : IECore . Color3fData ( IECore . Color3f ( <NUM_LIT> , <NUM_LIT> , <NUM_LIT> ) ) , <EOL> Gaffer . Color3fPlug . staticTypeId ( ) : IECore . Color3fData ( IECore . Color3f ( <NUM_LIT> , <NUM_LIT> , <NUM_LIT> ) ) , <EOL> Gaffer . V3fPlug . staticTypeId ( ) : IECore . Color3fData ( IECore . Color3f ( <NUM_LIT> , <NUM_LIT> , <NUM_LIT> ) ) , <EOL> } <EOL> def __shaderNoduleColor ( plug ) : <EOL> return __shaderNoduleColors . get ( plug . typeId ( ) , None ) <EOL> Gaffer . Metadata . registerPlugValue ( GafferScene . Shader , "<STR_LIT:*>" , "<STR_LIT>" , __shaderNoduleColor ) <EOL> def __nodeDoubleClick ( nodeGraph , node ) : <EOL> GafferUI . NodeEditor . acquire ( node ) <EOL> __nodeDoubleClickConnection = GafferUI . NodeGraph . nodeDoubleClickSignal ( ) . connect ( __nodeDoubleClick ) <EOL> def __nodeContextMenu ( nodeGraph , node , menuDefinition ) : <EOL> menuDefinition . append ( "<STR_LIT>" , { "<STR_LIT>" : IECore . curry ( GafferUI . NodeEditor . acquire , node ) } ) <EOL> GafferUI . NodeGraph . appendEnabledPlugMenuDefinitions ( nodeGraph , node , menuDefinition ) <EOL> GafferUI . NodeGraph . appendConnectionVisibilityMenuDefinitions ( nodeGraph , node , menuDefinition ) <EOL> GafferUI . DispatcherUI . appendNodeContextMenuDefinitions ( nodeGraph , node , menuDefinition ) <EOL> GafferUI . BoxUI . appendNodeContextMenuDefinitions ( nodeGraph , node , menuDefinition ) <EOL> GafferUI . UIEditor . appendNodeContextMenuDefinitions ( nodeGraph , node , menuDefinition ) <EOL> GafferSceneUI . FilteredSceneProcessorUI . appendNodeContextMenuDefinitions ( nodeGraph , node , menuDefinition ) <EOL> GafferUI . GraphBookmarksUI . appendNodeContextMenuDefinitions ( nodeGraph , node , menuDefinition ) <EOL> __nodeContextMenuConnection = GafferUI . NodeGraph . nodeContextMenuSignal ( ) . connect ( __nodeContextMenu ) <EOL> def __plugContextMenu ( nodeGraph , node , menuDefinition ) : <EOL> GafferUI . GraphBookmarksUI . appendPlugContextMenuDefinitions ( nodeGraph , node , menuDefinition ) <EOL> __plugContextMenuConnection = GafferUI . NodeGraph . plugContextMenuSignal ( ) . connect ( __plugContextMenu ) </s>
