The custodial problems faced by the character "Amber Waves" after her divorce in Boogie Nights (1997) were based on the custody battle over her son between Veronica and her ex-husband. In fact, she played the judge in the scene where Amber and her husband are
arguing in court about who should get custody of their son.
I'm not a dumb woman, but most people don't have any guidelines when they first get into this business... Seka told me what I had to do, which is that no one has to do anything that they don't want to do . . . The producers will try to get away with as much as they can. To get as much out of an actress for the least amount of money. And that's strictly business.