Hello all,
I am facing a problem i can’t find a fix for :
In a Chop Execute DAT i have the following code
[code]def onOffToOn(channel, sampleIndex, val, prev):
import random
randNum = random.randint(1,27)
pathStart = '/ui1/container2/item'
pathEnd = '/trigger1'
nextClipPath = pathStart + str(randNum) + pathEnd
op('nextClipPath').par.triggerpulse.pulse()
return[/code]
I used to use a relative path in that code like op(‘…/item’) but ended up using an absolute path but the same is happening.
Python keeps throwing the error
Traceback (most recent call last):
File "/ui1/container2/item27/chopexec1", line 19, in onOffToOn
AttributeError: 'NoneType' object has no attribute 'par'
Any clue ?
I am using TD 099 2017.16620 on macOS Sierra
thanks a lot