I can't relate to that exact scenario since I don't have children or courts to deal with (at least, not in that way, which is undoubtedly much more stressful than being a witness), but I do know that my father, for the longest time, believed he was a hero. He honestly thought he was "dad of the year" and this is despite his own father, who was abusive, taking time to point out how he was abusive and apologizing sincerely to everyone he abused and then comparing my father's behavior to his own to my father. So, when he actually listened to what I had to say, even if he disagreed with some of it, I was blown away. People can surprise you, even the abusive ones. Oh, and I read in my workbook that often times the abuser sees themselves as a victim too, which I thought was very interesting...
Maybe your ex will realize it in time and will actually listen to what you have to say. But even if he never does, he didn't take away your ability to be happy and to deserve a happy and good life. You are still who you are and no one can ever take that away from you. You are a good and loving person who is deserving of good things and love. You are not a victim; you are a survivor. You may have your battle scars, but they are just that. Give yourself some time and I know things will turn around for you. I know it's difficult and can be super overwhelming, but cut yourself some slack! Most people don't have to deal with PTSD and trauma! You should make yourself a little medal or something as a self-congrats for handling your PTSD and your business. :)