Hi - I am trying to bypass some operators using some DATs.
The operators i’m bypassing are a trigger and a timer and i’m using a chop execute to do it. The operators are showing as bypassed, however they are still being triggered by their input even when bypassed.
I have tried some other methods to stop them such as:
op('your_operator_name').par.active = false
and
op('your_operator_name').allowCooking = false
But these seem to throw errors on execution. I have tried with = 0 instead of false too.
IS there any other way to stop an operator running other than these or is there something i’m doing wrong?
can you elaborate a bit on what you mean by “still being triggered”?
Bypassing means the incoming data is just passed through without any modification. So any input channel change will be reflected in the bypassed output.
Regarding your expressions, it would be good to see the errors you are getting. While the Timer CHOP does have an active parameter, the Trigger CHOP does not and hence this would result in an error.
Otherwise, false in python is capitalized - so this might be another source of error.
The .allowCooking member you most likely received an error such as:
td.tdError: This flag can only be disabled for COMPs. Value:type:timerCHOP path:/project1/timer1
saying that this can only be set on a component level.
Generally it would be good to understand what the goal of the bypassing is. In some cases a Switch CHOP could be used to route data around the operator. In case of the Timer CHOP though, setting the active parameter to “Never” will shut it off appropriately.