When obtaining child custody in California you will need to research the family law code for California. Each state has different laws pertaining to divorce issues. Custody will be determined by a judge in court. The judge will factor in all issues surrounding your case. Finances and living arrangements will be considered. The ages of all children involved in the divorce will be considered. The school the children attend, and proximity of the school to the parents homes may also be a factor when creating a child visitation schedule. Furthermore, if there is any history of abuse the judge may arrange for supervised visitation if he feels the children's safety is in jeopardy.