zbw_anim_import.py 文件源码

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

项目:zTools 作者: zethwillie 项目源码 文件源码
def populate_tsl(*args):
    """populates the list from the imp text field grp path"""
    path = cmds.textFieldButtonGrp(widgets["impPathTFG"], q=True, tx=True)
    if not path or not os.path.isdir(path):
        cmds.warning("Couldn't find that path ({0})!".format(path))
        return()

    animFiles = [x for x in os.listdir(path) if x.rpartition(".")[2] == "anim"]
    if not animFiles:
        return()

    animFiles.sort()
    for af in animFiles:
        cmds.textScrollList(widgets["animTSL"], e=True, a=af)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号