Using Director > Writing Scripts with Lingo > Expressing literal values > Identifying frames and movies |  |

Identifying frames and movies

Use these Lingo terms to refer to frames in a movie:

| The function `the frame` refers to the current frame.
| The keyword `frame` followed by the frame number or the frame marker label refers to a specific frame. For example, `frame 60` indicates frame 60.
| The keyword `loop` refers to the marker at the beginning of the current segment. If the current frame has a marker, `loop` refers to the current frame; if not, `loop` refers to the first marker before the current frame. If there are no markers in the movie, `loop` refers to the first frame.
| The word `next` or `previous` refers to the next marker or the marker before the current scene, respectively.
| The term `the frame` followed by a minus or plus sign and the number of frames before or after the current frame refers to a frame that's a specific number of frames before or after the current frame. For example, `the frame - 20` refers to the frame 20 frames before the current frame.
| The term `the frameLabel` identifies the label assigned to the current frame.
| The function `marker()`, with a positive or negative number of markers used as the parameter, refers to the marker that's a specific number of markers before or after the current frame. For example, `marker(-1)` returns the frame number of the previous marker and `marker(2)` returns the frame number of the second marker after the current frame. If the frame is marked, `marker(0)` returns the frame number of the current frame; if not, `marker(0)` gives the frame number of the previous marker.
| The term `movie` followed by the movie name refers to the beginning of another movie. For example, `movie "Navigation"` refers to the beginning of the movie called Navigation.
| The word `frame` plus a frame identifier, the word `of`, the word `movie`, and the movie name refers to a specific frame in another movie; for example, `frame 15 of movie "Navigation"` refers to frame 15 of the movie called Navigation.