I am trying to run a script to handle my Write Expression in a Derived tag. I wrote a script that simply returns a value, and call it in the Write Expression, and when I try to change the value of the tag, all I get is
Error writing to setpoint.value: Error_ExpressionEval
I have tried to replace runScript("MyScripts.static_value") with the actual value of static_value
, and it works just fine. But I can't seem to get the script to run in the same spot!
def static_value():
return 0.333
Is this not possible? I can select runScript from the binding popup that comes with the control itself, I am not forcing it into a place it is not to be selected, so I am not sure. The documentation for runScript mentions nothing about not being allowed to use these in a Derived tag.
Also, is there a way to get a more verbose Error_ExpressionEval?