I’ve really been trying at this, but can’t figure it out even though I’ve looked at sites like Dan Ebberts’ expressions lab, Creativecow and AE enhancers.
I have a text logo containing 7 letters in separate 3D layers, where I want all of them to follow the above layers’ scale, rotation and position, based on valueAtTime. To achieve this was easy, I used this example from AE help:
thisComp.layer(thisLayer, -1).position.valueAtTime(time – .5)
But I want an increase in certain values, so that each layer moves 50px closer to the camera in Z-space than the one above, but no increase in X and Y values. I want to do this with null object slider controls so that I later on easily can change the increase. My problem is that the slider controls’ value is one-dimensional while the layers’ position values are 3D. So how can I translate the value from the slider to increase only the Z-position of the layers?
The same problem occurs if I need to control the scale with a slider control, because I dont understand how to use a one-dimensional value to control 3D values. The slider only scales the xScale of the layer, when I want it to scale in all 3 dimensions.