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()
评论列表
文章目录