python TouchDesigner OP Snippets

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了python TouchDesigner OP Snippets相关的知识,希望对你有一定的参考价值。

# Connect Ops via python
op('capture1').outputConnectors[0].connect(op('switchInput').inputConnectors[1])

# Connect Ops via python - from replicator
c.outputConnectors[0].connect(op('switchInput').inputConnectors[int(c.digits)-1])

# Str for Text Button
str(op('/project1/UI_UX_CONTROL/Seconds/framesToSeconds')['null1:v1'])

# Str truncating the first 5 characters
'{:.5}'.format('orignal text or number')
#textTop
%0.2f
0 -> padding
2 -> precision
#Common
absTime.frame

#Fetch a TD op menu item
op( 'audiodevout1' ).par.device.menuNames
-> http://www.derivative.ca/wiki088/index.php?title=Par_Class

#UI Class
https://docs.derivative.ca/index.php?title=UI_Class
https://www.derivative.ca/wiki088/index.php?title=UI_Class

以上是关于python TouchDesigner OP Snippets的主要内容,如果未能解决你的问题,请参考以下文章

python touchdesigner的Python-switch语句,更好

python touchdesigner的Python-switch语句好

python touchdesigner的Python-switch语句最差

python 使用自定义环境值启动TouchDesigner

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

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