Python syntax for run method inside a script parameter

Hi,

Having no luck converting the following line of Tscript to its python equivalent via scripting.

I’m scripting the creation of a bunch of replicatorCOMP ops in python and I’m stumpted trying to set the value of the script parameter without switching to Tscript.

I can write python to create a tscript script (working)

n = op("/project1/my_replicator")
n.python = False
n.par.script = 'run ../create_musician $ITEM $ON'

but what would the python equivalent be?

e.g.

n = op("/project1/my_replicator") n.par.script = ????

For running a script inside a DAT:

op('script_to_run').run()

In the case of your script perhaps:

op('create_musician').run(me.var('ITEM'),me.var('ON'))

supposing the variables are exposed.