There's no magic trick here (especially not divorce), you've got to do the work. Get out and GAL. Leave your W alone. Don't talk about her to or around the kids. Be super-dad. Focus on activities that make you feel better and more confident. Don't talk about your M to friends and family, talk about your GAL activities instead. Make this all about you and the kids.
Why do guys always start with the superdad stuff once the bomb as been dropped? Men here always talk about being attractive to women. You know what's attractive? A man who doesn't neglect his kids and is engaged with his kids. It's sad that it takes a divorce to show many men that they need to be involved in their kids lives.
I understand that for the boomers and older an engaged dad was a rarity, but times have changed.