How to reconnect a curves between FBX files using the SDK

fbx
python

#1
# -- output animation data - create a new curve node if necessary.
    curves = []
    for i in range(3):
        curve = curve_node_in.GetCurve(i)
        curves.append(curve)

    # -- copying Animation curves from one to the other.
    for i in range(3):
        curve_node_out.CreateCurve(curve_node_in.GetName(), i)
        curve = curve_node_out.GetCurve(i)
        curve.CopyFrom(curves[i], True)