I’m trying to write a tool to manage animation layers in motionbuilder. And one of the attributes I would like to query is animation layer weight ( animated ).
However I can’t seem to find a way to get a handle on this, so I wondered if anyone has done this and could help me out.
I’ve tried to grab it my running through the properties of the layer and catching any animated ones. However when I do this and It correctly returns the weight property. It breaks the keys on the layer and does not return any keys…Any ideas?
props = layer.PropertyList
for p in props:
if p and p.IsAnimatable() and p.IsAnimated():
anim_node = p.GetAnimationNode()
f_curve = anim_node.FCurve