How to use results from running scripts?

I have this code in a text.DAT and run it and it works:

number = str(parent(2).op(‘base1/number2’)[0,0])
print(number.zfill(2))

I can print to the console just fine.
The “number” updates 1000 times a second.
How do I export the result from the text.DAT into something I can use? (I am using a CHOP Execute to trigger the code to run)

eval DAT, scriptDAT or chop, or just put your expression in a constant chop

1 Like