pause all intervals

I probably might be mistaken, but I thought I had seen a line of code to stop or pause all intervals at once (like intervals.stopAll). I searched the manual as well as the api, but see nothing there. Am I mistaken, or is there such a code?

ivalMgr.pauseIntervalsMatching('*')

But you can’t resume them later.

If you want to be able to resume them later, you should keep them :

ivals=ivalMgr.getIntervalsMatching('*')
for i in ivals:
    i.pause()

panda3d.org/apiref.php?page=IntervalManager

If you want a better one :
discourse.panda3d.org/viewtopic.php?t=4439

Thanks
I think I will use this one:

ivals=ivalMgr.getIntervalsMatching('*')
for i in ivals:
    i.pause() 

I can’t get the interval resume though. I tried:

ivals=ivalMgr.getIntervalsMatching('*')
for i in ivals:
    i.resume() 

I was thinking perhaps I need to get the status of all the intervals together and then resume the ones that are paused. I don’t see anything for this though.

What does pattern represent in this?

getIntervalsMatching(self, pattern)
ivals=ivalMgr.getIntervalsMatching('*')
for i in ivals:
    i.pause() 

and this

for i in ivals:
    i.resume() 

you save them in an array

OK Thanks.