Frame Processing Guide

For an overview of Frames, click here.

Deep Learning on Frames is found in Motive Academy. Click here to see the course this lesson is in.

 

Quick Links

Overview

A Script can have many Frames. The order and relationship between Frames impact when they will be processed by the system. Frame processing happens at the speed of a computer, not that of a human. It is quite fast. Two Frames on the same level with no Conditions appear to happen at the same time to a learner.

The flexibility of this system makes several types of branching possible within Storyflow.

Concepts

Processed Frame

A Frame is considered processed once the system has evaluated its Conditions. If its Conditions are false, the Frame is queued until:

  • The Frame or any parent of it on the same branch becomes deactivated.

  • The Script which contains the Frame is ended.

  • The Conditions on the Frame become true. In this case, the Frame will open.

Open Frame

An open Frame is a processed Frame whose Conditions are true. An open Frame activates its Resources and its child Frames will be processed.

Child Frames

The main function of child Frames is to control the order in which Frames are processed. Frames are arranged in a tree structure. A child Frame will only be processed when:

  • Its parent Frame is open, meaning its parent has been processed and the Conditions on the parent are true.

The order of a Frame in a given branch determines when it will be processed. For example, if Frame has three siblings and is listed second under their common parent, it will be processed second once the parent Frame is open.

Frame Conditions

Frame Conditions gate resources. Frame Resources will activate and any child Frames will begin to be processed once the Frame Conditions are true. Frame Conditions will only be evaluated by the system if the Frame has been processed.

Processing Flow

When a Script is launched, the system Script processor will begin processing the Frames in the tree starting from the root Frame. Each Script has a single root frame called Main Frame. That Frame has a tree of 0-n child Frames below it. The Script processor processes each Frame as follows:

  1. Evaluate the Conditions. If the Conditions evaluate to true or no Conditions are present, it is considered to be met

  2. If the Conditions are met

    1. Activate Frame Resources

    2. Process any child Frames

  3. If the Conditions are not met

    1. Queue until the Conditions are met and move to the next Frame on the same level

The flowchart below describes the process:

As an example, the Script below shows the order in which the Frames will be processed. This assumes that all Frame Conditions are true.

Related Articles

Frames Overview

Copy a Frame