#NEWLINE# def attach( self , object ) : #NEWLINE# #INDENT# if ( not ( object in self . connections ) ) : #NEWLINE# #INDENT# mayaCon = ( object + '.message' ) #NEWLINE# networkId = len ( self . connections ) #NEWLINE# tempAttr = ( '%s[%s]' % ( 'affectedBy' , networkId ) ) #NEWLINE# networkCon = ( ( self . name + '.' ) + tempAttr ) #NEWLINE# pm . connectAttr ( mayaCon , networkCon ) #NEWLINE# self . connections . append ( object )