Animation and Rigging Tools: FAQ, Known Issues and Feature Roadmap



if type(newName) is list:
    newName = newName[0]
    cmds.file( rename=newName )
    cmds.file(save = True, type = "mayaBinary", force = True, prompt = True)
    print "File Saved as:", newName


from page 32 (python code)