#NEWLINE# @ publisher ( 'model' ) #NEWLINE# def check_empty_shapes( ) : #NEWLINE# #INDENT# 'checks if there are empty mesh nodes\n    ' #NEWLINE# empty_shape_nodes = [ ] #NEWLINE# for node in pm . ls ( type = 'mesh' ) : #NEWLINE# #INDENT# if ( node . numVertices ( ) == 0 ) : #NEWLINE# #INDENT# empty_shape_nodes . append ( node ) #NEWLINE# #UNINDENT# #UNINDENT# if ( len ( node ) > 0 ) : #NEWLINE# #INDENT# pm . select ( map ( ( lambda x : x . getParent ( ) ) , empty_shape_nodes ) ) #NEWLINE# raise PublishError ( 'There are <b>meshes with no geometry</b> in your scene, please delete them!!!' )