Opening exe.s from Touch?

Im building a UI in TouchDesigner and would like to open/close exe,s built in other applications such Unreal, Unity etc, from within TD (from a Button). Anyone have an idea of how this might happen?

A translation of you question is: how to start an .exe from Python?

docs.python.org/3.3/library/subprocess.html

import subprocess subprocess.call(["MyApp.exe"])

here’s a sample which opens notepad.exe, you can edit this to open the .exe files of your choice.
Edit the Chop Execute to use:

  1. in line 12 put the path to you .exe file in path
    (remember to use forward slashes)

  2. put the filename of your executable in line 13 instead of notepad.exe
    open_executable.toe (4.55 KB)

Thanks for this tip!

Tried to use this to start another .toe file from within touchdesigner, but it wouldn’t work. Adding shell=True argument made it work, but also made the first touchdesigner process stop responding.

But this seems to work nicely:

import os os.startfile("C:/Folder/2i.toe")

1 Like

Hey!

I want to open a Ableton file from Touch on my Macbook. I think simulair approach but cant get it working so far. Any advice?