The best interests of your child always come first in custody cases. Regardless of what you or your ex-spouse want, a court will always make a decision that benefits your child first and foremost. If you and your soon-to-be ex-spouse have your own parenting plan, you may not need to rely on a judge to determine what happens to your child, which can work out better for everyone involved in the case.
If parents can come to an agreement on what they plan to do with custody after their divorce, then the court and judge may approve that agreement. In some cases, the judge may decide the arrangements aren't in the best interests of the child and change the arrangement to suit what he or she thinks is right.