Session 24: Validation

Preparation

  • There are no external assets required for this training session.

Description

This tutorial examines the use of the IsGraphicValid Method in order for (Grass Valley) automation solutions to validate data held externally.

Session specific objectives

Implementing the IsGraphicValid Method.

Chapter 1: Adding an IsGraphicValid Method to a template

  • Rationale and purpose
  • Changing any Scenegraph Destinations to Script Value
  • Adding the appropriate user code for the use case

Expected duration

5 minutes

User Level

All users

if (File.exists? _imageFileName)
self.setOutcome(true);
else
self.logMessage("Image does not exist " + _imageFileName);
self.setOutcome(false);
end