• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

How do I maintain the offset in trim paths when the size changes

New Here ,
Aug 17, 2020 Aug 17, 2020

Copy link to clipboard

Copied

I have created a trim paths animation & I have a specific offset. This offset changes when I change the size of rectangle / any shape. Is there any expression to maintain the offset?

Thanks!

TOPICS
Expressions , How to

Views

157

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

LEGEND , Aug 17, 2020 Aug 17, 2020

Not really. You would have to re-create the entire Bezièr formula as expression code more or less. AE doesn't provide access to parameters liek relative and absolute path lengths and one would have to do the calculations. For a simple rectangle it would be easy - 2*a + 2*b with a and b being the side lengths. Similarly you could accomodate rounded corners by including the 2*r*Pi, but that#s pretty much where it ends. Any more complex shape will require additional calculations with growing comple

...

Votes

Translate

Translate
LEGEND ,
Aug 17, 2020 Aug 17, 2020

Copy link to clipboard

Copied

LATEST

Not really. You would have to re-create the entire Bezièr formula as expression code more or less. AE doesn't provide access to parameters liek relative and absolute path lengths and one would have to do the calculations. For a simple rectangle it would be easy - 2*a + 2*b with a and b being the side lengths. Similarly you could accomodate rounded corners by including the 2*r*Pi, but that#s pretty much where it ends. Any more complex shape will require additional calculations with growing complexity. Some of the burden could likely be taken off your shoulders by buying scripts like Trails from AEScripts, though, that set up expressions for these calculations.

 

Mylenium

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines