-
Check if there are any (visible) layers at the current time
Hey guys,
I have a question. In order to slightly automate specific animations of an overlay appearing and disappearing in my main timeline, I would like to script the animation based on whether there is a layer displaying something at the current time. This way, if I add a new layer with to the comp, my main timeline would automatically animate the comp in at the starttime of the layer and animate out at the endtime of the layer.
Furthermore, if there are overlapping layers, it should just animate out as soon as no more elements are active on the timeline.
Below I made a small representation of a timeline with some layers
Animate: In Out In Out In Out
Layer 4:------|------|--------|---------------|--------|----[#######]---
Layer 3:------|------|--------|---------------|--------[######]---------
Layer 2:------|------|--------[###############]-------------------------
Layer 1:------[######]--------------------------------------------------
Anyone with a nifty way on how to detect if there’s anything to show at the current time thoughout all layers in the comp?
Cheers,
Allard