Swapping source images with an expression
Posted: April 1st, 2009, 11:01 am
This seems like something AE was not really meant to do, so I'm not sure if there's a simple answer... anyway, lets say I have a list of 50 images in a comp, and I want to display one of those images based on the value of a variable. I have thought of two approaches:
1. Somehow swapping the source of the image, either the file source or the project source...I doubt this is possible with an expression, but just wanted to throw it out there.
2. Including all the images in a comp and dynamically adjusting the opacity. This seems like a more viable approach, but the only solution I can think of involves putting an expression on every layer. While it wouldn't be too hard just to copy the expression to every layer, I'm wondering if there is a way to do this with an expression on just one layer.
Thanks as always AEnhancer folks!
1. Somehow swapping the source of the image, either the file source or the project source...I doubt this is possible with an expression, but just wanted to throw it out there.
2. Including all the images in a comp and dynamically adjusting the opacity. This seems like a more viable approach, but the only solution I can think of involves putting an expression on every layer. While it wouldn't be too hard just to copy the expression to every layer, I'm wondering if there is a way to do this with an expression on just one layer.
Thanks as always AEnhancer folks!