Skip to content

Instantly share code, notes, and snippets.

@raganmd
Last active May 18, 2018 06:32
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save raganmd/fc5a75455efd864c9d1fd513c063eb0a to your computer and use it in GitHub Desktop.
Save raganmd/fc5a75455efd864c9d1fd513c063eb0a to your computer and use it in GitHub Desktop.
# 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 )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment