public int getMorphIndex(String morphName) {
        int index = -1;
        MorphTarget[] nbMorphTargets = getMorphTargets();
        for (int i = 0; i < nbMorphTargets.length; i++) {
            if (nbMorphTargets[i].getName().equals(morphName)) {
                index = i;
                break;
            }
        }
        return index;
    }
Get the index of the morph that has the given name.

@param morphName The name of the morph to search for
@return The index of the morph, or -1 if not found.
jme3-core/src/main/java/com/jme3/scene/Mesh.java