Returns the value of the optical function defined by the text passed in the string a_string. If the optical function cannot be evaluated a value of 0 is returned.
Example:
x1 = scout.optical_function("SiN(n at 400 nm)")
Setting this property has no effect.