Quantcast
Channel: Adobe Community : Discussion List - After Effects Scripting
Viewing all articles
Browse latest Browse all 2143

How to change image content from script?

$
0
0

Hello,

 

I am using Abode After Effects 2019 and I have the following problem: I have an image in my composition. I need to write a script that

substitutes it's content from several different image files from disk based on some criteria.

 

Something like (in pseudo-code)

var xxx;

if (xxx==1)

  comp.layer.image.src_path="/path/to/img/1.png";

else if (xxx==2)

  comp.layer.image.src_path="/path/to/img/2.png";

...

 

But I can't find information about how to control image's content from script.

 

Can you please help me?

 

Thanks.


Viewing all articles
Browse latest Browse all 2143

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>