Text DAT run(delay)

Just discovered the delay arguments to run() and confirmed that they are non-blocking.

How is this implementation handled? Is this Python threading or is the command (lambda?) held somewhere lower down and executed in C-land or what have you?

Just asking because now that I know it exists I’m sure I’ll find a use where that answer becomes important.

Hi.
The command is just queued for later execution when a certain number of frames have elapsed on the timeline.
It’s still done in the main thread.
Cheers

Thinking about it as just a large queue stack is helpful when you start using the other attributes of the run() method. You can assign groups to certain delayed scripts and halt them by doing something like:

for i in runs:
    if i.group == 'your_group_name':
        i.kill()

Useful for if you ever run a series of events but then need to cancel it for some reason. Good to read about the ‘runs’ class and the ‘run’ class for more info:

derivative.ca/wiki099/index … Runs_Class
derivative.ca/wiki099/index … =Run_Class