Hi,
I'm experiencing a crash when I characterize using the myCharacter.SetCharacterizationOn( True).
All seems to be working correctly until I execute this line. When I do so, the charaterize check box turns on and Motionbuilder freezes. Any suggestions on how to remedy this?
Thanks!
#--------------------
from pyfbsdk import *
myCharacter = FBCharacter ("Test_Char")
myCharacter.InputType = FBCharacterInputType.kFBCharacterInputStance
myCharacter.ActiveInput = True
#---------- This custom function adds a joint to the passed body part
def addJointToCharacter ( characterObject, slot, jointName
😞 myJoint = FBFindModelByName(jointName)
property = characterObject.PropertyList.Find(slot + "Link")
property.append (myJoint)
#----------this will assign the joint 'Hips' into the character's 'Hips' slot, rinse wash repeat.
addJointToCharacter (myCharacter, 'Reference', 'Reference')
addJointToCharacter (myCharacter, 'Hips', 'Hips')
addJointToCharacter (myCharacter, 'LeftUpLeg', 'LeftUpLeg')
addJointToCharacter (myCharacter, 'LeftLeg', 'LeftLeg')
addJointToCharacter (myCharacter, 'LeftFoot', 'LeftFoot')
addJointToCharacter (myCharacter, 'RightUpLeg', 'RightUpLeg')
addJointToCharacter (myCharacter, 'RightLeg', 'RightLeg')
addJointToCharacter (myCharacter, 'RightFoot', 'RightFoot')
addJointToCharacter (myCharacter, 'Spine', 'Spine')
addJointToCharacter (myCharacter, 'LeftArm', 'LeftArm')
addJointToCharacter (myCharacter, 'LeftForeArm', 'LeftForeArm')
addJointToCharacter (myCharacter, 'LeftHand', 'LeftHand')
addJointToCharacter (myCharacter, 'RightArm', 'RightArm')
addJointToCharacter (myCharacter, 'RightForeArm', 'RightForeArm')
addJointToCharacter (myCharacter, 'RightHand', 'RightHand')
addJointToCharacter (myCharacter, 'Head', 'Head')
#---------Turn Characterization on = Crashes MoBu!
myCharacter.SetCharacterizeOn( True )