Add some Global variables named 'from layoutX_to_layoutA', 'from layoutY_to_layoutA', 'from layoutZ_to_layoutA', etc...
Anyway, then just add 1 to them when you leave a particular layout, then check for them on the incoming layout with 'on layout start'. Use that to determine where to spawn/move player.
Don't forget to clear them when you are done.
Cheers, T