A 12-year-old schoolboy has landed a movie role alongside Hollywood stars Sam Neill and Peter Mullan.

Dylan Neilson is set to appear in Tommy's Honour, which focuses on the stormy relationship between championship golfer Old Tom Morris and his equally gifted son.

It is directed by Jason Connery - son of Sir Sean Connery.

Read more: Jason Connery on Tommy's Honour, history, drama, legacy and the Edinburgh International Film Festival

Dylan, who is a pupil at St Thomas of Aquin's in Edinburgh, will be attending the period drama's premier at the opening of the city's International Film Festival today (Wed).

And he described his spot in the film as the "proudest achievement of my life".

Dylan, who plays Old Tom's other son, Jamie, in the film, said: "It was a great opportunity but also a really fun experience. I always wanted to be an actor but meeting Jason has made me even more determined.

The Herald:

"He game me some advice - 'Just keep your head down and go with it'."

His proud mum Naomi prepared Dylan for meeting Connery by showing him episodes of 1980s television series Robin of Sherwood, in which he played the hero.

And she revealed that the youngster - who met the 53-year-old actor and director during the costume fitting before filming last summer - was shocked to learn the star was no longer sporting the same long blond hair.

Actress Naomi, 44, added: "Dylan's always loved performing on stage but hadn't done a film before. Jason Connery was amazing.

Read more: Jason Connery on Tommy's Honour, history, drama, legacy and the Edinburgh International Film Festival

"He was absolutely brilliant with the kids and really funny.

"He made the experience really fun. Dylan often said 'I really like acting' but this inspired him to pursue it."

Tommy's Honour follows the relationship between Old Tom Morris (Mullan) and his son Tommy (Jack Lowden), who matched his father's golfing achievements.

But despite their shared passion, the pair clash after Tommy marries a woman of lower standing who has a shameful secret.

The Herald:

Tommy then must choose between family loyalty and his dreams of forging his own path with the woman he loves beside him.

Dylan, who was 11 when filming started, appears in the family scenes in the early part of the film, and is seen in church and studying at home.

The youngster has been attending Strange Town Youth Theatre for the three years and has impressed creative director Ruth Hollyman.

She said: "He is a very natural actor and his performances are very truthful which is why he got the role. It's horribly competitive in the acting world but he's got the talent and the drive to make it.

Read more: Jason Connery on Tommy's Honour, history, drama, legacy and the Edinburgh International Film Festival

"There is nothing fake about him and he is able to take those lines and speak them as if he is the character."

Dylan's younger brother, Harvey, met with Danny Boyle recently for a small part in Trainspotting 2, while his parents run city-based production company Filming Scotland.