#NEWLINE# def showSettings( menu ) : #NEWLINE# #INDENT# scriptWindow = menu . ancestor ( GafferUI . ScriptWindow ) #NEWLINE# settingsWindow = None #NEWLINE# for window in scriptWindow . childWindows ( ) : #NEWLINE# #INDENT# if hasattr ( window , '_settingsEditor' ) : #NEWLINE# #INDENT# settingsWindow = window #NEWLINE# break #NEWLINE# #UNINDENT# #UNINDENT# if ( settingsWindow is None ) : #NEWLINE# #INDENT# settingsWindow = GafferUI . Window ( 'Settings' , borderWidth = 8 ) #NEWLINE# settingsWindow . _settingsEditor = True #NEWLINE# settingsWindow . setChild ( GafferUI . NodeUI . create ( scriptWindow . scriptNode ( ) ) ) #NEWLINE# scriptWindow . addChildWindow ( settingsWindow ) #NEWLINE# #UNINDENT# settingsWindow . setVisible ( True )