Last week he was brought into court in a wheelchair and pleaded guilty to a charge of attempted extortion.
Sean Templeton, defending, told the hearing: “It is clear that he has had an extraordinary life, thrust into the public gaze in the 1990s by attending a school when he was over the age of 18.”
He added MacKinnon had always wanted to be involved in medicine to “assist the public”, but his “ambitions to become a doctor came to an end”.
Templeton said after he was exposed, it had “characterised” his life in the many years since, including the docudrama which MacKinnon “did not agree to”.
The defence advocate said: “It is something that has dogged him since the 1990s.”
MacKinnon had been assessed by a psychiatrist after his initial appearance in court in late September last year, but it was eventually concluded that he was “fit to stand trial”.
Templeton told the court MacKinnon was “frail” and suffered from uncontrolled movements in one of his arms.
Lady Anwar continued his remand in custody as sentencing was deferred for reports until a later date.
MacKinnon is currently being held at HMP Barlinnie in Glasgow.
She told him: “You subjected Mr and Mrs Whiting, both in their 80s, to a shocking and terrifying ordeal in their home.
“It is likely you will face a significant custodial sentence.”
