public void setTime(String layerName, double time) {
        AnimLayer l = getLayer(layerName);
        if (l.getCurrentAction() == null) {
            throw new RuntimeException("There is no action running in layer " + layerName);
        }

        l.setTime(time);
    }
Sets current time on the specified layer.

@param layerName the name of the Layer to modify
@param time the desired time (in seconds)
jme3-core/src/main/java/com/jme3/anim/AnimComposer.java