MotionBuilder Forum
Welcome to Autodesk’s MotionBuilder Forums. Share your knowledge, ask questions, and explore popular MotionBuilder topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Save selected

1 REPLY 1
Reply
Message 1 of 2
Anonymous
239 Views, 1 Reply

Save selected

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)
1 REPLY 1
Message 2 of 2
Anonymous
in reply to: Anonymous

Ok, I found how to fix this, just install the last Service Pack:
usa.autodesk.com/adsk/servlet/ps/dl/item?siteID=123112&id=15925806&linkID=9242339

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report