Page 1 of 1

Can an addon be toggled on and off?

Posted: 06.01.2005, 19:21
by Sky Pilot
Is there a way in Celestia to toggle on and off a particular addon?

"Toggle for Add-Ons"

Posted: 06.01.2005, 22:52
by HJS
As far as I know there is no way to toggle add-ons from within Celestia. I have developed the following two methods to "toggle" add-ons, however

1. Change the extension on the ssc file that controls the add-on to sscx. This will not allow Celestia to run the add-on.

2. Create a sub-folder within your Celestia folder that is named "Extras (Turned Off)", without the quote marks. This means that you will now have a folder named "Extras" and another folder named "Extras (Turned Off)" in your Celestia folder. If you now want to turn-off an add-on, just move the add-on's folder from "Extras" to "Extras (Turned-Off)" You can give the "Extras (Turned-Off)" any other name you would like, just as long as it is a name that Celestia will not recognize. You can then, of course, turn the add-on on by moving its folder back to the "Extras" folder.

All of the above steps have to be done when Celestia is not running, so this is not a true toggle that is run within the program, but this is as close as you can get to toggling add-ons.

Hope that this helps.

Posted: 07.01.2005, 21:41
by Alessandro
Hi,

I think there is a better way with Altsurface method :

making a ssc file in extra directory for example 'earth venus.ssc'
with this code inside

AltSurface "Earth venus" "Sol/Earth"
{
Texture "venus.*"

}

this permit going to the earth and right click in the menu that appear
click on Alternate surface and choose 'earth venus'
then again on 'normal' to return to the earth map.

I think this is like toggle maps

hope this helps.(and that this is a correct solution...)

Ciao
Alessandro.

Posted: 07.01.2005, 22:13
by Sky Pilot
Alessandro wrote:Hi,

I think there is a better way with Altsurface method :

making a ssc file in extra directory for example 'earth venus.ssc'
with this code inside

AltSurface "Earth venus" "Sol/Earth"
{
Texture "venus.*"

}

this permit going to the earth and right click in the menu that appear
click on Alternate surface and choose 'earth venus'
then again on 'normal' to return to the earth map.

I think this is like toggle maps

hope this helps.(and that this is a correct solution...)

Ciao
Alessandro.


This just might work. Thanks.

Toggle of Add-Ons

Posted: 08.01.2005, 01:30
by HJS
The technique outlined using AltSurface is indeed satisfactory for "toggling" textures, but it doesn't work for add-ons. There is a significant difference between textures and add-ons. Please be sure you know which one you are handling. They cannot be manipulated in the same way.

Toggle of Add-Ons

Posted: 08.01.2005, 01:30
by HJS
The technique outlined using AltSurface is indeed satisfactory for "toggling" textures, but it doesn't work for add-ons. There is a significant difference between textures and add-ons. Please be sure you know which one you are handling. They cannot be manipulated in the same way.