#NEWLINE# def setup( self ) : #NEWLINE# #INDENT# 'setup the magic\n        ' #NEWLINE# self . create_frame_curve ( ) #NEWLINE# for side in self . sides : #NEWLINE# #INDENT# self . create_preview_curve ( side ) #NEWLINE# self . create_preview_curve ( side ) #NEWLINE# preview_curve = self . preview_curves [ side ] [ 0 ] #NEWLINE# preview_curve . setAttr ( 'overrideEnabled' , 1 ) #NEWLINE# preview_curve . setAttr ( 'overrideColor' , 6 ) #NEWLINE# edge_curve = self . preview_curves [ side ] [ 1 ] #NEWLINE# edge_curve . setAttr ( 'overrideEnabled' , 1 ) #NEWLINE# edge_curve . setAttr ( 'overrideColor' , 13 ) #NEWLINE# pm . parent ( self . joints [ side ] [ 0 ] , self . frame_curve ) #NEWLINE# pm . parent ( self . joints [ side ] [ 1 ] , self . frame_curve ) #NEWLINE# pm . parent ( self . joints [ side ] [ 2 ] , self . frame_curve ) #NEWLINE# pm . parent ( self . joints [ side ] [ 3 ] , self . frame_curve ) #NEWLINE# #UNINDENT# pm . parent ( self . frame_curve , self . light ) #NEWLINE# self . frame_curve . setAttr ( 't' , [ 0 , 0 , ( - 0.5 ) ] ) #NEWLINE# self . frame_curve . setAttr ( 'r' , [ 0 , 0 , 0 ] ) #NEWLINE# self . frame_curve . setAttr ( 's' , [ 1 , 1 , 1 ] ) #NEWLINE# self . create_barn_door ( ) #NEWLINE# self . create_expression ( ) #NEWLINE# for side in self . sides : #NEWLINE# #INDENT# self . joints [ side ] [ 0 ] . v . set ( 0 ) #NEWLINE# self . joints [ side ] [ 1 ] . v . set ( 0 ) #NEWLINE# self . joints [ side ] [ 2 ] . v . set ( 0 ) #NEWLINE# self . joints [ side ] [ 3 ] . v . set ( 0 ) #NEWLINE# #UNINDENT# all_preview_curves = [ ] #NEWLINE# map ( all_preview_curves . extend , self . preview_curves . values ( ) ) #NEWLINE# shapes_group = pm . group ( all_preview_curves , n = ( '%s_barndoor_preview_curves' % self . light . name ( ) ) ) #NEWLINE# self . store_node ( shapes_group ) #NEWLINE# self . create_script_job ( ) #NEWLINE# pm . select ( self . light )