ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Expressions for CC12 from 2014

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Scott Moore
Expressions for CC12 from 2014
on Jul 6, 2017 at 3:05:47 pm

I need the following expression written for CC12. It's from a project that was built for 2014.

It is used to create a "space" between two text lines side by side. I think the "RecAtTime" is something newer to 2014 and up.

Any help is greatly appreciated.

Scott

gap = 0;
L = thisComp.layer("Show");
rect = L.sourceRectAtTime(time,false);
x = L.toComp([rect.left+rect.width,0])[0];
[x+gap+width/2,value[1]]


Return to posts index

Dan Ebberts
Re: Expressions for CC12 from 2014
on Jul 6, 2017 at 4:17:12 pm

If your AE version is prior to sourceRectAtTime(), you don't really have any good options. You can find some hacks out there that use sampleImage(), but they are slow, inefficient, and ugly.

Dan



Return to posts index

Scott Moore
Re: Expressions for CC12 from 2014
on Jul 6, 2017 at 4:21:34 pm

Thanks Dan,

I was afraid of that. I will look up that code and see what it says. Might be easier to do it manually.


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2017 CreativeCOW.net All Rights Reserved
[TOP]