Would anyone know whether there is a script command to do the same action as Option (Alt) replace an item in the project window ?
Basically I want to (via a script I have already have) create a comp and then replace another comp with the new one which would include every instance it is used.
Find out why the . goes before the /
Moderator: Paul Tuersley
3 posts • Page 1 of 1
I think you're going to have to do it the long way. That is, get the usedIn array for the comp you want to replace, and for each comp in that array, go through all the layers looking for layers whose source is the comp to be replaced--then do a replaceSource(), pointing those layers to the new comp. Sorry if you already knew how to do it.