def get_current_scenename(): path = cmds.file(query=True, sceneName=True) if path: return os.path.splitext(os.path.basename(path))[0] return None