Skip to content

Scripting Cheatsheet

Get width and height from parent me.parent().par.w - width me.parent().par.h - height

Get width/ height of child operator op('/out1').width op('/out1').height

Channels

Referencing Channels op('constant1')[0] <- First channel op('constant1')['channelName']

Tables

Get value from input cell me.inputCell

Inputs

Count inputs of operator len(op('switch1').inputs)

Manipulate data

Round values round(val,2)

https://interactiveimmersive.io/blog/python/python-cheat-sheet-for-touchdesigner-developers/