FORUMS: list search recent posts

Animate opacity using data in text file

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
mike driz
Animate opacity using data in text file
on Feb 3, 2017 at 1:36:35 am

I'm trying to write a simple expression to animate the opacity (on/off) of a solid
according to data in a text file. The text file simply contains one line for each frame and will
specify if solid should be on/off.

Can anyone help me out? thanks for any help you could give.


Return to posts index

Emre Anil
Re: Animate opacity using data in text file
on Feb 3, 2017 at 11:15:18 am

Why don't you just copy the variables to a text layer and use that layer's sourceText for your expression?


Return to posts index

mike driz
Re: Animate opacity using data in text file
on Feb 3, 2017 at 12:38:22 pm

Can you give me any insight on writing that expression?

Either way, thanks for replying! :)


Return to posts index


Emre Anil
Re: Animate opacity using data in text file
on Feb 3, 2017 at 1:45:43 pm
Last Edited By Emre Anil on Feb 3, 2017 at 1:46:43 pm

Here's an example:
Pick-whip your solid layer's opacity to the text layer's Source Text property to change *thisComp.layer("source").text.sourceText*

values = thisComp.layer("source").text.sourceText.split("\r");
f = timeToFrames(time);
if( f < values.length)
values[f];
else
0;


Return to posts index

mike driz
Re: Animate opacity using data in text file
on Feb 3, 2017 at 3:10:29 pm

Emre, thanks for much for your help! I got it to work.

It is much appreciated!

Have a great day :)


Return to posts index

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