Jason Sudeikis, Jennifer Aniston

Jason Sudeikis and Jennifer Aniston star together in a new comedy "We're the Millers." (Carolyn Cole / Los Angeles Times)

NEW YORK — When Jennifer Aniston heard last month that Jason Sudeikis was exiting "Saturday Night Live," she sent the comic actor a text. "So sad you're leaving — selfishly — but good for you. An enormous life awaits," she wrote.

Her advice in person was a little more portentous.

"Brace yourself for what the next year will feel like," the actress said to Sudeikis as she sipped coffee with him at a downtown hotel last week. Aniston had retired her own signature persona, "Friends" mainstay Rachel Green, after more than a decade, and she knew there was a tendency to underestimate the feelings involved.

PHOTOS: Hollywood backlot moments


Hollywood Doggie Beach Pictures

"It's an empty, gaping wound that creeps up and hits you out of nowhere," she continued. "You suddenly don't have the structure and the family."

Sudeikis nodded. "But at least when you stopped, you guys shut down the show. I'll be down the street Tuesday night, which is the hardest night at 'SNL' — writing night — phantom-typing on my desk," he said with a hint of moroseness.

New beginnings are on the minds of both actors as they prepare for the release on Wednesday of their comedy "We're the Millers." Sudeikis, 37, and Aniston, 44, each play lost souls — he a down-on-his-luck pot dealer and she a struggling stripper — who enlist a pair of teenagers (Emma Roberts and Will Poulter) to pose as a fake family so they can smuggle a stash of drugs from Mexico in an RV as part of a get-rich-quick scheme. The R-rated film from director Rawson Marshall Thurber ("Dodgeball") — made with the help of a quartet of credited writers and plenty of improvs from Sudeikis — takes the family road-trip comedy pioneered by movies such as "Vacation" and adds a subversive twist.

The film thrusts Sudeikis into a new light. As he prepares to leave the NBC show on which he's toiled as an actor and writer for the last 10 years, he is tackling a lead role in a Hollywood movie for the first time, toggling between a chirpy fake suburban dad and rough-around-the-edges arrested adolescent.

VIDEO: Upcoming summer films

Aniston is experiencing her own shift. After going against type with a supporting part as a sexually aggressive dentist in 2011's "Horrible Bosses," she pushes further here with a lead role involving, among other things, an elaborate exotic dance in lingerie to get her fake family out of trouble.

"I'm always fighting the 'Is this like Rachel?' hanging over my head," Aniston said, citing filmmakers' unwillingness to allow her to break from girl-next-door roles. "I'm doing something like this movie to make things a little more interesting to myself but also to surprise people with elements of what I can do." (She tries once more in September with a role in the harder-edged Elmore Leonard adaptation "Life of Crime," which closes the Toronto International Film Festival.)

Sudeikis and Aniston offer contrasting comedic styles — he the Second City veteran and improv master, she the star of a long-running multicamera sitcom. Though that might seem like a wobbly combination, the pair said it proved a good mix on "Millers."

Sudeikis would draw on his background to line up a series of quick-hit improvs. He helped come up with a raunchy joke in a scene involving a Pictionary game (let's just say a skateboard, male genitalia and famed overseas military mission are involved) and sneakily subbed in the "Friends" theme song during a TLC musical cue to get a rise from Aniston. (The scene winds up in the end-credits.)

He also had to roll with it while Nick Offerman, as a square road-tripper encountered along the way, spontaneously inserted his finger in Sudeikis' ear during an awkward, sexually charged scene. Not missing a beat, Sudeikis began massaging Offerman's privates.

ON LOCATION: People and places behind what's onscreen

"Jason comes at comedy like a boxer," Offerman said. "He's always dancing around, sometimes throwing jabs, sometimes throwing hooks."

Aniston's comedy, meanwhile, is far more low-key — to some critics, even generic. But those who worked on this movie said she brings her own skill to balance Sudeikis' comedic rat-a-tat.

"There's something incredibly difficult about taking a written line and making it seem like the most natural thing in the world," Thurber said. "I don't know if Jen gets enough credit for that."

On-set skills were especially necessary on this movie. The "We're the Millers" script was one of those Hollywood projects that sat on the shelf for nearly a decade, with a revolving door of actors and directors unable to get it off the ground at Warner Bros.' New Line. It was only jumpstarted with the interest of Sudeikis and Aniston, who had worked together on "Bosses" and the lightly seen action comedy "The Bounty Hunter," and whose big-screen stock was rising. Sudeikis' attachment spurred Aniston to do the same, and the project was finally greenlit.

Still, the iterations took their toll. Though the movie has a number of laugh-out-loud set pieces, Aniston acknowledges they were "plugging up holes" right through production — not least because it isn't easy to capture the right tone in a movie about a pot dealer pretending to be a suburban husband so he can smuggle drugs.