Skip to main content
Inspiring
December 14, 2022
Question

How to loop through all the frames of the current composition?

  • December 14, 2022
  • 1 reply
  • 321 views

Hi all!

 

How to go through all the frames of the current composition ???

I need to compare the value of the TRANSPARENCY value, of a certain layer, for each frame of the composition .

This topic has been closed for replies.

1 reply

Mylenium
Legend
December 14, 2022

Same as your other question about the red dot. A complex sampleImage() expression. I'm honestly getting the impression you are trying to use AE as a scientific/ technical analysis tool for which it isn't equipped and never was meant to. If that's really the case, your time is better spent learning Python and working with the libraries there.

 

Mylenium

AnyONAuthor
Inspiring
December 14, 2022

I don't know how scientific the problem I'm trying to solve is.

 

The task looks like this.

 

There is a video on which, in separate frames, there is the light of a laser source.
I need to cut this video into parts, each of which starts with a frame where the light of the laser source is present.

With the sampleImage() expression, I figured it out, it remains to go through all the frames of the composition ....

Community Expert
December 14, 2022

If the lasar light is always in the same position then sampleImage() will work. If the position is random, then you're in trouble because the sample area would have to be much larger and the percentage of change is soint to be a much smaller percentage of all of the pixrls. As far as I know there is no way to measure any property you cannot animate with a keyframe with an expression. I don't know of any property that reads every pixel in a frame so you can look for specific values. The lumetri scopes will tell you when a group of pixels exceeds a certain value, but there is no way I know of to examine all pixels in a frame and figure out when some random small group of pixels reaches a specific value.