Brad Pitt has spent some "wonderful" time with his children.

Brad Pitt

Brad Pitt

The 'Moneyball' actor hadn't seen Maddox, 15, Pax, 12, Zahara, 11, Shiloh, 10, and twins Knox and Vivienne, eight, since Angelina Jolie filed for divorce on September 19, but he was recently granted some visitation time and enjoyed the reunion.

A source said: "Brad has spent some wonderful time with children recently."

Angelina has been granted temporary custody of the children, while both she and Brad have been ordered to seek counselling and the 52-year-old star - who was reported to have got into a row with Maddox on the family's private plane, prompting the 41-year-old actress to file for divorce - is undergoing voluntary drug and alcohol testing.

And the insider claims the 'Big Short' star - whose visits to the children must be supervised - is determined to do "whatever it takes" to maintain his connection to the kids.

The insider added to People magazine: "Brad loves his children more than anything in this world, and they matter more than anything else to him.

"He will do whatever it takes to be with them, now and always."

It was recently claimed that Brad doesn't want to "play dirty" in their custody battle, despite having "so much stuff" he could use against his estranged wife.

Speaking previously, a source said: "There is so much stuff on Angelina but Brad just doesn't want to go there. He told his team he doesn't want to play dirty.

"Brad just wants to work through everything and get to a place where there can be some certainty about what's going on. The kids are the only thing he's hanging on to."

The current custody arrangement is in place until October 20.

In her divorce filing, the 'Maleficent' actress requested sole physical but joint legal custody of the kids, with her estranged spouse granted visitation rights, but Brad wants all custody to be shared.