Save View Options

The place to discuss creating, porting and modifying Celestia's source code.
Topic author
Hoover
Posts: 55
Joined: 16.06.2004
With us: 20 years 5 months

Save View Options

Post #1by Hoover » 27.01.2011, 18:43

A cel url can change the View Options. This is reasonable as they are necessary to certain views, but sometimes they get changed quite a bit from what I usually like to see. So I end up changing them back.

What I would like to see is the ability to save a 'default' View Options. Then to be able to Restore Default View Options. This would only involve one set of view options and not have to have multiple profiles or anything more complicated.

Topic author
Hoover
Posts: 55
Joined: 16.06.2004
With us: 20 years 5 months

Re: Save View Options

Post #2by Hoover » 27.01.2011, 21:00

I found one quasi-acceptable method for doing this now at least in Windows.

Consider something that might be a default view. Set all the view options desired. Save the URL. Create a desktop shortcut and paste the URL.

Now the shortcut can be used to start Celestia (or reset view options in a session).

There are two problems with this. In a session the options can't be changed to default for the current view. It always goes to the view saved URL.

Secondly the time always goes back to what it was at the time the URL was saved. Using the ! control will set the time back to present, but forgetting this will inevitably create issues.

Avatar
jogad
Posts: 458
Joined: 17.09.2008
With us: 16 years 2 months
Location: Paris France

Re: Save View Options

Post #3by jogad » 29.01.2011, 08:28

Hello,

I am not sure I understand exactly what you want and what you call a default view.
There are two different things:
- the position (in space and in time)
- the view options that are independant of the position

The cel:URL stores the two things together.

But a script can easily set one or the other.

Have a look at the start.cel script in the main directory of Celestia.

There are lines that you can uncomment to set the starting view exactly the way you desire.
It is an ordinary script and you can relaunch it in a celestia session.
You can also split this script in two scripts: one to set the position, and one to set the view options.

Does this help?
:mrgreen:

Topic author
Hoover
Posts: 55
Joined: 16.06.2004
With us: 20 years 5 months

Re: Save View Options

Post #4by Hoover » 31.01.2011, 00:52

jogad wrote:
Does this help?
:mrgreen:

This helps very much! Thanks!


Return to “Development”