#---------- 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")
Adding to this thread: The above code seems to work just fine in Motionbuilder 2010. I wonder if this is something that can be remedied with a hotfix?
I’m calling this resolved. What I’ve discovered is that if i execute “myCharacter.SetCharacterizeOn( True )” alone or as the last line in a script, It crashes. If I do something after that, like “myChar =FBApplication().CurrentCharacter”, all seems to be OK. I guess this is just something finicky with Motionbuilder 2012?