How to pause animation using perspective?

I’ve been using caleb p 's perspective library to insert all display objects, including the ones with animation/sprite sheets. So my pause button needs to pause all animation, and it would be easier and faster if I can just use the group inside perspective to run “:pause()” for every objects inside a “for” pairs or ipairs.

How to do it?

I have tried to understand the code and test some stuff myself, but all i get are errors.