-
Move one layer in opposite direction (in Y axis) of another layer
Hello all,
There very well may be a better way to do what I’m trying to use an expression for, but here’s what I’m doing.. I have a sub comp that has the front, and the back of an image (a target) (3-d layers) The main comp, the camera will fly around to reveal the back of the image of the target. Additionally, I am using track mattes on them to put bullet holes in the front and the back based on another pre-comp – for the back, I just flip the subcomp so the wholes line up. The main comp will have a bullet fly through one of the holes.All of this I have working beautifully right now.. I want the target to move a little when the bullet hits it, so I put individual wiggle expressions on the x y and z (linked to sliders for the values) on the layer of the precomp’d target. When viewed from the main comp the back of the target is moving up, when the front of the target it moving down, presumably because I had to flip the back so when the camera comes around it’ll be aligned correctly. I.e. if the wiggle expression results in moving the Y postion + 20, the front image in the pre-comp does indeed move + 20, but the ‘back’ of the target, that layer moves in what appears to be -20. One goe up while the other moves down.
I’m trying to put an expression on the back of the target to detect the amount of the front’s Y movement, then I can do something like value += -1 * movementDelta.
Oh, I almost forgot, I’m on an old version – CS4. I know that newer versions have upgraded effects like the shatter effect where you can specify the back image to be different than the front and etc, but I don’t have that in CS4.