Adds automation flipping.

Implements #1289.
again, formatting `flipY( m_pat... `