I have written a few GAP tutorials which are in the wiki at
None of them specifically address your concerns but perhaps by going
through them, you will gain a better understanding of the overall
process (the "Layer Masks - Clockwipe Transition" is probably the
closest to your actual application and the "GIMP-GAP Overview" might
prove helpful if you are an absolute beginner).
Gimp-user mailing list