|
I have this bit off code which works fine on the offset T and R for the parent constraint. But it doesn’t work for the weight.
All I need is to key it and set the fcurve interpolation as constant.
And is there an easier way to set all the curves on that constraint to constant.
W = c.Weight
W.Animatable = True
W.Key ()
print dir (W)
WanimNodes = W.GetAnimationNode ().Nodes
for WNodes in WanimNodes:
WCurves = WNodes.FCurve
for i in WCurves.Keys:
i.Interpolation = FBInterpolation.kFBInterpolationConstant
i.TangentConstantMode = FBTangentConstantMode.kFBTangentConstantModeNext
Thanks
|
|
|
|
I found out.
The weightt doesnt have any nodes under it, off course, so just skip the .Nodes and go straight to .FCurves.
|
|
|