Uhh…are you trying to mix python and tscript in one DAT? That’s not going to work.
Use the run command (in either python or tscript) to run a seperate DAT with your seperate code in, make sure that the two DATs are in python and tscript mode respectively.
this is code that’s generated by the opscript command, not code that i have written by hand.
regardless, the code does actually work, by the way. the only problem is that the nested quotation marks cause the string to evaluate incorrectly. instead of ‘tube1’ you end up with just tube.
Could you post your example of circle referencing tube. My guess is that you are using opscript command on an OP in python mode. I’d like to take a look at to see where its breaking.