{"id":411,"date":"2019-05-10T11:39:42","date_gmt":"2019-05-10T03:39:42","guid":{"rendered":"http:\/\/www.yumefx.com\/?p=411"},"modified":"2021-03-04T16:26:51","modified_gmt":"2021-03-04T08:26:51","slug":"arnold-%e6%89%b9%e6%b8%b2%e6%9f%93%e5%a4%b1%e8%b4%a5","status":"publish","type":"post","link":"https:\/\/www.yumefx.com\/?p=411","title":{"rendered":"Arnold \u6279\u6e32\u67d3\u5931\u8d25"},"content":{"rendered":"\n<p>\u5173\u4e8eArnold\u6e32\u67d3\u5668batch render\u79d2\u6e32\u5931\u8d25\u7684\u95ee\u9898\uff0c\u6253\u5f00\u6211\u7684\u6587\u6863\u4e0bmaya\u91cc\u9762\u7684mayaRenderLog.txt\uff0c\u663e\u793a\u5185\u5bb9\u5982\u4e0b\u3002<\/p>\n\n\n\n<pre>\n<span>Cannot open renderer description file &quot;arnoldRenderer.xml&quot;<\/span>\n<\/pre>\n\n\n\n<p>\u8fd9\u79cd\u60c5\u51b5\u5728\u4f7f\u7528\u8fdc\u7a0b\u63d2\u4ef6\u7684\u65f6\u5019\u5f88\u5e38\u89c1\uff0c\u89e3\u51b3\u65b9\u6cd5\u5982\u4e0b\u3002<\/p>\n<p>1\u3001\u4e3a\u7cfb\u7edf\u5168\u5c40\u53d8\u91cfpath \u6dfb\u52a0maya\u5b89\u88c5\u76ee\u5f55\u4e0b\u7684bin\u8def\u5f84\u3002<\/p>\n<p>2\u3001\u5c06arnold \u5b89\u88c5\u76ee\u5f55\u4e2d\u7684arnoldRenderer.xml\u6587\u4ef6\u62f7\u8d1d\u5230maya\u7684\u5b89\u88c5\u76ee\u5f55\u4e0b\u7684bin\/rendererDesc \u76ee\u5f55\u4e2d\u3002<\/p>\n<p>\u7136\u540e\uff0c\u91cd\u542fmaya\u540e\u5c31\u53ef\u4ee5\u4e86\uff08\u867d\u7136\u6211\u521a\u624d\u6ca1\u91cd\u542f\u4e5f\u80fd\u7528\uff09\u3002<\/p>\n<p>\u4eca\u5929\u5185\u5bb9\u6709\u70b9\u5c11\u554a\uff0c\u4e0b\u9762\u518d\u653e\u70b9\u5e38\u7528\u7684mel\u547d\u4ee4\u5427\u3002<\/p>\n<p>\u89e3\u51b3\u6e32\u67d3\u8bbe\u7f6e\u7a97\u53e3\u5f02\u5e38\u7684mel\uff1a<\/p>\n\n\n\n<pre>\n<span>deleteUI unifiedRenderGlobalsWindow; <\/span>\n<span>buildNewSceneUI;<\/span>\n<\/pre>\n\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img loading=\"lazy\" class=\"size-full wp-image-1040 aligncenter\" src=\"http:\/\/www.yumefx.com\/wp-content\/uploads\/2019\/05\/arfail1.png\" alt=\"\" width=\"471\" height=\"654\" srcset=\"https:\/\/www.yumefx.com\/wp-content\/uploads\/2019\/05\/arfail1.png 471w, https:\/\/www.yumefx.com\/wp-content\/uploads\/2019\/05\/arfail1-216x300.png 216w\" sizes=\"(max-width: 471px) 100vw, 471px\" \/><\/figure>\n<\/div>\n<p>\u5c31\u662f\u7528\u6765\u89e3\u51b3\u4e0a\u56fe\u8fd9\u6837\u6e32\u67d3\u8bbe\u7f6e\u7a97\u53e3\u5185\u5bb9\u4e22\u5931\u7684bug\u3002<\/p>\n<p>\u4fee\u590d\u65e0\u6cd5\u5207\u6362\u6e32\u67d3\u5c42\u7684\u547d\u4ee4\uff1a<\/p>\n\n\n\n<pre>\n<span>fixRenderLayerOutAdjustmentErrors;<\/span>\n<\/pre>\n\n\n\n<p>\u6e05\u7406\u672a\u77e5\u8282\u70b9\uff08\u65e7\u7248\u672c\u4e0d\u652f\u6301\uff09<\/p>\n\n\n\n<pre>\n<span>import pymel.core as pm<\/span>\n<span>unknownPlugin_list = pm.unknownPlugin( query=True, list=True )<\/span>\n<span>unknownPlugin_num = len(unknownPlugin_list)<\/span>\n<span>if unknownPlugin_list:<\/span>\n<span>    print u&quot;unknownPlugin\u4e2a\u6570\u4e3a%s&quot; % unknownPlugin_num<\/span>\n<span>    for plugin_name in unknownPlugin_list:<\/span>\n<span>        try:<\/span>\n<span>            pm.unknownPlugin( plugin_name, remove=True )<\/span>\n<span>        except Exception as e:<\/span>\n<span>            print e<\/span>\n<span>            print plugin_name, u&quot;\u65e0\u6cd5\u6e05\u7406&quot;<\/span>\n<span>    print u&quot;\u6e05\u7406\u5b8c\u6210\uff01&quot;<\/span>\n<span>else:<\/span>\n<span>    print u&quot;unknownPlugin\u4e2a\u6570\u4e3a0\uff0c\u4e0d\u9700\u8981\u6e05\u7406&quot;<\/span>\n<\/pre>\n\n\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<p>\u53ef\u9047\u4e0d\u53ef\u6c42\u7684\u4e8b\uff0c<br \/>\u540e\u6d77\u6709\u6811\u7684\u9662\u5b50\uff0c<br \/>\u590f\u4ee3\u6709\u5de5\u7684\u7389\uff0c<br \/>\u6b64\u65f6\u6b64\u523b\u7684\u4e91\uff0c<br \/>\u4e8c\u5341\u6765\u5c81\u7684\u4f60\u3002<\/p>\n<p style=\"text-align: right;\">\u300a\u53ef\u9047\u4e0d\u53ef\u6c42\u7684\u4e8b\u300b<br \/>\u2014\u2014\u51af\u5510<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5173\u4e8eArnold\u6e32\u67d3\u5668batch render\u79d2\u6e32\u5931\u8d25\u7684\u95ee\u9898\uff0c\u6253\u5f00\u6211\u7684\u6587\u6863\u4e0bmaya\u91cc\u9762\u7684mayaRender [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":1039,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[4,9],"tags":[56,15],"_links":{"self":[{"href":"https:\/\/www.yumefx.com\/index.php?rest_route=\/wp\/v2\/posts\/411"}],"collection":[{"href":"https:\/\/www.yumefx.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.yumefx.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.yumefx.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.yumefx.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=411"}],"version-history":[{"count":0,"href":"https:\/\/www.yumefx.com\/index.php?rest_route=\/wp\/v2\/posts\/411\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.yumefx.com\/index.php?rest_route=\/wp\/v2\/media\/1039"}],"wp:attachment":[{"href":"https:\/\/www.yumefx.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=411"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.yumefx.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=411"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.yumefx.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=411"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}