Script Menu
As I already told to Dirkpitt by private email, this new scripts menu is really wonderfull. I love it as it is and, IMHO, don't need anything more for the scripts menu (I don't think I would use the scripts browser if there was any).
Now, what is the utility to leave the Demo script in the "Celestia" menu ? I suggest that it is removed from there (and its "D" shortcut also removed), and the demo script placed in the new scripts folder.
My students were frequently hiting "D" by mistake (since it's close to the F and G shortcuts), and that was very confusing to them : they don't remember that they can cancel a script using the "ESCAPE" key. However, despite the students frequent mistake, the "D" shortcut could be used for something more important than the demo script.
Now, what is the utility to leave the Demo script in the "Celestia" menu ? I suggest that it is removed from there (and its "D" shortcut also removed), and the demo script placed in the new scripts folder.
My students were frequently hiting "D" by mistake (since it's close to the F and G shortcuts), and that was very confusing to them : they don't remember that they can cancel a script using the "ESCAPE" key. However, despite the students frequent mistake, the "D" shortcut could be used for something more important than the demo script.
"Well! I've often seen a cat without a grin", thought Alice; "but a grin without a cat! It's the most curious thing I ever saw in all my life!"
-
- Developer
- Posts: 3776
- Joined: 04.02.2005
- With us: 19 years 9 months
ElChristou wrote:and now I also find the "run script" item is useless...
You mean "Open script ..." ?
I don't agree here (if it's what you were talking about). Sometimes, I have some experimental scripts on my desktop that I want to use (without going to the desktop and double-clicking on it). So the "Open script..." menu item is usefull.
"Well! I've often seen a cat without a grin", thought Alice; "but a grin without a cat! It's the most curious thing I ever saw in all my life!"
-
- Developer
- Posts: 3776
- Joined: 04.02.2005
- With us: 19 years 9 months
Cham wrote:ElChristou wrote:and now I also find the "run script" item is useless...
You mean "Open script ..." ?
I don't agree here (if it's what you were talking about). Sometimes, I have some experimental scripts on my desktop that I want to use (without going to the desktop and double-clicking on it). So the "Open script..." menu item is usefull.
Right.
-
Topic authorchris
- Site Admin
- Posts: 4211
- Joined: 28.01.2002
- With us: 22 years 9 months
- Location: Seattle, Washington, USA
Cham wrote:My students were frequently hiting "D" by mistake (since it's close to the F and G shortcuts), and that was very confusing to them : they don't remember that they can cancel a script using the "ESCAPE" key. However, despite the students frequent mistake, the "D" shortcut could be used for something more important than the demo script.
I agree that the scripts menu makes the demo obsolete. The demo should be moved to the scripts directory and the D shortcut removed. Anyone want to volunteer to write the new official demo scripts? I think that the current one is very dated.
--Chris
-
Topic authorchris
- Site Admin
- Posts: 4211
- Joined: 28.01.2002
- With us: 22 years 9 months
- Location: Seattle, Washington, USA
dirkpitt wrote:I added a Scripts menu to the OS X version. Currently it is only in my unofficial builds.
I decided to make the behaviour of the menu basically the same as the Windows version for now (i.e., Title is displayed if available, and subfolders are not scanned). What do you guys think?
Thank you for implementing this in the OS X version. It's very easy to change the code to scan subfolders of the scripts directory if people want that.
--Chris
chris wrote:Thank you for implementing this in the OS X version. It's very easy to change the code to scan subfolders of the scripts directory if people want that.
That could be very usefull. I personally have a subfolder full of scripts I rarely use. Could be very handy to have that subfolder to be shown in the scripts menu as well.
Sub directories could also help organising the scripts menu with various subjects (planets scripts, galactic scripts, etc).
I'm still experimenting with the scripts menu right now. It's working very well.
"Well! I've often seen a cat without a grin", thought Alice; "but a grin without a cat! It's the most curious thing I ever saw in all my life!"
Cham wrote:chris wrote:It's very easy to change the code to scan subfolders of the scripts directory if people want that.
That could be very usefull. I personally have a subfolder full of scripts I rarely use. Could be very handy to have that subfolder to be shown in the scripts menu as well.
Ok, I'll try that in my next build. Subfolders would show up as submenus.
-
- Developer
- Posts: 3776
- Joined: 04.02.2005
- With us: 19 years 9 months
ElChristou wrote:The tag -- Title: is really cool, but seems to not be supported by cel script; someone confirm? (the tag is recognized by the menu but breack the script)
I confirm this. The tag info is appearing in the menu, but the cel isn't working anymore. Removing the tag info makes the script to work again.
"Well! I've often seen a cat without a grin", thought Alice; "but a grin without a cat! It's the most curious thing I ever saw in all my life!"
-
Topic authorchris
- Site Admin
- Posts: 4211
- Joined: 28.01.2002
- With us: 22 years 9 months
- Location: Seattle, Washington, USA
Cham wrote:ElChristou wrote:The tag -- Title: is really cool, but seems to not be supported by cel script; someone confirm? (the tag is recognized by the menu but breack the script)
I confirm this. The tag info is appearing in the menu, but the cel isn't working anymore. Removing the tag info makes the script to work again.
The problem is the --. You need to use .cel style comments, not Lua style comments. So instead of
Code: Select all
-- Title: My Script
use:
Code: Select all
# Title: My Script
--Chris
-
- Posts: 41
- Joined: 18.01.2007
- With us: 17 years 10 months
I have long since remapped the "D" key to invoke the Warpdrive... (because D stands for "Drive" of course!... not "Demo"!.Cham wrote:...the "D" shortcut could be used for something more important than the demo script.
Another handy use of the "D" key is to quickly run a script to reset FOV to a default value (in my case 35 degrees), as it can often change with accidental keystrokes or window maximising or minimising.
"Once you're in Earth orbit you're half way to almost anywhere in the Universe" - Robert Heinlein
CLICK HERE TO DOWNLOAD THE WARPDRIVE
CLICK HERE TO DOWNLOAD THE WARPDRIVE
-
- Developer
- Posts: 3776
- Joined: 04.02.2005
- With us: 19 years 9 months
chris wrote:...The demo should be moved to the scripts directory and the D shortcut removed. Anyone want to volunteer to write the new official demo scripts? I think that the current one is very dated.
Unfortunatly I'm unable to do that, but what would be cool is to use Toti's B-spline to have some really smooth displacement around planets...
Also a little look before returning home on the large scale structure of the galaxies would be welcome...
-
- Developer
- Posts: 1356
- Joined: 07.01.2005
- With us: 19 years 10 months
- Location: Nancy, France
I can give it a try, but first, we should come to an agreement about the synopsis. As suggested by Chris, the script shouldn't ignore a view of the galaxies at large scale. Any other suggestions ?
@+
Vincent
Celestia Qt4 SVN / Celestia 1.6.1 + Lua Edu Tools v1.2
GeForce 8600 GT 1024MB / AMD Athlon 64 Dual Core / 4Go DDR2 / XP SP3
Vincent
Celestia Qt4 SVN / Celestia 1.6.1 + Lua Edu Tools v1.2
GeForce 8600 GT 1024MB / AMD Athlon 64 Dual Core / 4Go DDR2 / XP SP3
- t00fri
- Developer
- Posts: 8772
- Joined: 29.03.2002
- Age: 22
- With us: 22 years 7 months
- Location: Hamburg, Germany
starfleetengineer wrote:...
Another handy use of the "D" key is to quickly run a script to reset FOV to a default value (in my case 35 degrees), as it can often change with accidental keystrokes or window maximising or minimising.
A long long time ago I implemented the middle mouse key to toggle between the actual and the default FoV. Try it, it still works
It's much more handy than some D key...
Bye Fridger
-
- Developer
- Posts: 3776
- Joined: 04.02.2005
- With us: 19 years 9 months
Vincent wrote:I can give it a try, but first, we should come to an agreement about the synopsis. As suggested by Chris, the script shouldn't ignore a view of the galaxies at large scale. Any other suggestions ?
What about something simple, no text, just to show what Celestia is able to do?
The demo could star near earth on dark side (kind what's the hell is this? all is dark, nothing to see?), then when the Sun appears, a simple, long zoom out, passing near various bodies: sapcecraft (ISS), asteroid, planets, stars (with exo planets) then Milky Way, local group, ending on a general view of the deepsky catalog, a few seconds of rotation, then a quick come back to earth and stop...
This could be nice if the observer trajectory, speed, and PoV are carefully chossen...
-
- Developer
- Posts: 944
- Joined: 18.07.2002
- With us: 22 years 4 months
- Location: Lyon (France)
t00fri wrote:Is it really true that Linux is now 'behind' as to the script menue...Wow.
Gna gna gna...
But the Windows GUI uses the main script directory which is normaly not the one used by a Linux user, so the adaptation would require a bit of refinement, may be scanning all the extrasdirs for scripts? or adding a scriptdir config option?
Christophe