@Override
    public void write(JmeExporter ex) throws IOException {
        OutputCapsule oc = ex.getCapsule(this);
        oc.write(weights, "weights", null);
        oc.write(times, "times", null);
        oc.write(target, "target", null);
        oc.write(nbMorphTargets, "nbMorphTargets", 0);
    }
Serialize this track to the specified exporter, for example when saving
to a J3O file.

@param ex the exporter to write to (not null)
@throws IOException from the exporter
jme3-core/src/main/java/com/jme3/anim/MorphTrack.java