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.
layer_sequence_get_length(sequence_element_id)
Argument | Type | Description |
---|---|---|
sequence_element_id | Sequence Element ID | The unique ID value of the sequence element to target |
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.