Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FBX headers data can't be retreived (made a merge request for that) #111

Open
flarive opened this issue Jan 5, 2025 · 0 comments
Open

Comments

@flarive
Copy link

flarive commented Jan 5, 2025

Hey !

Just submited a merge request to be able to easily retreive FBX headers data such as creator, app vendor, app name, app version, creation date, last update date...

Tell me if it seems to be ok for you :)
Hope you'll merge it in master !

Eviral

Usage in my app :

void fbx_mesh_loader::get_metadata(const ofbx::IScene* scene)
{
    const ofbx::Headers* headers = scene->getHeaders();
    if (headers)
    {
        int fbxHeaderVersion = headers->fbxHeaderVersion;
        int fbxVersion = headers->fbxVersion;
        int encryptionType = headers->encryptionType;
        char* creator = headers->creator;
        char* creationTime = headers->creationTime;

        char* documentUrl = headers->documentUrl;
        char* srcDocumentUrl = headers->srcDocumentUrl;

        char* originalApplicationVendor = headers->originalApplicationVendor;
        char* originalApplicationName = headers->originalApplicationName;
        char* originalApplicationVersion = headers->originalApplicationVersion;
        char* originalDateTimeGMT = headers->originalDateTimeGMT;
        char* originalFilename = headers->originalFilename;
        char* originalApplicationActiveProject = headers->originalApplicationActiveProject;
        char* originalApplicationNativeFile = headers->originalApplicationNativeFile;

        char* lastSavedApplicationVendor = headers->lastSavedApplicationVendor;
        char* lastSavedApplicationName = headers->lastSavedApplicationName;
        char* lastSavedApplicationVersion = headers->lastSavedApplicationVersion;
        char* lastSavedDateTimeGMT = headers->lastSavedDateTimeGMT;
    }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant