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 / Save Selection on python?
  RSS 2.0 ATOM  

Save Selection on python?
Rate this thread
 
39570
 
Permlink of this thread  
avatar
  • shenrik
  • Posted: 08 February 2010 09:38 PM
  • Location: Paris
  • Total Posts: 12
  • Joined: 19 August 2008 03:22 PM

Hello I’m starting with python and I would like to know if something like the “save selection” option on the file menu existed on python for motionbuilder.

Thanks!



Replies: 0
avatar
  • _stev_
  • Posted: 10 February 2010 05:14 AM

You use the FBFbxManager to do this.

lManager FBFbxManager()

if lManager.SaveBegin(r'c:\save_selected_example.fbx'):
   
# Set the Selected option
   
lManager.Selected True
   
# Perform the save
   
lManager.Save()
   
   lManager
.SaveEnd()


Replies: 0
avatar
  • shenrik
  • Posted: 11 February 2010 08:09 PM

thank you, I was having so much trouble with this!



Replies: 0