With the expression I mentioned before, the layers would position themselves in 3D space – you don’t need to run a ram preview to see it happen (assuming you’ve got the camera positioned correctly).
You could do the same thing with a script. There would be a number of ways to set it up, but you could have it look for all the selected layers and position them in 3D space for you.
For your application either method should work fine. I like expressions because I find them easier to write and debug, and when you change them you see the results immediately.
Dan