TouchDesigner
/ 外部連携
・シリアル通信・
int送る場合
code:serial.py
def onValueChange(channel, sampleIndex, val, prev):
op('serial1').sendBytes(op('null1')0)
return
/他
特定のop以外を指定したい時
^geo1
オペレータのattribute自体に変数を入れたいとき
code:a.py
for i in range(32):
op('constant3').par'const' + str(i) + 'name' = 'ch1n' + str(69 + i)
複数のボタンを用意して、一個押すと他の値がゼロになりまた他のを押すとさっき1だったものが0になる方法
logic chop→channel pre op→Radio button
#API
#シリアル通信
#TouchDesigner