#NEWLINE# def getChildIndex( parent , child ) : #NEWLINE# #INDENT# for i in range ( parent . children . length ) : #NEWLINE# #INDENT# if ( child . uniqueID == parent . children . item ( i ) . uniqueID ) : #NEWLINE# #INDENT# return i #NEWLINE# #UNINDENT# #UNINDENT# return ( - 1 )