SCRIPTING: setObserverLocation REQUIRES core.wait #3821
Labels
enhancement
Improve existing functionality
subsystem: scripting
The issue related to scripting engine of planetarium…
I am using Stellarium to extract data in a "batch" fashion, if you know what I mean. So I am changing location, and then grabbinhg some attributes for the Sun/Moon, and then changing location again.
For example:
What I'm seeing a lot is thisMoonAlt == thatMoonAlt. It's like Stellarium hasn't yet processed the move of the observer, and is giving me the old value. I've seen a lot of code online that says I need to add core.wait() to give it time to catch up, but I guess I was hoping that there was some way to force it to block until the location has been processed .. ?
The text was updated successfully, but these errors were encountered: