I would really prefer id's over names, as names can be repeated(we do not have a checking mechanism), either deliberately(although rarely will somebody deliberately use same frame names for multiple frames) or by mistake(typo errors, eh?). 
It might lead to unexpected behavior on visualization side.