-
Suggestion required : How to inversely link yposition of layer A to xposition of layer B
Hi guys,
I am a newbie when it comes to after effects expressions, I have a very basic high school level coding background in c++ and flashscripts, so though I do understand most of the concepts I dont understand all of them so if you find my questions a little silly or naive please bear with me.Problem :
I want to link the Yposition of a layer (A) to the Xposition of another layer (B) in a reversed way.
For example, if the Xposition of layer B increases positively from 0 to 10, I want that value to affect the Yposition of layer A & change it from 0 to -10I have created variables namely xyz and made the 2 layer’s positions directly proportional and equal to each other but I dont know what to do next.
PS : if I’m not clear in what I am asking here; let me rephrase : This is for inversely linking X position of a layer to the Y position the positions of another layers in AFTER EFFECTS CS 5.5 with the help of expressions.
x = thisComp.layer("Medium Gray-Red Solid 1").transform.position[0];
y = thisComp.layer("Medium Gray-Red Solid 1").transform.position[1];
z = thisComp.layer("Medium Gray-Red Solid 1").transform.position[2];
[x, y, z]