wait command

Asked by Lata

Hello,

What is the significance and use of <wait action reset_timer> command????

Regards,
Lata

Question information

Language:
English Edit question
Status:
Solved
For:
Nightshade Legacy Edit question
Assignee:
No assignee Edit question
Solved by:
Rob Spearman
Solved:
Last query:
Last reply:
Revision history for this message
ASTROdidactico (raul-astrodidactico) said :
#1

If you are moving an image (for example) you will need to use a duration argumentm, for example:

image name A filename a.png altitude -20 azimuth 0 alpha 1 scale 30 coordinate_system dome
image name A altitud 60 duration 10
wait duration 10

So your image will appear moving up in 10 seconds. Normally you will need to wait some time before doing other things (the same time or not).

About wait action reset_timer....

This is a rarely used buy useful argument to reset the timer for the next
wait duration command. For example, if you load a number of images
you do not know how much time this will take on different hardware. If
you want to load your images and then wait 1 second before doing
something else, just using a duration argument might not work as you
intend because the image loading takes some amount of time, maybe
even more than 1 second since the last wait command. So by using this
command right after loading the images, you can have a definite starting
point for your next wait duration command.

imaging loading a lot of images

image name 1 filename 1.png alpha 0
image name 2 filename 2.png alpha 0
image name 3 filename 3.png alpha 0
image name 4 filename 4.png alpha 0
image name 5 filename 5.png alpha 0
.
.
.
.
image name 20 filename 20.png alpha 0
wait action reset_timer 3

image name 1 alpha 1

with that you will change to alpha 1 the opacity of the image 1 3 seconds after last images was loaded.

Does it help?

Raul

Revision history for this message
Lata (lata-ct) said :
#2

Raul,

Thanx for replying. But let say we are loading 50-100 images,

image name 1 filename 1.png alpha 0
image name 2 filename 2.png alpha 0
image name 3 filename 3.png alpha 0
image name 4 filename 4.png alpha 0
image name 5 filename 5.png alpha 0
.
.
.
.
image name 200 filename 200.png alpha 0
wait action reset_timer 3

image name 1 alpha 1

here in above case it is possible that it takes more than 3 seconds to execute next line.

So how we'll decide the value for this command????

Revision history for this message
Lata (lata-ct) said :
#3

Raul,

I tried this and took 240 images,

image name 1 filename 1.png alpha 0
image name 2 filename 2.png alpha 0
image name 3 filename 3.png alpha 0
image name 4 filename 4.png alpha 0
image name 5 filename 5.png alpha 0
.
.
.
image name 240 filename 240.png alpha 0
wait action reset_timer 5

image name 1 alpha 1

1) wait action reset_timer 5
             It took 9 seconds to execute < image name 1 alpha 1 > line.

2) wait action reset_timer 15
            and when I changed value to 15, then also it took 9 seconds to execute < image name 1 alpha 1> line.

Revision history for this message
ASTROdidactico (raul-astrodidactico) said :
#4

Ummmm! Rob can you help about?

Revision history for this message
Best Rob Spearman (rob-digitaliseducation) said :
#5

Yes, Lata you are not using proper command syntax. Try "wait action reset_timer duration 15"

Revision history for this message
Lata (lata-ct) said :
#6

Rob, Thanx it is working.

Revision history for this message
Lata (lata-ct) said :
#7

Raul, thanx for your consideration.

Revision history for this message
Lata (lata-ct) said :
#8

Thanks Rob Spearman, that solved my question.