maya_warpper.py 文件源码

python
阅读 26 收藏 0 点赞 0 评论 0

项目:pipeline 作者: liorbenhorin 项目源码 文件源码
def checkState():
# check if there are unsaved changes
    fileCheckState = cmds.file(q=True, modified=True)

    # if there are, save them first ... then we can proceed 
    if fileCheckState:
      # This is maya's native call to save, with dialogs, etc.
      # No need to write your own.
      if dlg.warning("warning", "Scene Not Saved", "Scene Not Saved, Do you want to save it first?"):
        cmds.SaveScene()
      pass
    else:
      pass
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号