This seems to work. It assumes your camera starts out on the comp’s z axis. Start with your pieces arranged at z = 0. Add a Slider Control to each piece and set the value to 100. Add this expression for Positon:
cameraPos = [thisComp.width/2,thisComp.height/2,-888.9];
zControl = effect(“Slider Control”)(“Slider”);
v = (value – cameraPos)*zControl/100 + cameraPos;
Make sure the z value in the cameraPos variable matches your initial camera z position (mine was -888.9);
Add this expression for Scale:
zControl = effect(“Slider Control”)(“Slider”);
value*zControl/100
Adjust the sliders – values smaller than 100 move the piece closer to the camera, greater than 100 move them away. There should be no apparent change in position or size as you adjust the slider – it only shows up when you move the camera (or change the view).
Dan