|
So I’m trying to remove all translation keys from a bone. I can iterate frame-by-frame, but there’s a better way in python, right?
I did this using the orsdk, but am not sure how to implement it here.
I imagine it’s similar, but there’s no AnimationNode.Find property. How does the FindByLabel function work?
#pseudocode
get bone name
get the lcl translation node from bone.AnimationNode # not sure how to do this part in python
get the X node
FCurve.EditClear()
get the Y node
FCurve.EditClear()
get the Z node
FCurve.EditClear()
something like that, right? I see the FCurve.EditClear() function, but don’t see how I can go about grabbing the Lcl Translation node without manually iterating through the list and stopping when I find it, e.g.
lmodel = FBFindModelByName( “elbow” )
for bone in lmodel.AnimationNode.Nodes:
if( bone.UserName == “Lcl Translation” )
# clear the T keys off it
|