private void createAnimMasks() {
        Armature armature = skinningControl.getArmature();
        ArmatureMask idleMask;
        ArmatureMask danceMask;

        if (useSingleLayerInfMask) {
            // Create single layer influence masks for idle and dance layers
            idleMask = new SingleLayerInfluenceMask(idleLayer, animComposer, armature);
            danceMask = new SingleLayerInfluenceMask(danceLayer, animComposer, armature);

        } else {
            // Create default armature masks for idle and dance layers
            idleMask = new ArmatureMask(armature);
            danceMask = new ArmatureMask(armature);
        }

        // Assign the masks to the respective animation layers
        animComposer.makeLayer(idleLayer, idleMask);
        animComposer.makeLayer(danceLayer, danceMask);
    }
Creates animation masks for the idle and dance layers.
jme3-examples/src/main/java/jme3test/model/anim/TestSingleLayerInfluenceMask.java