This was the first script I ever used, and I've tweaked it slightly to suit my workflow.
I've adjusted it so that when you precomp a layer (or several), the layer begins at the start of the new precomp, and the precomp begins at the in-point of the original layer. This is different from the original script, where the layer in-point is unchanged and the precomp is trimmed to that point rather than actually being moved there.
I use this script alongside the Magnum edit detector when I am cutting up exported edits into individual compositions for effects and graphics work (one day I will get Automatic Duck...) - hence I've also tweaked the naming convention to reflect the layer number.
When an edit has been locked off and I am working on individual shots in After Effects, I prefer to have each shot in its own composition and starting at the beginning of that composition. This is especially useful if you are working with 3D artists who like working with frame numbers rather than timecode, and render out image sequences beginning with 0.
Hope you find it a useful variation, thanks again to Dan for the original!
-Chrishttp://www.chriszwar.com/HostedFiles/Pr ... ration.jsx