Replacing one picture for another

What type of scripts do you need?

Moderator: byronnash

Post Reply
theojones
Posts: 1
Joined: May 1st, 2007, 7:19 am
Location: London

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]
byronnash
Posts: 321
Joined: July 7th, 2004, 2:30 pm
Location: Charlotte, NC
Contact:

try using the source.replace function.

Code: Select all

yourLayer.source.replace(newsource);
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.
Post Reply