Copy link to clipboard
In the picture I include, I want to autoscale trim path border depend on text scale like this pic
What is the expression should we do for this? P
Could be as easy as adding up the four sides of the rectangle and then subtracting the gap and then filtering it through a linear() expression to get the percentages for the Trim Paths operator. Something like this perhaps:
mGap=thisComp.layer("Image").width; //image width
mPad=20; //extra padding for image
Where the actual gap appears can easily be controlled with the trim path's offset setting, which in your case would be 50% or something like that...
Thank you! I will try your method