FORUMS: list search recent posts

Re: Hockey Scoreboard Overlay

COW Forums : Adobe After Effects

Respond to this post   •   Return to posts index   •   Read entire thread

Walter Soyka
Re: Hockey Scoreboard Overlay
on Oct 26, 2010 at 7:51:14 pm

Build out your scoreboard graphic without the numbers, and then create two text layers (home and away scores), each with a 0 or some other dummy number, and position them as required.

Add at least one marker (asterisk on the numeric keypad) on the first frame of each text layer.

In each text layer, twirl down the text properties, and add the follow expression to the Source Text property:
m = thisLayer.marker;
i = m.nearestKey(time).index;

if (m.nearestKey(time).time > time){ i--;}
if (i < 1) { i = 1};

To change the score, simply add a new marker to the text layer at the point you want to increase the score, and it will increment by one.

The expression works by comparing the current time of the comp to the nearest marker on the layer, and getting the index (a counter) of that marker. If the current time is less than the time of the nearest keyframe (in other words, the nearest marker is still in the future and we haven't reached it yet), it decreases the counter. Finally, it decreases the counter by one so that the scoring will start at zero instead of 1.

Walter Soyka
Principal & Designer at Keen Live
Motion Graphics, Widescreen Events, Presentation Design, and Consulting
RenderBreak Blog - What I'm thinking when my workstation's thinking
Creative Cow Forum Host: Live & Stage Events

Posts IndexRead Thread 

Current Message Thread:

© 2020 All Rights Reserved