With this function you can set the direction for the given sequence playhead. You supply the sequence element ID as returned by layer_sequence_create or by one of the layer element functions, and then give the playhead direction which should be one of the following constants:
Constant | Description | Value |
---|---|---|
seqdir_right | The sequence will play frames in an incremental order from left to right | 1 |
seqdir_left | The sequence will play frames in a decremental order from right to left | -1 |
layer_sequence_headdir(sequence_element_id, direction)
Argument | Type | Description |
---|---|---|
sequence_element_id | Sequence Element ID | The unique ID value of the sequence element to target |
direction | Sequence Direction Constant | The playhead direction, a constant, listed above |
N/A
var _seq = layer_sequence_create("Background", 0, 0, seq_AnimatedBackground);
layer_sequence_headdir(_seq, seqdir_left);
The above code creates a new sequence and stores its ID in a local variable _seq. This ID is then used to set the playhead direction to decrement frames (right to left playback).