Highlighted

Animate position from sourcRectAtTime().height value to 0?

Explorer ,
Jun 15, 2020

Copy link to clipboard

Copied

I'm building a .mogrt template that has text boxes which animate on from behind an alpha matte. The text boxes will change size based on how much text is in them. I know there must be a clever way to use expressions to position the boxes upward by exactly their own height and then have them stop exactly at 0? I suspect this would use sourceRectAtTime().height and Key, but can't figure out how to pass this height value to the starting keyframe. Thanks!

Topics

Expressions

Views

65

Likes

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

Animate position from sourcRectAtTime().height value to 0?

Explorer ,
Jun 15, 2020

Copy link to clipboard

Copied

I'm building a .mogrt template that has text boxes which animate on from behind an alpha matte. The text boxes will change size based on how much text is in them. I know there must be a clever way to use expressions to position the boxes upward by exactly their own height and then have them stop exactly at 0? I suspect this would use sourceRectAtTime().height and Key, but can't figure out how to pass this height value to the starting keyframe. Thanks!

Topics

Expressions

Views

66

Likes

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
Mylenium LATEST
Most Valuable Participant ,
Jun 15, 2020

Copy link to clipboard

Copied

sourceRectAtTime(key(1).time).height and the rest is just a matter of interpolating it with a linear() or whatever based on actual time.

 

Mylenium

Likes

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
Reply
Loading...