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 / FBObjectPose example?
  RSS 2.0 ATOM  

FBObjectPose example?
Rate this thread
 
52613
 
Permlink of this thread  
avatar
  • agrant3d
  • Posted: 23 February 2011 03:06 AM
  • Location: Montreal
  • Total Posts: 31
  • Joined: 08 December 2008 11:27 PM

I’m trying to use FBObjectPose to save a character’s bindPose before characterizing.  I can’t figure out how to initialize FBObjectPose without erroring:

bindPose FBObjectPose("test")
Boost.Python.ArgumentErrorPython argument types in
    FBObjectPose
.__init__(FBObjectPosestr)
did not match C++ signature:
    
__init__(struct _object __ptr64)

Has anyone had any luck with this or have an example that they could share?

Or is there a better way to do this?

Thanks!



Replies: 0
avatar
  • ekso
  • Posted: 24 February 2011 03:04 AM

Why do you need the pose BEFORE characterizing? You can easily get it from the character with:

from pyfbsdk import *

app FBApplication()

character app.CurrentCharacter # FBCharacter()
character.InputType FBCharacterInputType.kFBCharacterInputStance
character
.ActiveInput True

You can then recursively go through all the bones and get their transform matrix with FBModel().GetMatrix()

I’ve never tried FBObjectPose, but could never get FBPose to work. FBCharacterPose works easily though.



Replies: 0
avatar
  • pmsimard
  • Posted: 04 January 2012 10:05 AM

The Doc is wrong. Use this instead

bindPose FBObjectPose()
bindPose.Name "test"


Replies: 0