Reference item by ID
I'm working on a project where I need to be able to reference compositions by their unique ID attribute.
Is there a way to reference to an item in a project based on its ID without having to do a billion if check loops
to see if the ID matches?
Something similar to how you can reference layers by name.
app.project.activeItem.layer("playerItem")
Something like
ID = app.project.activeItem.id
app.project.items(ID)
would be ideal but that doesnt seem to work.