Texport as Python Interpreter?

Is there some way to use the textport like the python interpreter? e.g. I couldn’t get the following to work in a textport:
a = op(‘randomop’)
print(a.name)

Of course I can just do this inside a ScriptOP, but it would be much more fluid to be able to do this live in the interpreter. I’m guessing that there might be some way to tie a ScriptOP to the interpreter?

Thanks,
FDP

That should work. All op() calls would be relative to the root though, so you need to put the full path to your target OP to get started.

Thanks Malcolm!
-FDP