Skip to main content
Participant
June 29, 2023
Question

AE sort layers by timestamp

  • June 29, 2023
  • 1 reply
  • 304 views

Hi. I want to sort 300+ layers (video, text, shape and etc.) by timestamp of starting. I don't want to do it manually, is there a way to do it quickly? 

Please see the attachment of a small part of my timeline.

Any help is appreciated!

This topic has been closed for replies.

1 reply

Justin Taylor-Hyper Brew
Community Expert
Community Expert
June 29, 2023

You would want to write a script that loops over each layer, gets the source project item, gets the source media, then gets the timestamp info via something like fs.statSync() in Node.js if you're using a CEP panel, (or if you're just using Script UI then you only have the modified date), then sort them accordingly.