I have an animation which is a series of SequentialAnimation. I start it and it runs to the end. Is there a way of reversing it without using transitions or designing another series of SequentialAnimation the other way around?

I run it by setting a variable to a 0 or or 1. I would like it to run when this variable is 1 and then reverse to the beginning from where it could be when the variable is 0 for instance.

Any help is appreciated.

Thank you.