I can run the Spiral script from inside the Scripter, by putting in the line Spiral(50,0.1,0.2,0.5); and running it.
I can't seem to get it to run when I use the script window see picture.
I get this in the log:
54:12:488 Setting Fold: -3
The above line I would think is as it should since the button logic says set -3
54:17:408 Execution Phase begins...
54:17:408 MDI Script attempts execute
54:17:408 Script MDI execution begins.
54:17:418 End of MDI Script run.
54:17:478 Wait for non existant thread ended.
I even tried just putting the lines below in the script window.
I get the same as above in the log file.
Running it in the scripter it works.
Code: Select all
loops=50;
segment=0.1;
factorX=0.2;
factorY=0.5;
for (t = 0; t < Const.PI2 * loops; t += segment)
{
x = t * math.cos(t);
y = t * math.sin(t);
x=x*factorX;
y=y*factorY;
print("x "+x + "\ty "+y); //this gets outputted to the Log file. Access with a button push on button labeled "Log"
Engine.RapidTo(x,y,0,0); //actual movement in x,y,z,a
yield(); //give it an out to look whats going on elsewhere.
};
Thanks for your help in advance
Glenn