2016-06-20 5 views
0

という名前の属性やメソッドを持っていない私はThree.jsからマヤエクスポートプラグインで、窓10の上に、マヤ2016持っている:https://github.com/mrdoob/three.js/tree/master/utils/exporters/mayaマヤは「脚注」

は、指示に従って、それをインストール。

// Warning: file:  C:/Users/andrew/Documents/maya/2016/scripts/ThreeJsExportScript.mel line 12: The -bs/-borderStyle flag is obsolete and should not be used. // 
// Warning: file: C:/Users/andrew/Documents/maya/2016/scripts/ThreeJsExportScript.mel line 29: The -bs/-borderStyle flag is obsolete and should not be used. // 
// Warning: file: C:/Users/andrew/Documents/maya/2016/scripts/ThreeJsExportScript.mel line 39: The -bs/-borderStyle flag is obsolete and should not be used. // 
// Warning: file: C:/Users/andrew/Documents/maya/2016/scripts/ThreeJsExportScript.mel line 54: The -bs/-borderStyle flag is obsolete and should not be used. // 
file -force -options "vertices faces normals uvs materials diffuseMaps specularMaps bumpMaps copyTexturesMaps bones 4 skeletalAnim " -typ "Three.js" -pr -es "C:/Users/andrew/Desktop/proj/exported_name.js"; 
exporting materials 
// Error: line 0: AttributeError: file C:\Program Files\Autodesk\Maya2016\Python\lib\site-packages\pymel\core\nodetypes.py line 408: nt.Checker(u'defaultPolygonTexture') has no attribute or method named 'ftn' // 
// Error: line 0: Could not save file "C:/Users/andrew/Desktop/proj/exported_name.js". // 

誰もがこのエラーに遭遇:

はちょうど静的モデルをエクスポートし、これらのエラーを持っていますしようとしましたか?

答えて

0

同じ問題が発生していて、私が解決策を探していたときにあなたの投稿が見つかりました。

これまでのところ、私の簡単な答えは、mayaプラグインがやっかいだということです。私が見つけたより具体的なものをいくつかご紹介します。

  • 輸出業者は常にALLを輸出しているようです。したがって、[選択してエクスポート]を選択しても、すべてをエクスポートしようとします。それは、輸出の準備ができていなかったものをたくさん輸出し、死ぬだろう。エクスポートしたいモデルを自分のシーンにコピーすると、クラッシュせずにエクスポートすることができました。
  • "拡散マップ"をエクスポートするかどうかを尋ねるプラグインは、実際にlambertシェーダーのカラーマップを意味します。 Maya拡散マップはエクスポートされません。
  • 一般的に、maya JSON出力は、3JS仕様が望んでいるほどよく整形されていないようです。それはthreejs.org/editor/に読み込まれますが、JSONの方がはるかに優れています。

これだけです。私はMayaやPythonの専門家ではありません。