#NEWLINE# def __init__( self , path ) : #NEWLINE# #INDENT# column = GafferUI . SplitContainer ( GafferUI . SplitContainer . Orientation . Vertical ) #NEWLINE# GafferUI . PathPreviewWidget . __init__ ( self , column , column ) #NEWLINE# self . __script = Gaffer . ScriptNode ( 'scenePreview' ) #NEWLINE# self . __script [ 'SceneReader' ] = GafferScene . SceneReader ( ) #NEWLINE# self . __script [ 'AlembicSource' ] = GafferScene . AlembicSource ( ) #NEWLINE# self . __script [ 'ObjectPreview' ] = _ObjectPreview ( ) #NEWLINE# self . __script [ 'OpenGLAttributes' ] = GafferScene . OpenGLAttributes ( 'OpenGLAttributes' ) #NEWLINE# self . __script [ 'OpenGLAttributes' ] [ 'attributes' ] [ 'pointsPrimitiveUseGLPoints' ] [ 'value' ] . setValue ( 'forAll' ) #NEWLINE# self . __script [ 'OpenGLAttributes' ] [ 'attributes' ] [ 'pointsPrimitiveUseGLPoints' ] [ 'enabled' ] . setValue ( True ) #NEWLINE# self . __script [ 'OpenGLAttributes' ] [ 'attributes' ] [ 'curvesPrimitiveUseGLLines' ] [ 'enabled' ] . setValue ( True ) #NEWLINE# self . __script [ 'camera' ] = _Camera ( ) #NEWLINE# self . __script [ 'camera' ] [ 'in' ] . setInput ( self . __script [ 'OpenGLAttributes' ] [ 'out' ] ) #NEWLINE# self . __viewer = GafferUI . Viewer ( self . __script ) #NEWLINE# column . append ( self . __viewer ) #NEWLINE# column . append ( GafferUI . Timeline ( self . __script ) ) #NEWLINE# self . __script . selection ( ) . add ( self . __script [ 'camera' ] ) #NEWLINE# self . _updateFromPath ( )