Vincent,
Vincent wrote:It looks like you're getting a nil value for M31 Hubble type.
You can make sure about this by replacing line 3 with:
Code: Select all
celestia:print(tostring(ht), 10, -1, 1, 6, -8)
I've replaced the third line with this code and the script indeed flashes "nil".
Vincent wrote:What happens when you select M31 from the search console?
Do you have the correct selection information text in the upper
left overlay. Also, you can use the following script to check out
if this issue happens with some other galaxies...
Code: Select all
-- Title: Display Galaxy Hubble type
while true do
sel = celestia:getselection()
if sel:type() == "galaxy" then
hubbleType = sel:getinfo().hubbleType
celestia:print(tostring(hubbleType))
end
wait(0)
end
I don't have any other problem with M31 (I have correct selection information text). Moreover, my problem probably refers to all galaxies. The script, that I've posted, is only a test-script and I've written it only to show my problem explicitly. My original script (in which I detected the problem) is much more complicated an can refer to any galaxies.
So, there is nothing special in M31. It was only an example. I don't have any other problem with any galaxies.
I much appreciate, that you're trying to help me.
Paul
"Physicists know what's important, but they don't know what is true. Mathematicians know what's true, but they don't know what is important."