You are not logged in.

1

Friday, April 12th 2013, 4:19pm

Need an Event

I need some event that could tell me when the current hlookat position equals the starting hlookat position.
I've got the information for both variables just need an event that will tell me when they are equal.

Thanks,
Ben

Taurus

Trainee

Posts: 140

Location: Belarus

Occupation: photographer & virtual tour developer

  • Send private message

2

Friday, April 12th 2013, 6:30pm

I suggest you create an event yourself
it should be noted that the load on the flash-player will increase

Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<events onviewchanged="test_hlookat"/>

<action name="event_your_needed">
...
</action>

<scene name=... onstart="set(hlookat_mem, get(view.hlookat));roundval(hlookat_mem,0);" ... >
...
<action name="test_hlookat">
set(hlookat_tested, get(view.hlookat));
roundval(hlookat_tested,0);
if(hlookat_tested == hlookat_mem, action(event_your_needed));
</action>

</scene>

Serge
--
in order to comply the word with the affairs, you need to keep quiet and do nothing!

Virtual tour Gomel
Virtual tour
Virtual tour
Elbrus
...

Windows 10x64 & krpano 1.20