Foorage replace

Find out why the . goes before the /

Moderator: Paul Tuersley

Post Reply
Colin Braley
Posts: 13
Joined: July 14th, 2005, 7:33 pm
Location: VA
Contact:

Anyone know how to replace a simple way to replace a layer in a comp with a footageItem.(like what happens when you alt drag a piece of footage onto a layer)? I looked through the scripting guide and can't seem to find a simple way to do this.
~Colin
byronnash
Posts: 321
Joined: July 7th, 2004, 2:30 pm
Location: Charlotte, NC
Contact:

There isn't a good way to do this in scripting. If you can replace the footage source it's pretty easy. But if you want to replace a layer source it gets tricky. You can precompose it in scripting and then put your new item in the precomp, or import it into the comp and make it a child of the layer you want to change. Either way it's sort of messy. Hopefully they will enable that feature in v7.
Colin Braley
Posts: 13
Joined: July 14th, 2005, 7:33 pm
Location: VA
Contact:

Thanks for the info. After reading the Scripting Gude I thought procomposing was the only way to go too but I was hoping one of you guys might have known some method I overlooked
drswoboda
Posts: 3
Joined: May 16th, 2006, 10:35 pm

Was(has) there been any method added to v.7 to do this task?

I wish to modifiy several source comps and replace them into a layer that has animation and position information. I appear to have run into the issue discussed here and can't find a way to do what I can do via the UI with the Alt-Drag action.

Anyone have ideas on this? Oh, And I have not moved up to CS3 version yet.

-David

PS. there are also expressions on the layers. . .
User avatar
redefinery
Posts: 112
Joined: April 1st, 2005, 8:16 pm
Location: CA
Contact:

Colin Braley wrote:Anyone know how to replace a simple way to replace a layer in a comp with a footageItem.(like what happens when you alt drag a piece of footage onto a layer)?
~Colin
hi colin,

if you're using CS3, you can use the AVLayer replaceSource() method.

:jeff
Post Reply