def get_path(pType, widgetPath, *args):
"""get the path from dialog, and puts it in approp textFieldGrp (based on pType == 'import')"""
path = cmds.fileDialog2(dialogStyle=1, fileMode=3)
cmds.textFieldButtonGrp(widgets[widgetPath], e=True, tx=fix_path(path[0]))
if pType == "import":
clear_tsl()
populate_tsl()
评论列表
文章目录