def addToField(num, *args):
"""calls a file dialog to get a path and adds it to the selected field"""
#set the field to add to
textField = widgets["path%s"%num]
#call up browser to look for paths
path = cmds.fileDialog2(fm=3)[0]
#add text
if path:
cmds.textFieldButtonGrp(textField, e=True, tx=path)
评论列表
文章目录