TouchDesigner常用:
变量:
me.time.absTime
root.setVar('variable') #设置一个全局变量
me.var('variable')#引用一个全局变量
me.digits
me.parent().digits
表:
op('table1')[3,4] = 'hello'
op('table')[“row”,”col”]
op('table').numRows
CHOP:
expression chop ------>me.inputVal >=1
op('noise')[“chan1”] #设置参数值
op('noise')[“chan1”].eval()#获取参数值
op('noise').numSamples #chop样本数
text script:
op('text1').par.text = “AAA”
或获取表中数值写入text newText = op(“user_input”)[0,0]. op('text1').par.text = newText
TouchDesigner常见命令:
创建OP op('/project1').create(sphereSOP)
创建一个命名的OP op('/project1').create(sphereSOP, 'my