FBX SDK Programmer's Guide > FBX Extensions SDK >

# FBX Extensions to MotionBuilder

## MotionBuilder FBX Extension Interface

FBX Extensions to MotionBuilder can implement any or all of the following functions. Note that the HFBComponent class refers to the MotionBuilder 2012 SDK.

    EXPORT_DLL bool MBExt_IsExtension(){return true;}

    EXPORT_DLL bool MBExt_ExportHandled( HFBComponent pFBComponent );
    EXPORT_DLL void MBExt_ExportBegin( FbxScene* pFbxScene );
    EXPORT_DLL void MBExt_ExportTranslated( FbxObject* pFbxObject, HFBComponent pFBComponent );
    EXPORT_DLL void MBExt_ExportEnd( FbxScene* pFbxScene );

    EXPORT_DLL bool MBExt_ImportHandled( FbxObject* pFbxObject );
    EXPORT_DLL void MBExt_ImportBegin( FbxScene* pFbxScene );
    EXPORT_DLL void MBExt_ImportTranslated( FbxObject* pFbxObject, HFBComponent pFBComponent );
    EXPORT_DLL void MBExt_ImportEnd( FbxScene* pFbxScene );

## Running your FBX Extension for MotionBuilder

FBX Extensions for MotionBuilder must be compiled as dynamic library files (.dll) and placed in one of the following MotionBuilder subdirectories, depending on your processor architecture:

- 32-bit version of MotionBuilder: <motionbuilder_path>/bin/win32/plugins/fbx
- 64-bit version of MotionBuilder: <motionbuilder_install_path>/bin/x64/plugins/fbx

## Sample Code

The following FBX Extensions SDK subdirectories contain sample Visual Studio projects.

Directory | Description
--- | ---
plugins/MotionBuilderExtensionPlugin_Template/ | Skeleton code and comments for MotionBuilder.
plugins/MotionBuilderExtensionPlugin_Example/ | Fully functional sample extension for MotionBuilder.