Family Law Questions? Ask a Family Lawyer Online.
I would suggest that, but for a dangerous situation, that would be a bad idea.
The judge will make a custody determination based on the best interest of the child. If the custodial parent is not allowing the other parent even requested visitation then the custodial parent will not look like they are acting in the best interest of the child when standing in front of the judge.
In the judge's mind it will his or her decision will not be based on who has possession of the child at the time of the hearing.
Again, only in situations where he custodial spouse and or the child's life is endanger would hiding the child be advisable.