Creation of hooks pertinent to a substitution taking place and then the creation of an associated template
'
Caveat: You need to have Template Editor permissions. It may be sensible when naming new hooks, new templates or new template sets to add "TRAINING" as part of the name, to differentiate your work from ''live'' production work. Do consider any ''Delete'' actions carefully - is it your work you are deleting?
Single Substitution Graphic
An example of the completed graphic:
'
Prerequisites
Prior to beginning this article, the user should be familiar with selecting a schema and creating hooks. Also to have completed the following articles:
The requirements from the user side are to be able to simply choose from a drop-down list, a point during the timeline of the match to create a graphic for. The list of options should include:
An abbreviation of the team
The time of the substitution (indicating if in extra-time)
The name of the player being taken off
The name of the player going on
The data being made available to the scene should also include the Uniform (Shirt) Number of the players
Creating the Hooks
Using Ignition Post Win Client as a Template Editor
Click within the Lookup field and select: 'mepvsat' and select: Description'
Ensure 'Single Substitution' is selected, create sub-hook to the following node:
action-soccer-substitution.person-original-idref
Rename: OFF
Set 'Reference' to 'All Players' and click 'Create Hooks'
Ensure 'Single Substitution' is selected, create sub-hook to the following node:
action-soccer-substitution.person-replacing-idref
Rename: ON
Set 'Reference' to 'All Players' and click 'Create Hooks'
Ensure 'Single Substitution' is selected, create sub-hook to the following node:
action-soccer-substitution.team-idref
Rename: Image
Add the following Transform Step:
Skip 'N' Chars, setting N to: 15
Ensure 'Single Substitution' is selected, create sub-hook to the following node:
action-soccer-substitution.team-idref
Set 'Reference' to 'All Teams' and click 'Create Hooks'
Click 'Add Composite Hook'
Rename: Selector
Add the following component hooks:
Single Substitution.Team Idref.Full Team Abbr
mepvsat
Single Substitution.OFF.Last
Single Substitution.ON.Last
Change the 'Composite Mode' to: Format String
Enter the following in 'Format': {0}-{1}-OFF:{2}-ON:{3}
Ensure 'Single Substitution' is selected
Add a List Transform - Order by:
Minutes Elapsed (Ascending & numerical)
Adding a scene
Select the main tab TEMPLATES
Ensure the template set 'TRAINING Match' is selected (above 'Search Templates')
Click 'Add new Template to TRAINING Match'
Rename: 'Single Substitution'
Click the 'Select' button adjacent to 'Scene'
Note you have a pane to the right-hand side:
BROWSE SCENES
With:
Renderer Domain Graphics Hub
And a list of your available scenes below 'Search'
Ensure 'Renderer Domain: Viz
Ensure Graphics Hub: Post --- (Or the name of what is pointing at your available Viz Scenes)
Type the following into the 'Search' bar: MOTD_E_S_L3_SUB1T
NOTE - You may get more than one option of where a scene is available
Select and expand: BBC-SPORT/SCENE/FOOTBALL/MOTD/IDONIX/2017/2017
Find the above scene
Click 'Refresh Thumbnail and Scene Controls'
Click 'Click button to make this the current main scene'
Select the sub-tab CONTROLS
Add a 'Data Selector' control
Rename the Label: 'Match'
Select the Schema: 'soccer event-report'
Now add a 'Data Item' control
Choose the 'Schedule Condition Hooks.Event Name Abbr' hook
Click the greyed out 'title' on the control -- it turns 'green'
NOTE - This sets the Title of the Graphic to the data returned from the control
Now add a 'Data Item Selector' control
Set the 'List Hook' as: 'Single Substitution'
Change Label to: 'Selector'.
Change 'Id (Value)' to: 'Index'
Change 'Display' to: 'Selector'
Click the greyed out 'title' on the control -- it turns 'green'
You should have an image set with the logo for each premier league football team. For the remainder of the tutorial, this will be referred to as the image set - 'Scorelines'.
Add a 'Data Item' control
Bind: Image 0003 LOGO
Data Selector = Selector
Hook = 'Single Substitution.Image'
Image Set = 'Scorelines'
Set a default image if you wish
N.B. When you bind a Viz Control to a template control the template control will automatically be renamed to the Viz Control - but it's always good practice to give it a more meaningful name.
Here is an image of the template controls so far, before you move on to 'Data List' template controls:
In 'TEMPLATES' and the 'CONTROLS' Tab, with the 'Single Substitution' template highlighted:
Using the 'Data List' button create x4 new controls
Change the 'List Size' = 3
Taking each of the four new template controls, in turn, bind a Viz Control as follows:
Text 100 HS1_OFF_NUM
Text 101 HS1_OFF_NAME
Text 200 HS1_ON_NUM
Text 201 HS1_ON_NAME
You will note the x3 similar Viz Controls were automatically allocated within the template control and the four controls took on the name of the Viz Control.
You now need to give each of the four template controls a hook.
HS1_OFF_NUM
Change the Data Selector to: Selector
Change Hook to: 'Single Substitution.OFF.Uniform Number
HS1_OFF_NAME
Change the Data Selector to: Selector
Change Hook to: 'Single Substitution.OFF.Last
HS1_ON_NUM
Change the Data Selector to: Selector
Change Hook to: 'Single Substitution.ON.Uniform Number
HS1_ON_NAME
Change the Data Selector to: Selector
Change Hook to: 'Single Substitution.ON.Last
This scene is designed to show multiple substitutions for a home or away team. You now need to give this scene an instruction, so it only shows one substitution. The substitution being made using the selector to make a selection from the occurrences during the match.
Add a 'Fixed Value' control
Bind to: Integer 6000 NUMBER_OF_SUBS
Set the Value field to: 1
Using the Web Client to view your new template. Remember to Login as a Template Editor, as the template is not yet published.
Using the Southampton v Leicester City sample data.
The selector dropdown will be populated with the following:
LEI-67'-OFF:Iheanacho-ON:Albrighton
SOT-69'-OFF:Ings-ON:Austin
LEI-78'-OFF:Maddison-ON:Ghezzal
SOT-79'-OFF:Elyounoussi-ON:Romeu Vidal
SOT-86'-OFF:Long-ON:Armstrong
LEI-88'-OFF:Gray-ON:Okazaki
As you can see, you can select from any point in the match.
Select:
LEI-88'-OFF:Gray-ON:Okazaki
You have now generated the same graphic shown as an example at the beginning of this tutorial.
Now you are ready to do the tutorial to produce a Home or Away Substitution graphic, available at the link below: