how to set loop for anim composer?
It will loop by default, if you do not want to loop, use this method and set the loop to false.
what should be passed instead of layer name?
anim composer has no such method
If you want to run on the default layer, pass
This is added in JME 3.6. Use JME 3.6.0-beta3
Not related to the topic, but do yourself (and us probably) a favor by getting sources and javadoc. It will make everything so much more easier.
How to do it:
With 3.5.2, it is also possible to just set the speed to zero to run once, for example: