|
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.ArgumentError: Python argument types in
FBObjectPose.__init__(FBObjectPose, str) 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!
|
|
|
|
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.
|
|
|
|
The Doc is wrong. Use this instead
bindPose = FBObjectPose() bindPose.Name = "test"
|
|
|