If I understand correctly, the above code should only disable tracking without losing the currently selected object. But consider this script:If the currently selected object has track enabled, as of Celestia version 1.3.1 you can use the following code to cancel a track command:Code: Select all
select { object "" }
track { }
Code: Select all
{
cancel {}
select { object "Sol/Earth" }
goto { time 0.1 }
wait { duration 0.1 }
track {}
wait { duration 1 }
select { object "" }
track {}
}
If I run the script with the Earth unselected, I would expect it to end with the Earth selected. Yet it is not.
How can I preserve selection under these circumstances? Should I alway explicitly reselect the object after disabling tracking on it?
I am using Celestia 1.3.2. Are there any changes with respect to this issue in later versions of Celestia?
Paolo Amoroso