How to access channels in Null CHOP with Python

Is there a way to access channels in Null CHOP with python?
I can access channels in constant CHOP, however I couldn’t do the same with Null CHOP.


python1.toe (4.1 KB)

You can always access channels by name or number in a CHOP, but you can’t change the value unless the CHOP is locked. Also see CHOP Class - Derivative

op('null1')['chan1']
op('null1')[0]
# chan function works the same
op('null1').chan('chan1') 
op('null1').chan(0)

Note that these will return Channel objects, which will work as floats in parameters but are not actually float values. If you want the value as a float, you have to use eval:

op('null1')['chan1'].eval()
1 Like

Thank you so much!

1 Like