Scripting: Get Star Information

Asked by MrEndorphine

Hi guys. How can I take the name and the magnitude of a star and print it out in the debug window?
For instance I have HIP 677. I select the star. Now I want to put down the magnitude and star name in the deput window.

Question information

Language:
English Edit question
Status:
Answered
For:
Stellarium Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Khalid AlAjaji (kajaji) said :
#1

Hi,

I think (not sure) that you can not do it currently. the star magnitude can be obtained through StelObject class which is not supported by the scripting engine. The list of supported classes is at this link:
http://www.stellarium.org/doc/head/scripting.html

May be one of the Stellarium team can have a definitive answer.

Can you help with this problem?

Provide an answer of your own, or ask MrEndorphine for more information if necessary.

To post a message you must log in.