Getting DAT Table access from SOP script - OSC in DAT

Hello, I am filling a DAT Table(table1) from an OSC in DAT and the data looks fine (Note, Velocity, MIDI channel) but I can’t seem to access this table from my Python SOP script which is in the same network.
I am using the statement format as described in the “Working With DATs in Python” documentation but cannot successfully reference the table. The statement:

p = op(‘table1’)

doesn’t find the table I guess and gives me the error:

TypeError: ‘td.scriptSOP’ object is not callable

Is it a case of a DAT table type not accessible from a SOP script?
I’m pretty new to this environment and have been stuck on this for awhile, any help is REALLY appreciated, thanks!

OK, I found my problem, it had to do with renaming my script setup object to ‘op’ to save typing, which confused the table op reference. So ‘op’ is a reserved word, live and learn!

1 Like