Credit: Alberto E. Rodriguez/Getty

Minnie Driver can add her name to the list of actresses who were told they weren’t pretty enough for a movie role.

The Speechless star spoke with Andy Cohen on Wednesday’s Watch What Happens Live, and was asked about the rudest comment anyone has ever said to her in Hollywood.

“I really can’t [name names] because then I’ll never work again, and I have to work because I have a mortgage,” Driver said, before offering, “You know what? The producer of Good Will Hunting did not think I was hot enough to be in that film, and did not want me in the film.”

Driver, 46, ended up getting nominated for an Oscar for her performance in the 1997 film. As for who made the comment, the actress later explained she could not remember specifics but said it “came from the top.”

WATCH: Minnie Driver To Play Adult Wendy in “Peter Pan Live!”

Fortunately the film’s stars and cowriters, Matt Damon and Ben Affleck, as well as its director, Gus Van Sant, had Driver’s back.

“[They] fought very hard for me to play that role,” Driver said. “I am grateful to them until this day.”

The comments hurt, but Driver said she “was also together enough to know that hotness is a perception, not really a point of view.”

Driver joins actresses like Tyra Banks, Sally Field, Leah Michelle, Jennifer Garner and many more who have spoken out about being criticized over their looks when going up for a role.