Specifc Scripting for Touch
Here is a collection of scripting code which can be util for your projects:
Framerate - me.rate
Get index of a value - op('constant1').chan(0).index
Get name of operator - op('myName').name
Get number of operator - op('name1').digit
OPs
Count Inputs of Operators - len(op('switch1').inputs)
CHOP
Numbers of samples of a CHOP - op('name1').numSamples