Sie sind nicht angemeldet.

1

Mittwoch, 6. Juni 2018, 08:38

autorotate in latest vtour not working?

Hello,
I´ve created a tour with vtour-droplet and added following autorotate-code

Quellcode

1
2
3
4
5
6
7
8
<events onloadcomplete="set(autorotate.enabled,true);" /> 

<autorotate enabled="true"
            waittime="0" 
            speed="3.0" 
            horizon="0.0" 
            tofov="120.0" 
            /> 



But autorotate doesn´t start. I figured out in krpano pr12 it´s working, but since pr13 this code doesn´t work.
Why that?

best,
Marc

2

Mittwoch, 6. Juni 2018, 08:50

okay, everything clear now - I had some code in another xml which seems to work since pr13 :)

Quellcode

1
set(events.onloadcomplete, if(plugin[rotateoff].visible == true, set(autorotate.enabled,true), set(autorotate.enabled,false) ); );

3

Mittwoch, 6. Juni 2018, 13:30

Hi,

are you sure that the krpano version was the problem?

When 'set(events.onloadcomplete, ...);' is working it might be more probable that the onloadcomplete event has got overwritten/redefined.

Best regards,
Klaus

4

Mittwoch, 6. Juni 2018, 14:23

yes I think it has got overwritten but it seems that pr12 and pr13-16 have different handling for this...
but at the end it was my mistake and so it´s fine now :)

thanks,
Marc