2011 Software releases
Learn about the 2011 versions of some of Autodesk’s Digital Entertainment Creation tools.
  • 1/1
You are here:Forum Home / Autodesk® MotionBuilder® / Open Reality / FBX Plug-in import in ORSDK
  RSS 2.0 ATOM  

FBX Plug-in import in ORSDK
Rate this thread
 
33848
 
Subscribe to this thread
avatar
  • Steve S,
  • Posted: 31 August 2009 05:00 PM
  • Total Posts: 34
  • Joined: 2007-10-18 07:58:25

I’ve got FBX files that need to use the FBX Plug-in import, but haven’t managed to find how to use that functionality in Open Reality.  I must be missing the API from somewhere.  Does anybody know how to do this Import in Open Reality?

Thanks as always,
Steve



Replies: 0
avatar
  • akudo7
  • Posted: 01 October 2009 09:51 PM
  • Total Posts: 3
  • Joined: 2009-10-02 01:48:15

Hi Maurice,

How about using FBApplication::FBXFileAppend() or FBXFileOpen()/FBXFileMerge()?
We could also load the FBX file with FBFbxManager like below.


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 {
lName = "Import_";
lName += lFbx.TakesName;
lFbx.Takes
Import = true;
lFbx.TakesImportName = lName;
}
lFbx.Load()
}
lFbx.LoadEnd()
}
}

See detail OpenRealitySDK\samples\tools\tooluserdata\ortooluserdata_tool.cxx

Regards,
Akira Kudo
Developer Technical Services
http://adn.autodesk.com



Replies: 0




   
  Settings Choose Theme color: