|
I know this didn’t work in the SDK for all prior versions of Motionbuilder, but using Python can you save individual takes? Say you’ve got a whole bunch of takes loaded with data plotted on each individual take.
I want to mimic the functionality in the File menu option where you can click
File | Save Selection
check Save One Take Per File
check Use Take Name
Now I have individual .fbx files that are saved using the take name as the filename.
Doesn’t look like it, though ...
|
|
|
|
Sorry this isn’t exposed yet…
KRISTINE MIDDLEMISS | SENIOR DEVELOPER CONSULTANT
AUTODESK DEVELOPER NETWORK Media & Entertainment
http://www.autodesk.com/joinadn
|
|
|
|
As a work-around you can iterate through all of the takes and for each take set the Import attribute to false for all other takes, like this:
from pyfbsdk import FBScene, FBSystem, FBFbxManager
lPath = 'c:/myAnims/'
lScene = FBSystem().Scene
lFbxManager = FBFbxManager()
for lTake in lScene.Takes:
lFbxManager.SaveBegin( lPath + lTake.Name )
lFbxManager.Selected = True
for each in lFbxManager.Takes:
if each.Name != lTake.Name:
each.Import = False
lFbxManager.Save()
lFbxManager.SaveEnd()
|
|
|