I found this in \FBX SDK\2014.2.1\samples\ConvertScene\main.cxx.
const char* lFileTypes[] = { "_dae.dae", "Collada DAE (*.dae)", "_fbx7binary.fbx", "FBX binary (*.fbx)", "_fbx7ascii.fbx", "FBX ascii (*.fbx)", "_fbx6binary.fbx", "FBX 6.0 binary (*.fbx)", "_fbx6ascii.fbx", "FBX 6.0 ascii (*.fbx)", "_obj.obj", "Alias OBJ (*.obj)", "_dxf.dxf", "AutoCAD DXF (*.dxf)" };
And lFileTypes is used in line 108:
lSdkManager->GetIOPluginRegistry()->FindWriterIDByDescription(lFileTypes[i*2+1]);
Below is the doc of function FindWriterIDByDescription:
int FindWriterIDByDescription(const char* pDesc) const
Searches for the Writer ID by the file format description.
Parameters
pDesc The file format description.
Returns
The Writer ID if found, if not found, returns -1.
So where is the complete list of strings that represent supported file types and versions, which can be used as the argument of function FindWriterIDByDescription?
For example, if I want to export a fbxscene to a fbx file of version 7.3/7.2/7.1/7.0, what's the corresponding string?
For another example, if I want to export a fbxscene to a dae file of version 1.4/1.5, what's the corresponding string?
PS:
All formats and versions above are said to be supported in the sdk doc(http://docs.autodesk.com/FBX/2014/ENU/FBX-SDK-Documentation/files/GUID-0B122E01-7DB8-48E3-AADA-5E85A...).
Solved! Go to Solution.
Solved by samsonite151. Go to Solution.
You can print them out yourself:
for (int i=0; i < pManager->GetIOPluginRegistry()->GetReaderFormatCount(); i++) { FbxString lDesc = pManager->GetIOPluginRegistry()->GetReaderFormatDescription(i); printf("%d, Reader: %s\n", i, lDesc ); } for (int i=0; i < pManager->GetIOPluginRegistry()->GetWriterFormatCount(); i++) { FbxString lDesc = pManager->GetIOPluginRegistry()->GetWriterFormatDescription(i); printf("%d, Writer: %s\n", i, lDesc ); }
Hi cloudss,
I have not worked on the FBX SDK for years now, but I forwarded your demand to the FBX SDK developers.
Regards,
Viviane
Can't find what you're looking for? Ask the community or share your knowledge.