My Thai wife and I divorced back in the 90s, in UK and Thailand, as we'd been Martin both. In the UK, I got "custody" of our 5 year old daughter, although they don't call it that anymore. My daughter lived with me until after uni in the UK. We are very close. Her mum also lives in the UK and they maintain a very good mother/daughter relationship. I got a court order prior to divorce proceedings preventing my ex from taking our daughter abroad. Things sorted themselves out and after a year or two subsequent to the divorce, which was bitter, everything calmed down and peace prevailed. We had built a house in her village which went into my ex wife's mum's name. It's back in my ex's name now. Been empty for years due to family fall outs.
The only real downside to this was my daughter, who has 3 passports, never learnt Thai. I think it's important she maintains contact with her Thai roots as much as her UK ones. She visits me usually twice a year. She loves Thailand. She's smart and good looking like a lot of falang/Thai offspring. It seems to be a good genetic mix.
All's well that ends well.