Is it possible to import the td module outside of Touch Designer? I can see the import in the “TouchDesigner099\bin\TouchInit.py” file, but can’t figure out where it’s coming from.
Or, is there a way to launch Touch Designer from the command line and run a .py upon startup?
The only way I can think to do this is have a simple pre-made .toe file with an executeDAT set to the start event. Then, in the onStart() function load and run .py files from a directory. I will try this for now.
Then execute via cmd line:
"C:\Program Files\Derivative\TouchDesigner099\bin\touchdesigner099.exe" "E:\path\to\unit_test_launcher.toe"