Link Layer to Resizable Shape
Hi all,
I'm working on a motion graphic template where I have a rectangle I'd like to resize. I've used two slider controls for this. On the rectangle's size parameter, we have:
Width = thisComp.layer("Full Lower Third").effect("Box Width")("Slider");
Height = thisComp.layer("Full Lower Third").effect("Box Height")("Slider");
[Width, Height]
I'm also using a workaround from YouTube to be able to resize this rectangle from the top left corner as if I had moved an anchor point there. On the rectangle's anchor point:
w = content("Rectangle 1").content("Rectangle Path 1").size[0];
h = content("Rectangle 1").content("Rectangle Path 1").size[1];
[w/-2, h/-2]
This works perfrectly.
I have another shape layer that needs to stay aligned to the right hand edge of the rectangle as it resizes, but I've tried everything I know to get this to work. The layer always moves at a different rate to the right hand edge of the rectangle and I haven't managed to get this to work together. I can't use scale properties as it will mess with the proportions of the shapes!
Windows, After Effects 24.0
Cheers!
