def get_blenderID_name(bid): if isinstance(bid, Iterable): return "|".join(get_bid_name(e) for e in bid) else: return get_bid_name(bid)