-
[ExtendScript] Get the index of a new item
Hello guys,
I have been looking for some time a way to get the index of an item if I know its name.
In my scene I have one main comp and several subcomp
What I want to do is:Duplcate all the comp and once that is done, replace the old subcomp by the new one.
But I did not find a way to retrieve the index for the created subcomps.
I have to use :
items.[x].layer(“name”).replace()
but dont know how to find x for the created comps.Maybe there is another way of doing, using ID or Name insted of the item index but I can not find it.
any idea of how to do that?
thanks!