Some of Scotland's party leaders have revealed plans to don superhero pants and pyjamas in support of a charitable cause.