Yes, item.id is cool, but it's not serial, and sometimes you need to iterate through items based on their indexes, trusting the indexes are in numerical order. When I need to get an item's id I need to use its name to loop through the entire project manager until I get a match. It just is so much for something so simple and it feels like item.index should be a thing, just like layer.index is! Please!
For example when you import a folder and want to use activeItem.index to get its index and loop through its contents. Loop through the TOTAL amount of its contents, not just the top layer inside the folder.
It really seems like this should take almost 0 effort to add, but it would benefit the community a lot!
Copy link to clipboard
This is user to user forum where we users help each other. The Adobe engineers do not always read everything here. If you feel strongly about a (new)feature or (bug) fix please post it on uservoice, as it will be read by the engineers: https://adobe-video.uservoice.com/forums/911311-after-effects
Thank you Joost. I have followed your reommendation. Cheers.
Since the only way to access items currently is by their index, it seems like this wouldn't give you much unless they also added a .item(name) variation to app.project.item().
Both are useful after importing a new item into the project, or duplicating an existing one(after which the item becomes selected), or creating functions that operate on the selected items if you want to store selection in an array.
Yup, good point. Forgot about that one.