In her new book, Why Not Me?, the actress reveals she wanted to look her best for a planned meeting with the 127 Hours star for her hit comedy show The Mindy Project.

In the scene, she appeared in a whipped-cream bathing suit.

She writes, "James Franco was going to be on the show and I was going to have a lot of scenes with him. Like every heterosexual woman and gay man in the country, I think James is a very mysterious and sexy weirdo... I didn't want him to feel my bra-strap pudge on the set.

"My jeans hung on me and everything looked so good. I could wear things I had long ruled out for myself, like jeans shorts and midriff-showing tops. Basically I could dress like a s**tty teenage hitchhiker and it felt great."