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® / Python / Saving individual takes?
  RSS 2.0 ATOM  

Saving individual takes?
Rate this thread
 
22919
 
Permlink of this thread  
avatar
  • steebu
  • Posted: 17 February 2009 06:19 PM
  • Total Posts: 44
  • Joined: 09 January 2007 01:40 PM

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 ...



Replies: 0
avatar

Sorry this isn’t exposed yet…



KRISTINE MIDDLEMISS | SENIOR DEVELOPER CONSULTANT
AUTODESK DEVELOPER NETWORK Media & Entertainment
http://www.autodesk.com/joinadn

Replies: 0
avatar

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 FBSceneFBSystemFBFbxManager

lPath 
'c:/myAnims/'

lScene FBSystem().Scene
lFbxManager 
FBFbxManager()

for 
lTake in lScene.Takes:
    
    
lFbxManager.SaveBeginlPath lTake.Name )
    
lFbxManager.Selected True
    
    
for each in lFbxManager.Takes:
        if 
each.Name != lTake.Name:
            
each.Import False
            
    lFbxManager
.Save()
    
lFbxManager.SaveEnd()


Replies: 0