python 一个TouchDesigner代码段,用于查看如何启动另一个触摸过程。

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了python 一个TouchDesigner代码段,用于查看如何启动另一个触摸过程。相关的知识,希望对你有一定的参考价值。

# matthew ragan | matthewragan.com

import os
import subprocess

# we need to know the location of our app
app                     = "{}/TouchDesigner099.exe".format(app.binFolder)

# we also need to know the location of our file
file                    = "{}/other-process.toe".format(project.folder)

# we're going to set an environment variable for fun
os.environ['ROLE']      = "render1"

# we can start the process with a Popen() call
app_process             = subprocess.Popen([app, file])

# next we can find our process ID
app_id                  = app_process.pid

# to make this a little easier to quit our process we'll 
# put some of these things into storage for later access
other_app       = {
    "app_process"       : app_process,
    "app_id"            : app_id
}

parent().store('other_app', other_app)

以上是关于python 一个TouchDesigner代码段,用于查看如何启动另一个触摸过程。的主要内容,如果未能解决你的问题,请参考以下文章

python touchdesigner-通用代码分割-generalEXT-示例

python 一个sudo代码块,可以显示TouchDesigner扩展的首选格式和文档字符串文档的示例。

python touchdesigner的Python-switch语句最佳

python touchdesigner的Python-switch语句,更好

python touchdesigner的Python-switch语句好

python touchdesigner的Python-switch语句最差