美文网首页
清理unknownPlugin

清理unknownPlugin

作者: Rigging | 来源:发表于2020-03-19 11:54 被阅读0次
    import pymel.core as pm
    unknownPlugin_list = pm.unknownPlugin( query=True, list=True )
    unknownPlugin_num = len(unknownPlugin_list)
    if unknownPlugin_list:
        print u"unknownPlugin个数为%s" % unknownPlugin_num
        for plugin_name in unknownPlugin_list:
            try:
                pm.unknownPlugin( plugin_name, remove=True )
            except Exception as e:
                print e
                print plugin_name, u"无法清理"
        print u"清理完成!"
    else:
        print u"unknownPlugin个数为0,不需要清理"
    

    转载in影用程巍

    相关文章

      网友评论

          本文标题:清理unknownPlugin

          本文链接:https://www.haomeiwen.com/subject/adwkyhtx.html