I have tried scripts, plugins, and many other things to get a clean ambient occlusion pass, and this is my prefered method. I use Autodesk's 3DSMAX Design, Chaos Group's V-Ray, and Adobe's Photoshop.
In computer graphics, ambient occlusion is used to represent how exposed each point in a scene is to ambient lighting
An ambient occlusion pass is an easy way to add detail to your fine lines, and it also dirties up your rendering, for a more realistic image.