layer_sequence_get_length

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 length of the sequence. This is the number of frames that the sequence will run for.

 

Syntax:

layer_sequence_get_length(sequence_element_id)

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

 

Returns:

Real

 

Example:

var _frames = layer_sequence_get_length(my_seq);
alarm[0] = frames;

The above code retrieves the number of frames that a sequence will run then uses this value to set an alarm.