declaring the animation buttons as GLOBAL fixed the issue, no need for using intermediary buttons in the midi script proc...