Using Your Currently Selected Character To Generate A List Of All FK And IK Models With MotionBuilder Python
Posted On September 7, 2018
Here is a quick post that will help use your currently selected character to generate lists of all FK and IK models. When ever possible I like to use these funcitons as opposed to generating the list by hand and storing that as a variable.
I can’t remember where I stumbled upon this method, but I am happy to have it!
##Get A List Of FK def GetFK(): fkList = [] for id in fb.FBBodyNodeId.values.itervalues(): if id == fb.FBBodyNodeId.kFBReferenceNodeId: continue model = fb.FBApplication().CurrentCharacter.GetCtrlRigModel(id) if model: fkList.append(model) return fkList ##Get A List Of IK Effectors def GetIK(): ikList = [] for id in fb.FBEffectorId.values.itervalues(): model = fb.FBApplication().CurrentCharacter.GetEffectorModel(id) if model: ikList.append(model) return ikList
As always, I hope this helps.
2 Comments
Have you ever considered writing an ebook or
guest authoring on other sites? I have a blog based upon on the same
subjects you discuss and would love to have you share some stories/information. I know my
audience would appreciate your work. If you’re even remotely
interested, feel free to send me an email. torgi.gov.ru
This post will assist the internet viewers for building up new
webpage or even a blog from start to end. lookad.in