raganmd
5/18/2018 - 6:29 AM

delay-script-args-v1

# delay scripts example

# first we write out script as a string
delay_print = '''print(
                        '{noun} sure does {verb} {adj}'.format( noun=args[0], 
                                                                verb=args[1], 
                                                                adj=args[2]))'''

noun        = "Matthew"
verb        = "love"
adj         = "TouchDesigner"

# next we run this string.
# this time we'll pass in arguments for our script.
# args are accessed as a list called args. Arguments
# go in order in the run command, and you can see in
# how the script is formatted how we access them.

run(delay_print, noun, verb, adj, delayFrames = 60 )