Visitors to the Maryland State House on Thursday were more likely to catch a glimpse of a movie star than a lawmaker.

Actress Olivia Wilde (Eva Agostini/Associated Press)

Here’s the plot, according to the Internet Movie Database: “A straight-laced pharmacist’s uneventful life spirals out of control when he starts an affair with a trophy wife customer who takes him on a joyride involving sex, drugs and possibly murder.”

For the filming, the historic but vacant Johnson’s Building, at the corner of State Circle and Maryland Avenue, was transformed into a pharmacy.

Maryland Gov. Martin O’Malley (D) recently touted the production, which is scheduled to film for five weeks at sites across Maryland. The state estimates the production could generate more than $7 million in spending and create 340 jobs for local crew, cast and extras.

“We look forward to welcoming the cast of ‘Better Living Thru Chemistry’ to Maryland,” O’Malley said in a statement. “This film, and the many film projects that have chosen Maryland recently, help create hundreds of jobs and generate new business for the local companies that support this industry.”

Maryland lawmakers are scheduled to return to Annapolis on Monday for the start of a three-day special session on taxes and the budget.