I don't think they were wild Smeargle, since it would be pretty obvious why Sketch didn't work in that case: they were asleep. Maybe on the waking turn it would make sense, but the asker's post makes it hard to tell exactly what happened.
But as far as I know, the method in this answer would work -- and it doesn't sound much like what the asker was attempting.