public Action setCurrentAction(String actionName, String layerName, boolean loop) {
        AnimLayer layer = getLayer(layerName);
        Action currentAction = action(actionName);
        layer.setCurrentAction(actionName, currentAction, loop);

        return currentAction;
    }
Run an action on specified layer.

@param actionName The name of the action to run.
@param layerName The layer on which action should run.
@param loop True if the action must loop.
@return The action corresponding to the given name.
jme3-core/src/main/java/com/jme3/anim/AnimComposer.java