Sie sind nicht angemeldet.

6av16

Anfänger

  • »6av16« ist der Autor dieses Themas

Beiträge: 6

Wohnort: Kiel

Beruf: Industrial Designer

  • Nachricht senden

1

Montag, 24. August 2020, 17:15

Switch between scenes automatically?

Hi,

I've been using Krpano for a while now, but have no background in programming, so anytime something more than the basics is required, it becomes a bit challenging for me.

I'm looking for a way to make my VR tour switch from scene to scene automatically. I assume that would work best using some kind of timer that switches to the next scene after f.ex. 10 sec, my main issue is that I need a button that can activate and deactivate the auto switching and a way to individually edit the transition styles.

Any help or suggestions for plugins is much appreciated. I also have the "add hotspot" plugin, in case there is a way to do it with that one.

Thanks! :)

David

2

Montag, 24. August 2020, 18:54

Hi, I wrote a simple code that flips through scenes.
Create a button and assign it an action autoNextScene();

Quellcode

1
2
3
4
5
6
7
8
<action name="autoNextScene">
if(autoNext, clearinterval('nextsc'); 
	     set(autoNext, false);
	     ,
	     setinterval('nextsc', 10, skin_nextscene_loop(+1); );  
	     set(autoNext, true);
   );
</action>

6av16

Anfänger

  • »6av16« ist der Autor dieses Themas

Beiträge: 6

Wohnort: Kiel

Beruf: Industrial Designer

  • Nachricht senden

3

Donnerstag, 27. August 2020, 10:15

Hi, I wrote a simple code that flips through scenes.
Create a button and assign it an action autoNextScene();

Quellcode

1
2
3
4
5
6
if(autoNext, clearinterval('nextsc'); 
	     set(autoNext, false);
	     ,
	     setinterval('nextsc', 10, skin_nextscene_loop(+1); );  
	     set(autoNext, true);
   );
Thank you! That worked great.
Would it be possible to make it so that when clicking the button it switches directly to the next scene without delay and only then starts the 10 sec. timer? Also, is there a way to individually edit the transitions? I'm trying to sort of simulate 3d movement with zooms and camera turns, for that to work the transitions need to be different each time.
Thanks again!

Edit: Managed to get the instant onclick scene-switch to work by adding a nextscene action, so only need help with the individual transitions.

Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »6av16« (27. August 2020, 11:26)


4

Freitag, 22. September 2023, 04:18

Hi, I wrote a simple code that flips through scenes.
Create a button and assign it an action autoNextScene();

Quellcode

1
2
3
4
5
6
if(autoNext, clearinterval('nextsc'); 
	     set(autoNext, false);
	     ,
	     setinterval('nextsc', 10, skin_nextscene_loop(+1); );  
	     set(autoNext, true);
   );
Thank you! That worked great.
Would it be possible to make it so that when clicking the button it switches directly to the next scene without delay and only then starts the 10 sec. timer? Also, is there a way to individually edit the transitions? I'm trying to sort of simulate 3d movement with zooms and camera turns, for that to work the transitions need to be different each time.
Thanks again!

Edit: Managed to get the instant onclick scene-switch to work by adding a nextscene action, so only need help with the individual transitions.
Is your problem solve yet? I get an issue like you