Video Logging Crowd counter
  • Hi  there,

    In After Effects, I need a way to display a counter based on the cumulative number of markers on a layer/comp.

    I'm trying to count the number of people in a crowd passing through a video frame - it's 30 minutes long, so want a easy way to covert a manual count into an on-screen counter
    I'm playing the video and adding markers in real-time, but need to convert these markers into onscreen text.

    Any ideas?

    Thanks
    Roly
  • This is not related to any of our products but you can do this with a simple expression on the sourceText property of a text layer:

     
    var comp_markers = true; //set this to true to use comp markers, set to false to use layer markers
    var layer_index = 2; // set this to the index of the layer with the markers
    
    var current_marker, total_markers, scope;
    scope = (comp_markers) ? thisComp : thisComp.layer(layer_index);
    current_marker = scope.marker.nearestKey(time).index;
    total_markers = scope.marker.numKeys;
    
    "Current Marker: " + current_marker + "\nTotal Markers: " + total_markers;
    
This discussion has been closed.
All Discussions