Minnie Driver may have shined in the 1997 film “Good Will Hunting,” but on Wednesday’s “Watch What Happens: Live,” the actress told Andy Cohen that she almost didn’t get the role because a producer thought she wasn’t “hot enough.”

Driver was asked what the rudest thing anyone in the industry had ever said to her (without naming names).

“The producer did not think I was hot enough to be in that film and did not want me in the film,” Driver said.

The actress, who now stars in the ABC sitcom “Speechless,” then went on to credit Matt Damon and Ben Affleck, as well as director Gus Van Sant, who advocated for her casting. She went on to receive an Academy Award nomination for best supporting actress.

“… I really owe Matt Damon and Ben Affleck … [They] fought very hard for me to play that role and I am grateful to them to this day,” Driver said.

Driver said the comments didn’t really bother her because “‘hotness’ is a perception, and it’s really a point of view, and this dude was no picnic to look at.”

While on the show, Driver also discussed her experience as victim of sexual abuse as a teenager, and how the stigma affects all women. Her comments were initially prompted in response to Donald Trump’s objectifying comments towards women.

“It’s important to talk about it, now has never been a better time to speak up and for young women to feel like they have a voice,” Driver said. “Nobody gets to grab you by anything unless you want them to.”