Rob Lowe finally has a sex tape he wants you to see.

In Sony Pictures’ July 18 release “Sex Tape,” the 50-year-old actor, known for making his own infamous sex tape in the late 1980s, plays Hank, a buttoned-up CEO at the office with a penchant for decidedly darker things when left home alone.

The casting of Lowe in what amounts to a small part in the film reflects the actor’s good sense of humor about his past bad-boy behavior. Lowe’s career was nearly derailed when a video he made of himself having sex with two women (one underage at the time) surfaced while he was campaigning on behalf of Michael Dukakis at the 1988 Democratic Convention in Atlanta.

Unlike some of his more serious political roles that included playing John F. Kennedy in the TV movie “Killing Kennedy,” a rising senator in “Brothers & Sisters” and the White House communications director in “The West Wing,” Lowe’s turn in “Sex Tape” was meant for laughs.

At Thursday night’s premiere of the movie at the Regency Village in Westwood, Lowe told Variety that he was drawn to the film because it was “raunchy and funny and original.”

The film, follows a married suburban couple played by Cameron Diaz and Jason Segel who decide to get drunk and make a three-hour long video of themselves having sex. Once the tape is accidentally synced to the cloud, all bets are off.

“It was electric,” Lowe said of how the Hollywood audience responded to the film. “I was concerned with how it would play in front of the industry, but everyone was laughing.”

“It’s like ‘Adventures in Babysitting,’” said Segel. “It’s a one-night, action-filled, no-holds-barred comedy. Plus, who doesn’t like to make people laugh?”

 (Pictured: Rob Corddry and Rob Lowe at the Westwood premiere of “Sex Tape”)