Home or Away Substitutions graphic

Creation of a home or away substitutions template with user options

'

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?


Substitutions Graphic


Requirement


The ability to choose in the Web Client''s ''Edit'' pane, whether to generate a graphic for the ''home'' team or the ''away'' team (in this case the ''away'' team) and to then choose to show the number of substitutions as 1, 2 or 3, depending on the data available.


The below image shows the Web Client view of the template in use.


'
Home or Away Substitutions graphic

'



The below images are the graphic in its three states:



'
Home or Away Substitutions graphic
Home or Away Substitutions graphic
Home or Away Substitutions 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 article:


You should also have the 'Scorelines' image set.


Creating the Hooks


Using Ignition Post Win Client as a Template Editor.


  1. Select the main tab DATA

  2. Select the sub-tab SCHEMAS & HOOKS

  3. Below SCHEMAS:

    1. Data Provider: XMLTeam

    2. Target: Production

    3. Schema: soccer event-report

    4. Sample Data: Southampton v Leicester City

  4. Clone the parent hook 'Single Substitution'


Home or Away Substitutions graphic


  1. Rename: All Substitutions

  • Add a parent hook to the 'team' node

    1. Rename: Team Alignment

    2. Add a constraint using: team.team-metadata.alignment, using = "*" (Text)

  • Add sub-hooks to:

    1. Id

    2. Alignment

    3. Team Key

  • Ensure 'Team Alignment' is highlighted

    1. Set the 'List Key' to: Id

  • Ensure 'All Substitutions' is highlighted

    1. Add a constraint using: action-soccer-substitution.team-idref, using = * (Text)

  • Add a sub-hook to:

    1. team idref

    2. Rename: Team Idref Alignment

    3. Reference: Team Alignment

    4. Click 'Create Hooks'

  • Ensure 'All Substitutions' is highlighted, add a composite hook

    1. Rename: Alignment

    2. Composite Mode: Format String

    3. Format: {0}

    4. Component Hook: All Substitutions.Team Idref Alignment.Alignment

  • Select the Alignment sub-hook, within HOOK EVALUATION and make a note of the information returned

  • Ensure 'All Substitutions' is highlighted

    1. Add 'List Transforms' as follows:

    2. Order by: Full Team (Ascending & Alphabetical)

    3. Change the order of 'List Transforms' so the above is first and the below is second:

    4. Order by: Minutes Elapsed (Ascending & Numerical)

  • Select the Alignment sub-hook, within HOOK EVALUATION - the information returned is different


  • Home or Away Substitutions graphic


    Adding a scene


    1. Select the main tab TEMPLATES

    2. Ensure the template set 'TRAINING Match' is selected (above 'Search Templates')

    3. Click 'Add new Template to TRAINING Match'

      1. Rename: 'Substitutions'

    4. Click the 'Select' button adjacent to 'Scene'


      A sub-pane to the right-hand side is populated as follows:


        BROWSE SCENES
          With:

          Renderer Domain
          Graphics Hub

        And a list of your available scenes below 'Search'


    1. Ensure 'Renderer Domain = Viz

    2. Ensure Graphics Hub = Post --- (Or the name of what is pointing at your available Viz Scenes)

    3. Type the following into the 'Search' bar: MOTD_E_S_L3_SUB1T


    Home or Away Substitutions graphic


  • Select and expand: BBC-SPORT/SCENE/FOOTBALL/MOTD/IDONIX/2017/2017

  • Find the MOTD_E_S_L3_SUB1T scene

    1. Click 'Refresh Thumbnail and Scene Controls'

    2. Click 'Click button to make this the current main scene'


    Home or Away Substitutions graphic


    Adding templates controls


    1. Select the sub-tab CONTROLS, add a 'Data Selector' control

      1. Rename the Label: 'Match'

      2. Select the Schema: 'soccer event-report'

    2. Add a 'Data Item' control

      1. Choose the 'Schedule Condition Hooks.Event Name Abbr' hook

      2. Click the greyed out 'title' on the control -- it turns 'green'


      This sets the Title of the Graphic to the data returned from the control

    3. Add a 'Data Filter List Option' control

      1. Change Label to: 'Home or Away'.

      2. Set the 'List Hook' as: 'All Substitutions'

      3. Set the 'Filter Value as: 'All Substitutions.Alignment'

      4. Change the 'Descriptions' to:

      5. Home

      6. Away

      7. Change the Filter Values' to:

      8. home

      9. away


    The below image shows the three template controls so far:


    Home or Away Substitutions graphic


    1. Add an 'Info Text' control

      1. Add the following into the text field: Players from home/away team that were substituted during the game

    2. Using the 'Data List' button create x4 new controls

      1. Change the 'List Size' = 3

    3. Taking each of the four new template controls, in turn, bind a Viz Control as follows:

      1. Text 100 HS1_OFF_NUM

      2. Text 101 HS1_OFF_NAME

      3. Text 200 HS1_ON_NUM

      4. Text 201 HS1_ON_NAME

    4. Add an 'Info Text' control

      1. Add the following into the text field: How many Players were substituted above?

    5. Add an 'Info Text' control

      1. Add the following into the text field: Now set the appropriate number of subs using the dropdown below

    6. Add a 'User Options' control

      1. Bind to: Integer 6000 NUMBER_OF_SUBS

      2. Change the 'Label' to: Number of Subs

      3. Click 'Add new option after this'

      4. Change the 'Descriptions' to:

      5. 1 Sub

      6. 2 Subs

      7. 3 Subs

      8. Change the 'Filter Values' to:

      9. 1

      10. 2

      11. 3


    Home or Away Substitutions graphic


  • Add a 'Data Item' control

    1. Data Selector: 'Home or Away'

    2. Hook = All Substitutions.Image

    3. Bind to: Image 0003 LOGO

    4. Set the 'Image Set' to: Scorelines

  • Add a 'Data Item' control

    1. Data Selector: 'Home or Away'

    2. Hook = All Substitutions.Team Idref.Full Team Abbr

    3. Click the greyed out 'title' on the control -- it turns 'green'


    You now need to give each of the four list template controls a hook.


    1. HS1_OFF_NUM

      1. Change the Data Selector to: Home or Away

      2. Change Hook to: 'All Substitutions.OFF.Uniform Number

    2. HS1_OFF_NAME

      1. Change the Data Selector to: Home or Away

      2. Change Hook to: 'All Substitutions.OFF.Last

      3. TICK 'Show To User'

      4. Rename: Off Name

    3. HS1_ON_NUM

      1. Change the Data Selector to: Home or Away

      2. Change Hook to: 'All Substitutions.ON.Uniform Number

    4. HS1_ON_NAME

      1. Change the Data Selector to: Home or Away

      2. Change Hook to: 'All Substitutions.ON.Last


    Home or Away Substitutions graphic


    Using the graphic


    Using the Web Client to view your new template. Remember to Login as a Template Editor, as the template is not yet published.


    1. Select the 'TRAINING Match' set

    2. Using the 'Southampton v Leicester City' sample data

    3. Select the 'Substitutions' template

    4. Leave the 'Home or Away' selector on 'Home' (i.e. Southampton)


    5. In the 'Edit' pane you will note there are three names: Ings, Elyounoussi & Long. Therefore, you need to set the appropriate number of subs - i.e. 3.

    6. Change the 'Number of Subs' selector from '1 Sub' to; '3 Subs'


    Home or Away Substitutions graphic


  • Change the Leave the 'Home or Away' selector to: 'Away' (i.e. Leicester City)


  • In the 'Edit' pane you will note there are three names: Iheanacho, Maddison & Gray. You could set the number of subs to: 1, 2 or 3.

  • Leave the 'Number of Subs' selector as '1 Sub'


  • Home or Away Substitutions graphic


    You now have the ability to set the number of substitutions to match those made by either the home or the away team.


    Remember, if during a match, you only want to show the substitution as it is made, rather than all of the substitutions made during the match, you will need to use the selector available in the 'Single Sub' graphic. Using:

      Single Substitution graphic