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 / FillTakeNameArray
  RSS 2.0 ATOM  

FillTakeNameArray
Rate this thread
 
50349
 
Permlink of this thread  
avatar
  • TravF
  • Posted: 10 December 2010 05:08 AM
  • Total Posts: 107
  • Joined: 21 October 2007 11:39 PM

I’m still using the 2010 SDK, and haven’t updated yet, and I’ve just noticed that FillTakeNameArray()
re-arranges my animations.  Is there something I can do about this (for 2010 SDK), so the original
order is kept?  I’ve tested this case with the 2011 SDK, and everything is listed correctly.

// Get the list of all the takes.
 
gScene->FillTakeNameArray(gTakeNameArray);


 
// Original listing

  
INT count1 gImporter->GetTakeCount();
  
printf("count1: %d\n"count1 );
  for(
INT i=0count1i++) {
    KFbxTakeInfo
lTakeInfo gImporter->GetTakeInfo(i);
    
printf("Take: %d, name: \"%s\"\n"ilTakeInfo->mName.Buffer() );
  
}

 
// Different listing!

  
INT count2 gTakeNameArray.GetCount();
  
printf(_T("count2: %d\n"), count2 );
  for(
INT i=0count2i++) {
    printf
("Take: %d, name: \"%s\"\n"igTakeNameArray.GetAt(i)->Buffer() );
  
}


Replies: 0