“cmd.set_name” changes the name of an object or selection.
cmd.set_name(string old_name, string new_name)
def set_name(old_name, new_name):
set_name | api