layer_sequence_get_headpos

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 position (the current frame the playhead is on).

 

Syntax:

layer_sequence_get_headpos(sequence_element_id)

ArgumentType Description
sequence_element_idSequence Element ID The unique ID value of the sequence element to target

 

Returns:

Real

 

Example:

if layer_sequence_get_headpos(title_sequence) != 0
{
    layer_sequence_headpos(title_sequence, 0);
}

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