I’m having trouble using the runScript() expression function to set the value of an expression tag.
I first created a new project script called myTest. The function is defined as follows:
def myTest(num):
return num
If I call this function in an actionPerformed event on a button then the script function executes just fine. The syntax used in this case is:
a = app.MyScripts.TestScripts.myTest('test')
print a
But if I try to call this function to define the value for an expression tag, then the tag quality always shows as ‘Evaluation Error’. The syntax I use to call the function is:
runScript("app.MyScripts.TestScripts.myTest('test')")
Any suggestions on what I may be doing wrong? I’ve attached some screen shots as well.