Page 1 of 1

Is it possible to toggle Label/Visibility for an Object?

Posted: 26.01.2005, 17:37
by Zarius
Hi,

The subject line sums it up, just wondering if it is possible to show a label for one particular object (say m33) rather than all objects (eg. galaxies) as sometimes there are a lot of labels in that class you might not want to show (eg. you've got the extra galaxies files - 1800 or so of them). This can be handy for touring scripts and anywhere you want to point out one particular object - in additional to the option of marking it (and to reduce confusion when marking multiple objects)..

A work-around could be to use the print command at a particular location on the screen, but this has many disadvantages: namely not neccessarily knowing where the object is & only being able to have one string printed on the screen at once.


Similar in concept - can one show/hide a particular object rather than a whole class of them? Though I can't think of a particular use at the moment, I'm sure this could be handy in some circumstances.

Thanks,
Zarius.

Posted: 26.01.2005, 21:04
by Vincent
I've asked exactly the same question a week ago and i didn't get any answer... :cry:

@+
Vincent

Posted: 26.01.2005, 23:06
by Bob Hegwood
I don't believe that that capability yet exists in Celestia...

However, you can also get creative with your marking symbols. You can use
the number 1 for your first mark, the number 2 for your second, etc...

You can also use different letters of the alphabet to differentiate the
different objects you're trying to point out.

Maybe that helps?

Take care, Bob

Posted: 27.01.2005, 10:09
by Zarius
Thanks Bob,

Using numbers and letters could be a handy work-around at times (btw: according to documentation I thought the marking symbols could only be set to 'triangle', 'x', 'diamond', etc? I guess using just "b", etc works? I'll have to try it when I get home :)), but I'd really prefer to have the actual label :)

Since it doesn't seem that it's there, I'll dig around the source code and see if I can put it in there (and perhaps submit a patch for perusal) - I'm thinking of adding it in celx as object:mark(), object:unmark() ( or object:mark(true/false) ) and object:visible(true/false) ( or object:show(), object:hide() ).

Anyway, I'll have a play with this later on - don't hold your breath, I haven't got the source code to compile properly yet :)

--
Zarius.

Posted: 27.01.2005, 15:41
by Bob Hegwood
Sorry Zarius...

I was completely wrong about that capability.

As the documentation states, you can only use the following in order to mark
objects:

* diamond (default)
* plus
* square
* triangle
* x

When I tried to do what I told you to do, all I got were diamonds.

Now I know I'm Brain-Dead... I could have sworn that I did use
letters and numbers in the past sometime though.

Again, sorry for the bad advice. Maybe we could add this to the feature
requests topic?

Take care, Bob