|
Hi Maurice,
How about using FBApplication::FBXFileAppend() or FBXFileOpen()/FBXFileMerge()?
We could also load the FBX file with FBFbxManager like below.
<code_begin>
void ORToolUserData::EventButtonFBXTest( HISender pSender, HKEvent pEvent )
{
FBFilePopup lPopup;
FBFbxManager lFbx;
int i;
FBString lName;
lPopup.Caption = “FBX file to load”;
lPopup.Style = kFBFilePopupOpen;
// We suggest the SDK’s scenes.
FBString lScenesPath( mSystem.ApplicationPath )
lScenesPath += “\\..\\OpenRealitySDK\\Scenes”;
lPopup.Path = (char*)lScenesPath;
lPopup.Filter = “*.fbx”;
if( lPopup.Execute() )
{
lFbx.LoadBegin( lPopup.FullFilename )
{
lFbx.ClearBeforeLoad = false;
for( i=0; i<lFbx.Takes.GetCount() i++ )
{
lName = “Import_”;
lName += lFbx.Takes->Name;
lFbx.Takes->Import = true;
lFbx.Takes->ImportName = lName;
}
lFbx.Load()
}
lFbx.LoadEnd()
}
}
<code_end>
See detail OpenRealitySDK\samples\tools\tooluserdata\ortooluserdata_tool.cxx
Regards,
Akira Kudo
Developer Technical Services
http://adn.autodesk.com
|