layer_sequence_headdir

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:

Sequence Direction Constant
ConstantDescriptionValue
seqdir_rightThe sequence will play frames in an incremental order from left to right1
seqdir_leftThe sequence will play frames in a decremental order from right to left-1

 

Syntax:

layer_sequence_headdir(sequence_element_id, direction)

ArgumentTypeDescription
sequence_element_idSequence Element IDThe unique ID value of the sequence element to target
directionSequence Direction ConstantThe playhead direction, a constant, listed above

 

Returns:

N/A

 

Example:

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).