Jennifer Garner and Ben Affleck played friendly exes at an Oscars party.

The former couple both attended the 2016 Vanity Fair Oscar Party Sunday night. They were spotted briefly greeting each other but later parted ways.

The exes had spent the day before together at their son's birthday party.

The pair have maintained they are on friendly terms since their split last year.

Garner told Vanity Fair that she would marry Affleck all over again if she went back in time and that his alleged affair with their nanny did not contribute to their divorce.