Last Update: 2/4/2015
Origin has a wxt X-Function that you can use from script. In the Command Window, opened by selecting Window: Command Window, type
and then press the Space bar and let the auto-complete help you with the different arguments to the function. Another useful way at looking at the different options to the function is to type:
and then press Enter, which will open a dialog. Then you can make a condition string and then pass it to the X-Function. Please refer to a tutorial here.