Hi there
I have two images ('imageA' and "imageB') in my project window.
'ImageA' is on the timeline in a comp.
I'm trying to script AE7 to get the layer in the timeline to swap it's footage from 'imageA' to 'imageB'.
The source layer property is read only...
Has anyone else succeeded?
Can anyone suggest something magical. I'm at a bit of a loss.
thanks a lot[/i]
Replacing one picture for another
Moderator: byronnash
try using the source.replace function.
if you can make a variable of the second image's source, you should be able to replace it with the new image. If you are looking to script the "replace layer source" method in the AE GUI, you may have to wait on CS3.
Code: Select all
yourLayer.source.replace(newsource);