#NEWLINE# def get_anim_curves( node ) : #NEWLINE# #INDENT# 'returns all the animation curves connected to the\n    given node\n    ' #NEWLINE# connected_nodes = pm . listConnections ( node ) #NEWLINE# anim_curve = 'animCurve' #NEWLINE# return_list = [ ] #NEWLINE# for cNode in connected_nodes : #NEWLINE# #INDENT# if ( pm . nodeType ( cNode ) [ 0 : len ( anim_curve ) ] == anim_curve ) : #NEWLINE# #INDENT# return_list . append ( cNode ) #NEWLINE# #UNINDENT# #UNINDENT# return return_list