Skip to main content
Dhal_Naka
Inspiring
September 1, 2021
Question

How can I check if a compositiones is openned?

  • September 1, 2021
  • 2 replies
  • 236 views

I need to know if a composition is opened in the working tabs or not, but I can't find the way. Any idea about how could I do it?

 

The reason it's that all the existing compositions + their subcomps are going to be opened, and I close them after reading all their layers data, BUT I'd like to keep opened the ones that were opened before starting the data extraction process.

 

Cheers!

This topic has been closed for replies.

2 replies

Mylenium
Legend
September 2, 2021

I don't think there is any way to do that unless you have a specific item in the comp to scan for or a specific name of the comp itself with the real point being that AE allows you to close the timeline panel or the comp viewer independently, so there is apparently no underlying data structure other than the internal IDs used under the hood that would trigger warnings and such and potentially could be referenced in a script.

 

Mylenium

Community Expert
September 1, 2021

I would use the flow chart to open each nested comp I need to look at. That is much more reliable than drilling down through your Main comp.

 

I would also make sure that my Project Panel was completely organized with folders appropriately named so nested comps (pre-comps) are all in a separate folder for each main comp.

 

The only workflow that I can think of that will keep the original timelines open would be to open the Main comp that contains the nested comps you want to open (no such thing as sub comps), then click and drag that timeline above or below the timelines you already have open. You will now have two timeline panels in your UI. When you double-click on any nested comp, it will open in that panel group. When have finished with them all you can just close the main comp panel group and you are done. 

Dhal_Naka
Dhal_NakaAuthor
Inspiring
September 2, 2021

Thanks for your reply Rick!

 

I tested it and the script it still closes the opened compositon even if they are in a different timeline... Such a pity.

 

Again, thanks for your help!