I realised that the script worked for me because my home location is set to Sydney.
Any user from elsewhere can add the following into the script by pressing F12 clicking on the Script icon, loading the script and editing the script to include the following before the line core.setDate...
core.setObserverLocation(153.2,-33.8,40,0,"Sydney, Australia");
Syntax is Longitude, Latitude, Height, ?, Location
At the conclusion of the script you'l have to reset to your individual location.
I haven't been able to workout how to capture the users initial location, store it and then reload it at the completion of the script. If anybody knows how to do this I appreciate hearing from you, as I'm sure would others.
Quote:
Originally Posted by Barrykgerdes
Hi Peter
I haven't written a script for years so I had forgotten the calls. I will need to brush up on them.
When I wrote scripts previously I always "stored " the start configuration. That gave me an easy point to return to when the script was over. I did not do that with yours. I just set the rate, zoom and date to an arbitary figure close to the start so that I would know when the script was over.
In most of the other scripts I have you don't know when they actually stop so that you can reset your display.
Barry
Yes the lathe still works. It is in a bit of a mess at the moment as I haven't cleaned up after the last job.
|