Don't loop in all selected layers since command only works in displayed comp...

Added comment