Last active
May 18, 2018 06:32
-
-
Save raganmd/fc5a75455efd864c9d1fd513c063eb0a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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