Call for Submission
NAB 2012 Best of the Best Show Reel
Submit your work today!
  • 1/3
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
 
Permlink of this thread   Subscribe to this thread
avatar
  • Steve S,
  • Posted: 31 August 2009 10:00 AM
  • Total Posts: 38
  • Joined: 18 October 2007 03:58 AM

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

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



Replies: 0




   
  Settings Choose Theme color: