Community
FBX Forum
Welcome to Autodesk’s FBX Forums. Share your knowledge, ask questions, and explore popular FBX topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Would you please give me a full list of file format description strings?

3 REPLIES 3
SOLVED
Reply
Message 1 of 4
Anonymous
794 Views, 3 Replies

Would you please give me a full list of file format description strings?

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...).

 

 

 

3 REPLIES 3
Message 2 of 4
samsonite151
in reply to: Anonymous

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 );
}

 

 

Message 3 of 4
Anonymous
in reply to: samsonite151

Thanks. That's it.

But why such infomation is not documented?
@viviane.rochon

Message 4 of 4
viviane.rochon
in reply to: Anonymous

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



Viviane Rochon Montplaisir

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report