Skip to main content
Participant
June 28, 2022
Question

Please! include item.index to ExtendScripot

  • June 28, 2022
  • 2 replies
  • 552 views

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!

This topic has been closed for replies.

2 replies

Dan Ebberts
Community Expert
Community Expert
June 28, 2022

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().

Brian5ED9Author
Participant
June 28, 2022

app.project.activeItem.index 
app.project.itembyID(idNumber).index

 

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.

Dan Ebberts
Community Expert
Community Expert
June 28, 2022

Yup, good point. Forgot about that one.

Joost van der Hoeven
Community Expert
Community Expert
June 28, 2022

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

Brian5ED9Author
Participant
June 28, 2022

Thank you Joost. I have followed your reommendation. Cheers.