Cameron Diaz bares all in "Sex Tape" movie

Cameron Diaz poses during the photo call for her film "Sex Tape" on June 18, 2014, in Barcelona, Spain.

Miquel Benitez/Getty Images

Cameron Diaz does something she's never done before in her upcoming movie, "Sex Tape" -- she gets naked on camera.


It's a first for the 41-year-old actress, who described the experience in Esquire magazine as "just a part of the role."

She says her co-star Jason Segel ("Forgetting Sarah Marshall," "How I Met Your Mother") also gets nude on-screen in the comedy.

In "Sex Tape," Diaz and Segel play a bored married couple who decide to spice up things by filming a sex tape. After it's accidentally leaked, they try to get it back.

She also has a labor scene in the film. Diaz has been open about not wanting children in real life, saying she never really wanted to be a mother.

The August issue of Esquire goes on sale July 8. "Sex Tape" hits theaters on July 18.