You are not logged in.

1

Monday, December 12th 2011, 1:55pm

autotour step - after interrupt step increment

Hallo,
an autotour put together after different ideas by Klaus found here in the forum.
Problem: after user input, the autotour doesn't restart at the point of interruption (current step) but at current step plus 1 ^^

Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<action name="startup">		
	  <!-- build the thumbnails (remove the next line to remove the thumbnails) -->
	  buildthumbs(); 
	  set(step,1);
	  set(idletime,4);
	  set(events.onidle, autotour() );
</action>
	
<action name="autotour">
	  oninterrupt(break);
	  if(step == 1, loadscene(scene_baghahouddin, null, MERGE, ZOOMBLEND(1,2) ); lookto(360, get(view.vlookat),get(view.fov), smooth(2,2,5), false); inc(step); );
	  if(step == 2, loadscene(scene_chor-bakr-2569, null, MERGE, ZOOMBLEND(1,2) ); lookto(360, get(view.vlookat),get(view.fov), smooth(2,2,5), false); inc(step); );
	  if(step == 3, loadscene(scene_chor-minor, null, MERGE, ZOOMBLEND(1,2) ); lookto(360, get(view.vlookat),get(view.fov), smooth(2,2,5), false); inc(step); );
          ...
          ...
	  if(step == 11, tourdone(); set(step,1); );
</action>

2

Friday, December 23rd 2011, 1:27pm

sry for repeating... nobody ever encountered this behaviour?
see here