Hi Steve,
thanks for your reply!
Your set up works great for the “x”-position between A and B. But I was aiming for the “y”-offset. ????
Maybe you have an idea for that as well. Plus I would prefer to have C not parented, but everything set via expressions. ATM for centering, I use in the position of C:
p1 = thisComp.layer(“A”).transform.position;
p2 = thisComp.layer(“B”).transform.position;
(p1+p2)/2
…yes, I will add a slider to that later on as well. ????
In the rotation of C, I use:
p1 = thisComp.layer(“A”).transform.position;
p2 = thisComp.layer(“B”).transform.position;
vec = p2 – p1;
radiansToDegrees(Math.atan2(vec[1], vec[0]))
Now, it would be fantastic to add a “y”-offset to the position via a slider, which works in a rotated mode as well.
Thanks, Lars.
