import maya.cmds as cmds cursel = cmds.ls( sl=True ) for obj in cursel: newname = obj.lower() cmds.rename( obj, newname )