You are not logged in.

1

Thursday, March 11th 2021, 9:43am

Is it possible to reset hlootak value to 0 with if?

Hi. Is it possible to reset hlootak value to 0 with if?



When krpano continues to rotate to the right, the hlootak value seems to go over 360.


Is it correct that it is assigned to 720 by turning 2 turns?


If yes, is there a way to rotate 360 (one turn) and reset to 0?

2

Thursday, March 11th 2021, 4:32pm

the modulo is your friend

<events name="modulo" onviewchange="copy(hl,view.hlookat);mod(hl,360);trace(hl);" keep="true" />

Tuur

Sage

Posts: 3,839

Location: Netherlands

Occupation: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer

  • Send private message

3

Thursday, March 11th 2021, 6:07pm

..
or

Source code

1
<events name="modulo" onviewchange="adjusthlookat(180);trace(view.hlookat);" keep="true" />



Tuur *thumbsup*

4

Friday, March 12th 2021, 12:53am

Wow thank you!

the modulo is your friend



It works very well!

thank you!

5

Friday, March 12th 2021, 12:55am

thank you!

..
or

Source code

1

				



Tuur *thumbsup*

This works great too!

thank you!