OVERLAP
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 return instances (from the given definitions below) that overlap for any part of the timeline.
FORMAT: OVERLAP (instances, instances)
DEFINITIONS:
- Instances: labels or instances
EXAMPLE 1
$var = overlap ("label 1", "label 2")
show count $var
show $var
Returns all instances which contain "label 1" and which overlap with any instance which contains "label 2".
EXAMPLE 2
$var = overlap ("label 1" where row = "row 1", "label 2" where row = "row 2")
show count $var
show $var
Returns all instances which contain "label 1" in "row 1" and which overlap with any instance which contains "label 2" in "row 2".