START

This tutorial is specific to our newest product, Hudl Sportscode. If you’re on Sportscode v11, use these resources instead or upgrade today.

This script will give the ear­li­est start time of the labels or instances in the time­line (in sec­onds).

FORMAT: START instances


DEFINITIONS:

  • Instances: Instances or quot­ed text spec­i­fy­ing the label for which you want to find the ear­li­est start time.

EXAMPLE 1

$var = start instances
show round ($var, 1)

Returns the start time of the first instance in the timeline, rounded to one decimal place.

EXAMPLE 2

$var = start "score"
show $var

Returns the start time (in seconds) of the ear­li­est instance which has the label ​“score”.

If no instances are found, it will return -1.