Ever the professional, Kevin Hart stayed assiduously upbeat during Wednesday night’s Los Angeles premiere of raunchy comedy “Get Hard” at the TCL Chinese.

“I loved how it’s a movie with a lot of layers and a tiny message about friendship,” he said on the red carpet. “You peel off some of the layers to their onion and the characters realize that they’re not that different from each other.”

Hart noted he was particularly pleased about the scenes shot in front of a Beverly Hills mansion, mocked up to simulate a prison environment. “I love the scene on the courtyard showing the two different worlds,” he added.

Edwina Findley, who play’s Hart’s wife, said she loved working with him, adding, “I put Kevin in his place.”

“Get Hard” stars Hart as an aspiring homeowner who’s hired by Will Ferrell’s character to provide prep on dealing with prison life. It received a mixed reaction at its March 16 world premiere at South by Southwest, with audience members asking questions about racism and homophobia of director Etan Cohen, who’s making his feature directing debut.

Nine days later, Cohen asserted he was in top form.

“It’s a dream come true to be here,” he mused. “This is like the third trimester, getting to this point.”

The post-screening bash took place at Sadie’s.

(Pictured: Greg Silverman, president of production/Warner Bros. Pictures, actor Will Ferrell, president of worldwide marketing/Warner Bros. Pictures Sue Kroll, actor Kevin Hart, Warner Bros. CEO Kevin Tsujihara and writer-director Etan Cohen at the L.A. premiere of Warner Bros. Pictures’ “Get Hard”)