zbw_appendPath.py 文件源码

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

项目:zTools 作者: zethwillie 项目源码 文件源码
def saveValues(*args):
    """saves the current path fields to a file in your user pref directory. Files is called 'zbw_appendPath.txt'"""

    path1 = cmds.textFieldButtonGrp(widgets["path1"], q=True, tx=True) + "\n"
    path2 = cmds.textFieldButtonGrp(widgets["path2"], q=True, tx=True) + "\n"
    path3 = cmds.textFieldButtonGrp(widgets["path3"], q=True, tx=True) + "\n"

    #write to file
    userDir = cmds.internalVar(upd=True) + "zbw_appendPathSave.txt"
    file = open(userDir, "w")

    file.write(path1)
    file.write(path2)
    file.write(path3)

    file.close()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号