Author |
Topic |
|
lunchpack
Germany
20 Posts |
Posted - 07/20/2014 : 06:18:33 AM
|
Origin Ver. and Service Release (Select Help-->About Origin): 90E x64 Operating System: Win 8.1 x64
Hi all,
I have a problem with a script that is plotting some data and then applying a theme:
//some plotting into 3 layers, not included layer -s 1; yl.text$ = "text"; layer -s 2; label -yr "text"; yr.fsize=28; yr.color=12; yr.rotate=-90; layer.y2.label.numformat=5; layer -s 3; label -xt "text"; xt.fsize=28; xt.top=50;
What's happening now is that all the lines are executed, but NOT:
layer.y2.label.numformat=5; and xt.top=50;
However if I copy the whole script into the script window and execute it line by line it works like a charm.
I tried thousend possibilities, such as putting the ignored lines at the very end in a distinct section. Did not help.
I also tried putting it in a separate script, patch.ogs, containing:
layer -s 2; layer.y2.label.numformat=5; layer -s 3; xt.top=50;
*When I execute this script manually after the original one, it works. *When I call the patch script at the end of the original script using run.file(%y...\patch.ogs) Surprise: It does not work. I put a type -b "done" at the end of the patch-file, to be sure it really is executed and not aborted. The done message is shown, but the layer-formatting commands are ignored. Not so if I just call the script manually after the original one. What is wrong here?
Is there any command like relax for latex? To tell it to take a break and get it's stuff together, focus on the next line?
Thank you very much for any hints!
Best regards, lunchpack
//edit: typo |
Edited by - lunchpack on 07/20/2014 06:24:02 AM |
|
lkb0221
China
497 Posts |
Posted - 07/24/2014 : 10:17:13 AM
|
Hi,
You can try adding a "sec -p 0.1" (to pause the current process for 0.1s) between the working part and the ignored part.
Zheng OriginLab |
|
|
lunchpack
Germany
20 Posts |
Posted - 07/24/2014 : 10:41:56 AM
|
Hey Zheng, that did the job, thanks. Problem solved. Cheers, lunchpack |
|
|
|
Topic |
|
|
|