When director Matt Spicer was casting the title role of his dark tale of obsession and identity, “Ingrid Goes West,” he wasn’t sure whether Aubrey Plaza would be the right fit.

“My only question was does she see this as a comedy?” he recalled thinking. “Or is she going to be able to do some of the more dramatic stuff we’re going to need her to be able to do?”

Consider those questions asked and answered. With her current run of work, Plaza has emerged as a performer of surprising depth and range and a creative force to be reckoned with behind the camera too.

In addition to serving as both star and producer for “Ingrid Goes West,” Plaza produced “The Little Hours,” a randy medieval comedy that opened this summer. The back-to-back indies arrive in the wake of some of the best critical notices of Plaza’s career for her performance on TV’s “Legion.”

In “Ingrid Goes West,” Plaza plays the title character, a young woman who moves to Los Angeles hoping for a fresh start after the death of her mother. First via Instagram and then in the real world, she stalks a woman (Elizabeth Olsen) who seems to have it all — the right clothes, the right boyfriend, the right lunch, the right life.

As Ingrid, Plaza gives a performance that is a finely tuned balance between unhinged comedy and delicate vulnerability, anchoring the movie’s unlikely blend of savage contemporary satire and fine-tuned character study.

Although the movie’s use of Instagram — as well as references to avocado toast, Joan Didion, Clare V. clutch bags and a host of other on-point, au courant LA signifiers — gives it a sense of being very much about right now, the deep well of isolation it draws from conjures feelings that are more eternal. It was those deeper feelings that drove Plaza to become involved in “Ingrid” as a producer to help bring out the movie she thought it could be.

“For ‘Ingrid,’ that movie is really a character piece, at least that’s how I saw it. I wanted to have as much control, and I wanted my opinion to matter as much as I could,” she said recently in Los Angeles. “I saw the movie in my mind when I read it. I was, like, ‘I know what this can be, and as a producer I can help it get to that place.’ As an actor, I can only give my opinion and hope that someone cares.”

Plaza’s committed performance in “Ingrid” also moves the 33-year-old even further from the caustic, disaffected screen persona of earlier roles in movies such as “Funny People” and “Safety Not Guaranteed” and most especially her seven seasons on TV in “Parks and Recreation.”

Spicer co-wrote “Ingrid Goes West” with David Branson Smith; it won the screenplay prize when it premiered this year at the Sundance Film Festival.

The pair talked about movies such as “The King of Comedy,” “Chuck & Buck,” “To Die For” and “The Talented Mr. Ripley” and the TV show “Enlightened,” which all feature a mix of light and dark tones, a catch-in-your-throat sense of humor and a certain play with identity.

“The idea that someone kind of doesn’t have an identity unless they are mirroring someone else was something I really relate to,” Plaza said.

“I don’t know if it’s being an actor or being a person that’s insecure in the world — I don’t know what it was — I felt like I understood the idea of someone that wanted someone to like them so bad and someone that would want to do things that weren’t really OK, but you felt bad for her anyway because her motivations are really pure. Her motivations are coming from a place of loneliness.”

Plaza received rave notices this year for her work on “Legion,” a psychedelic treatise on identity and mental illness set within the world of Marvel’s “X-Men.”

She plays a character who inhabits a complex tangle of multiple identities and personalities and exists within alternate planes of reality, sometimes within a single scene.

On the show, Plaza also performed a brassy solo dance number set to a remix of Nina Simone’s “Feeling Good.”

The role was originally written as a middle-aged man, but show creator Noah Hawley saw something in Plaza that he thought could animate the part in unexpected ways.

“If it wasn’t Aubrey, I don’t think I would have opened it up,” Hawley said. “She is such a surprising performer in general. From one take to the next, she’s always really alive.

“If you’re looking for range, if you’re looking for true exploration of the character, if you’re looking for someone who is really just trying to be in the moment, there is really no one who is more alive on camera because she never wants to feel rote or predictable. She doesn’t want to get bored.”

That restless sense of exploration can be found even in her committed, boundary-busting performances in mainstream comedies like “Mike and Dave Need Wedding Dates” or “Dirty Grandpa,” somehow fitting right alongside her work in headier films such as Hal Hartley’s “Ned Rifle.” There are even her unlikely appearances on the TV procedural drama “Criminal Minds.”

At a time when actors enjoy increasing freedom to move between film and television, Plaza recently completed a guest role on Joe Swanberg’s Netflix anthology series “Easy” and will also appear in the next film from “The Greasy Strangler” director Jim Hosking. She begins shooting the second season of “Legion” soon.

Plaza sees directing in her future, though she doesn’t have anything specific in mind just yet and expressed reluctance to step away from where acting has taken her. “I’m having too much fun,” she said.

Although “The Little Hours,” “Legion” and “Ingrid Goes West” don’t have much in common, together they suggest Plaza has turned a corner into a new phase of her career.

“There’s a place for me, but I’m always fighting,” she said. “It’s not an obvious place for me. People don’t know it until you show them.”

mark.olsen@latimes.com