The last time a lot of audiences saw Natalie Portman on screen, she was wearing a tutu. Now she’s wearing a gun belt. For the Oscar-winning actress (the ballet-themed “Black Swan”), her latest release is a test of flexibility, range and ability to adapt. She may be taking the whole Western genre with her.

Directed by Gavin O’Connor (“Miracle,” “Warrior”), “Jane Got a Gun” isn’t exactly a new project. It was made in 2014 and has been — as folks might have said in the Old West — snakebit. More about that below. The film itself, however, may be a period piece, but it has one booted foot in contemporary gender politics.

Jane Hammond (Portman) is living, post-Civil War, in the New Mexico territories with her young daughter and husband, Bill (Noah Emmerich), who arrives home riddled with bullets after a shootout with the Bishop Boys, a gang led by the malevolent John Bishop (an unrecognizable Ewan McGregor). The Bishops want Bill dead; they’ll kill Jane if they have to. Desperate, Jane seeks help from an old love, Dan Frost (Joel Edgerton), who at first refuses her and then — with the reluctance typical of Western heroes about to blow everyone to kingdom come — experiences a change of heart.

But “Jane” is Jane’s story. Jane is the heroine. Jane makes things happen. See this, if you will, as a metaphorical statement about the state of Hollywood, where women might have just gotten off the stagecoach. But nothing happens that isn’t plausible, despite the pyrotechnics, and the more than occasional violence.

James Stewart and Marlene Dietrich in "Destry Rides Again." Photo Credit: Universal Production

“Gavin tends to do work that’s reality-based,” Emmerich said of the director, who was born and raised in Huntington and whose “Miracle” was about the dramatic U.S. Olympic hockey win of 1980. “If it doesn’t feel possible, he doesn’t want to do it. He was always making sure what we portrayed is perceivable as true.”

advertisement | advertise on newsday

Playing a character who’s dying for most of the movie posed its particular challenges, said Emmerich (“The Americans,” “Billions”). “It’s certainly one of the most comfortable jobs I’ve had,” he joked. “But actors rely first and foremost on words, secondly on physical behavior, and this was an exploration how much you can convey through energy, through the eyes. But one thing actors say is that you should be able to perceive a scene with the sound off; it’s storytelling with pictures, after all.”

What was hard to believe, Emmerich said, was how many obstacles the film has faced en route to local screens (it opens Jan. 29). “It was a perfect storm — in fact, one perfect storm after another,” he said. “I’ve never been involved in anything that’s faced so many mishaps.” In addition to many delays, cast changes and production misfires early on, the film’s distributor, Relativity, went into bankruptcy last year, and the film faced a future in distribution limbo.

Enter David Boies, who happens to be the father of “Jane” producer Mary Regency Boies (who is married to Emmerich), and is the lawyer who represented Al Gore after the disputed election of 2000. (He and Bush v. Gore adversary Ted Olsen also joined forces in 2009 to overturn California’s gay marriage ban, Proposition 8.) Adding to the sense of an intrafamilial crisis was the fact that another “Jane” producer, Zack Schiller, is the son of Boies’ law partner Jonathan Schiller (Boies, Schiller & Flexner), and that the film is now being distributed by two old friends/clients, Bob and Harvey Weinstein.

“We had a real fire drill trying to get the film out of Relativity before it went into bankruptcy,” Boies said, “because if not, it would have been tied up for an indefinite period. And then to get it distributed — a number of studios already had their lineups for 2015-16. Bob and Harvey were all very helpful. I think it was partly due to the fact of my relationship with them. But I think their feelings about the film were also a factor.”

Boies, who is fascinated with the American West and said he might have been a history teacher like his father, said the film has importance because of what it says not just about gender disparity, but Americans’ image of themselves.

@Newsday

“I’m really interested partly because of what an exciting 100 years it was, and in part how much that continues to influence our image of ourselves and who we are as a society and a country,” Boies said. “And I think particularly for that reason, the more realistic an approach we get, the better.”

So much of what happens in Westerns is people being bloody and violent, he said, “and while there was a lot of violence in the West, hundreds of times more people have been killed in the movies than were ever killed in the West.”

The biggest leap, it’s suggested, is how little Natalie Portman from Long Island looks like our image of a pioneering frontier woman.

“There’s a limit to realism,” Boies said with a laugh.