# Create some boxes with the same name for i in [0..5] b = new Layer name: "box" y: i*120 # A function to find and loop through layer names matching your keyword selectAll = (s, f) -> for l in Framer.CurrentContext.getLayers() f.apply(l) if l.name.match(s) # Animate all the boxes!!! selectAll 'button', -> @animate properties: x: 200