• Print view

## jumpto function doco?

Forum rules
Please help to make this forum more useful by checking the FAQs before posting! Keep it clean, keep it civil, keep it truthful, stay on topic, be responsible, share your knowledge.
Topic author
primaveranz
Posts: 4
Joined: 08.01.2010
With us: 9 years 7 months

### jumpto function doco?

Hi,
I am a newbie trying to record a simple panning and zooming motion from the Sun to the Earth but am making a real hash of it

I was hoping to stick with using a CEL script rather than having to understand the CELX equivalent but finally downloaded the Celxmaker script which records your manual actions. I wanted to tweak the result but can't find any documentation on the "jumpto" function anywhere.

Or can anyone explain how I can achieve my aim smoothly using CEL code in Celestia 1.6.1?

The issues I have been finding are that the Earth shoots in from random positions on the screen and that the camera doesn't pan or zoom smoothly towards the Earth but accelerates then "jams the breaks on" which is a bit disconcerting.
Any pointers greatly appreicated.

Cheers,
John

Posts: 458
Joined: 17.09.2008
With us: 10 years 11 months
Location: Paris France

### Re: jumpto function doco?

Hi,

Unless you kwow exactly what you are doing, do not try to tweak the jumpto function or any function of the "autocelxfunctions.lua" which is the core module of the celxmaker program.
Just for information the jumto fonction is an easy way to use the celx goto function with a table as explained here
http://en.wikibooks.org/wiki/Celestia/C ... 28table.29
Some elements of the table are provided as parameters of the function an some other are defined at the beginning of the generated script.

Instead, you can tweak the resulting script generated by celxmaker.
An efficient way to smooth your path is to modify the first parameter of the generated functions stepto or orbitto within the script.
These instructions bring you to the next position and the first parameter is the time in second to reach it.

When you record the keyboard actions, think also to plan your moves to have the simplest way to achieve your aim.

Some trial an errors are sometime necessary to learn how they work.

Topic author
primaveranz
Posts: 4
Joined: 08.01.2010
With us: 9 years 7 months

### Re: jumpto function doco?

Thanks for the reply Jogad. I will try and work through the documentation you linked to and figure it out.