Trigger number 2 conversion

Is there a way to trigger immediately at first through the script and then once a minute after that?

import schedule
import time

def my_job():
    print(" ")

my_job()

schedule.every(1).minutes.do(my_job)

while True:
    schedule.run_pending()
    time.sleep(1)

Hi @kijhome,

you would use a Timer CHOP for that with it’s various callbacks and abilities to cycle or go through various segments.

Using while loops and sleep commands will hold processing in TouchDesigner for the specified time and is hence not a practical solution.

cheers
Markus