selecting a project item when you don't know it's index
Posted: March 25th, 2006, 9:33 pm
how would one go about selecting a project item when you don't know it's index?
i can see how to retrieve all items of a specific type, but i can't get the one i want because i can't seem to select it by name, which is pretty much the only thing way i can think of doing it.
as far as i can see, there's no such thing as app.project.item.name, meaning i can't do a for/while to find a compItem with matching name, and trying to retrieve
shadedComp.index
[given that shadedComp = myComp.layers.precompose(layerIndices, layerComp.name + " :: Shaded", false);]
doesn't work.
i can see how to retrieve all items of a specific type, but i can't get the one i want because i can't seem to select it by name, which is pretty much the only thing way i can think of doing it.
as far as i can see, there's no such thing as app.project.item.name, meaning i can't do a for/while to find a compItem with matching name, and trying to retrieve
shadedComp.index
[given that shadedComp = myComp.layers.precompose(layerIndices, layerComp.name + " :: Shaded", false);]
doesn't work.