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® MotionBuilder® / Open Reality / Save selected
  RSS 2.0 ATOM  

Save selected
Rate this thread
 
63397
 
Permlink of this thread  
avatar
  • HerrBean
  • Posted: 09 January 2012 02:30 AM
  • Total Posts: 12
  • Joined: 23 November 2011 08:46 PM

Hello!

I know there is already a post with the same title in the python forum, but 1. I’m not using python and 2. the solution given there doesn’t work anymore.

I made a plugin that separates the opened FBX into several FBX files. To do this, I used to do FbFbxManager::Selected = true with the previous SDK so that it saved only the selected objects.
With the new SDK I modified my code so that I now use FbApplication::FileSave(). In order to save only the selection, I added a FBFbxOptions and set the member SaveSelectedModelsOnly to true and both ShowFileDialog and ShowOptionsDialog to false. But it just doesn’t work, I always have the FileDialog popup!!

What am I doing wrong??

Here is an example of what I’m doing:

// Select object.
FBSelectObjectsByNamespace("TKT"true);

// Set up save options.
FBFbxOptions fbxOpts(false);
fbxOpts.SaveSelectedModelsOnly true;
fbxOpts.ShowFileDialog false;
fbxOpts.ShowOptionsDialog false;

// Save.
bSuccess m_Application.FileSave(_filename, &fbxOpts);

BTW I’m using Mobu 2011 (64bits)



Replies: 0
avatar
  • HerrBean
  • Posted: 09 January 2012 02:42 AM

Ok, I found how to fix this, just install the last Service Pack:
http://usa.autodesk.com/adsk/ser...d=15925806&linkID=9242339



Replies: 0