layer_sequence_get_headdir

With this function you supply the sequence element ID - as returned by layer_sequence_create or by one of the layer element functions - and it will return the current playhead direction, which will be one of the constants listed below.

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_get_headdir(sequence_element_id)

ArgumentTypeDescription
sequence_element_idSequence Element IDThe unique ID value of the sequence element to target

 

Returns:

Constant

 

Example:

if layer_sequence_get_headdir(title_sequence) != seqdir_left
{
    layer_sequence_headdir(title_sequence, seqdir_left);
}

The above code checks the current playhead direction of the sequence element ID stored in the variable title_sequence, and if it's not set to seqdir_left, it is set to this value.