Ewan McGregor has said he would return to film in Scotland "in a flash" if the right script came his way.
And the Scots actor, who shot to fame in Trainspotting, admitted a sequel to the cult movie "might" be the project to tempt him back home.
"I think it might be extraordinary to see a sequel 20 years after the original," said the Los Angeles-based star, who played the role of heroin addict Mark Renton in the 1996 film.
The screen star was speaking at the Edinburgh International Film Festival (EIFF) on the day of the UK premiere of his latest film The Last Days In The Desert, in which he plays Jesus.
"It's absolutely lovely to come to the Edinburgh Film Festival," said the Perthshire-born star.
"I've always loved to be here. It's nice for me because I'm coming home. It's nice to be here with a film that I really adore."
Asked what would tempt him to film back in Scotland, he said: "Oh just a good script. I'd be back in a flash.
"I've been very fortunate to come back and make four or five movies in Scotland since I left. I loved that. I'm sure there will be one in the future, it just depends when it comes. I don't go out to look for it necessarily but usually one finds me in the end. I hope so because I do enjoy working here a lot."
As for whether a script for Trainspotting 2 will be the one to get him filming once again back home, he said: "Well it might be, I don't know. I would be up for it, I've said that to Danny (Trainspotting director Danny Boyle).
"I haven't seen any script yet or anything and I don't know if there is one. There is a big idea that it might happen but I don't know that it is happening, I really don't."
McGregor said he came round to the idea over the last five or six years after initially feeling reluctant about the possibility.
"I just think I've changed my opinion about it. We've all moved on and there's a lot of water under the bridge.
"I miss working with Danny. I did some of my best work with him and he is, to date, one my favourite directors I've ever worked with because he's such a brilliant director."
McGregor's latest film, The Last Days In The Desert, is an exploration of the Biblical account of Jesus returning from the 40 days he spent in the desert.
Directed by Rodrigo Garcia, it substitutes southern California for the plains outside Jerusalem and sees McGregor take on dual roles as Jesus and the devil.
McGregor said: "It's a film that I was very passionate about making and I had an extraordinary experience making this movie with Rodrigo Garcia. It's an artistic movie, it's got a slow pace, it's a beautiful film, I think.
"It (the EIFF) is a really perfect place to launch it from."
The actor admitted that playing such a role was "a little overwhelming".
He said: "In the process of coming to the role I did quite a lot of reading. I read quite a lot of contemporary books that had been written about Christ, which were less helpful in a way because they're trying to tell the story of who Jesus really was and maybe discount some of the Bible stories."
He went on: "It's not a Biblical film, it's not a film about Jesus. It's actually a film about fathers and sons, that's really what it is.
"Once I started concentrating more on that and concerning myself less about the sort of worries of what people's expectations are, what people might expect to see, and just started focusing on a man who's having difficulty communicating with his father then it became easier and maybe more truthful, I hope."