瀏覽代碼

Removed FBX SDK Python bindings.

To use FBX converter you must now install FBX SDK Python bindings yourself from here:

http://usa.autodesk.com/adsk/servlet/pc/item?siteID=123112&id=10775847

See #2686
alteredq 12 年之前
父節點
當前提交
a7b8ec266e

文件差異過大導致無法顯示
+ 202 - 202
utils/exporters/fbx/convert_fbx_three.py


+ 0 - 3
utils/exporters/fbx/modules/readme.txt

@@ -1,3 +0,0 @@
-Autodesk FBX SDK Python bindings
-
-http://usa.autodesk.com/adsk/servlet/pc/index?siteID=123112&id=6837478

+ 0 - 67
utils/exporters/fbx/modules/win/Python26_x86/FbxCommon.py

@@ -1,67 +0,0 @@
-from fbx import *
-import sys
-
-def InitializeSdkObjects():
-    # The first thing to do is to create the FBX SDK manager which is the 
-    # object allocator for almost all the classes in the SDK.
-    lSdkManager = KFbxSdkManager.Create()
-    if not lSdkManager:
-        sys.exit(0)
-        
-    # Create an IOSettings object
-    ios = KFbxIOSettings.Create(lSdkManager, IOSROOT)
-    lSdkManager.SetIOSettings(ios)
-    
-    # Create the entity that will hold the scene.
-    lScene = KFbxScene.Create(lSdkManager, "")
-    
-    return (lSdkManager, lScene)
-
-def SaveScene(pSdkManager, pScene, pFilename, pFileFormat = -1, pEmbedMedia = False):
-    lExporter = KFbxExporter.Create(pSdkManager, "")
-    if pFileFormat < 0 or pFileFormat >= pSdkManager.GetIOPluginRegistry().GetWriteFormatCount():
-        pFileFormat = pSdkManager.GetIOPluginRegistry().GetNativeWriterFormat()
-        if not pEmbedMedia:
-            lFormatCount = pSdkManager.GetIOPluginRegistry().GetWriterFormatCount()
-            for lFormatIndex in range(lFormatCount):
-                if pSdkManager.GetIOPluginRegistry().WriterIsFBX(lFormatIndex):
-                    lDesc = KString(pSdkManager.GetIOPluginRegistry().GetWriterFormatDescription(lFormatIndex))
-                    if lDesc.Find("ascii") >= 0:
-                        pFileFormat = lFormatIndex
-                        break
-    
-    if not pSdkManager.GetIOSettings():
-        ios = KFbxIOSettings.Create(pSdkManager, IOSROOT)
-        pSdkManager.SetIOSettings(ios)
-    
-    pSdkManager.GetIOSettings().SetBoolProp(EXP_FBX_MATERIAL, True)
-    pSdkManager.GetIOSettings().SetBoolProp(EXP_FBX_TEXTURE, True)
-    pSdkManager.GetIOSettings().SetBoolProp(EXP_FBX_EMBEDDED, pEmbedMedia)
-    pSdkManager.GetIOSettings().SetBoolProp(EXP_FBX_SHAPE, True)
-    pSdkManager.GetIOSettings().SetBoolProp(EXP_FBX_GOBO, True)
-    pSdkManager.GetIOSettings().SetBoolProp(EXP_FBX_ANIMATION, True)
-    pSdkManager.GetIOSettings().SetBoolProp(EXP_FBX_GLOBAL_SETTINGS, True)
-
-    if lExporter.Initialize(pFilename, pFileFormat, pSdkManager.GetIOSettings()):
-        lExporter.Export(pScene)
-
-    lExporter.Destroy()
-        
-def LoadScene(pSdkManager, pScene, pFileName):
-    lImporter = KFbxImporter.Create(pSdkManager, "")    
-    result = lImporter.Initialize(pFileName, -1, pSdkManager.GetIOSettings())
-    if not result:
-        return False
-    
-    if lImporter.IsFBX():
-        pSdkManager.GetIOSettings().SetBoolProp(EXP_FBX_MATERIAL, True)
-        pSdkManager.GetIOSettings().SetBoolProp(EXP_FBX_TEXTURE, True)
-        pSdkManager.GetIOSettings().SetBoolProp(EXP_FBX_EMBEDDED, True)
-        pSdkManager.GetIOSettings().SetBoolProp(EXP_FBX_SHAPE, True)
-        pSdkManager.GetIOSettings().SetBoolProp(EXP_FBX_GOBO, True)
-        pSdkManager.GetIOSettings().SetBoolProp(EXP_FBX_ANIMATION, True)
-        pSdkManager.GetIOSettings().SetBoolProp(EXP_FBX_GLOBAL_SETTINGS, True)
-    
-    result = lImporter.Import(pScene)
-    lImporter.Destroy()
-    return result

二進制
utils/exporters/fbx/modules/win/Python26_x86/FbxCommon.pyc


二進制
utils/exporters/fbx/modules/win/Python26_x86/fbx.pyd


二進制
utils/exporters/fbx/modules/win/Python26_x86/sip.pyd


部分文件因文件數量過多而無法顯示