Inside Sabertooth
Learn how Sabertooth uses 3ds Max to create 3D interactive projects, including HBO Go’s Game of Thrones interactive experience
  • 1/3
You are here: Forum Home / Autodesk® FBX® / FBX SDK / Canceling FBX Import
  RSS 2.0 ATOM  

Canceling FBX Import
Rate this thread
 
52825
 
Permlink of this thread  
avatar
  • mika 1982
  • Posted: 28 February 2011 10:34 PM
  • Total Posts: 1
  • Joined: 01 March 2011 06:26 AM

Hi all,

I’m using something like this to import fbx files:

KFbxImporter* lImporter = KFbxImporter::Create(pSdkManager,"");

...

lStatus = lImporter->Import(pScene);

So far so good! If we’re loading large FBX files, I would like to give the user the oppotunity to cancel the loading process. I could image to use FBX SDK async loading function to do it like this:

lImporter->Import(pScene, true);
while( lImporter->IsImporting(lStatus) )
{
Sleep(x);

if( abort_was_clicked )
{
lImporter->CALL_CANCEL_FUNCTION();
}
}

The problem is, as far as I can see, there is nothing like a CALL_CANCEL_FUNCTION() to cancel the asynchronous loading inside the importer. Do I miss something? Ideas?

Thanks & Best regards,
Mika



Replies: 1
/userdata/avatar/vx3501hqr_small.jpg

Hello Mika,
We added such functionality in the coming release, please wait for our next release 2012, thanks.

Author: Jiayang Xu

Replied: 01 March 2011 09:47 PM