|
|
Source code |
1 2 3 4 5 6 7 8 9 |
<action name="qqq"> addhotspot(tempspot); set(hotspot[tempspot].ath, view.hlookat); set(hotspot[tempspot].atv, view.vlookat); showlog(); spheretoscreen(view.hlookat, view.vlookat, x, y); trace(x); spheretoscreen(hotspot[tempspot].ath, hotspot[tempspot].atv, x, y); trace(x);</action> |
|
|
Source code |
1 2 |
INFO: 640.0000098550727 INFO: NaN |
|
|
Source code |
1 2 3 4 5 6 7 8 9 |
<action name="qqq">
addhotspot(tempspot);
copy(hotspot[tempspot].ath, view.hlookat);
copy(hotspot[tempspot].atv, view.vlookat);
showlog();
spheretoscreen(view.hlookat, view.vlookat, x, y);
trace('x: ',get(x));
spheretoscreen(hotspot[tempspot].ath, hotspot[tempspot].atv, x, y);
trace('x: ',get(x));</action>
|
|
|
Source code |
1 2 3 4 5 6 7 8 9 |
<action name="qqq">
addhotspot(tempspot);
set(hotspot[tempspot].ath, %1);
set(hotspot[tempspot].atv, %2);
showlog();
spheretoscreen(hotspot[tempspot].ath, hotspot[tempspot].atv, x, y);
trace('x: ',get(x));
</action>
|
|
|
Source code |
1 |
qqq(10, 20); |
|
|
Source code |
1 |
trace('x: ',get(x));
|
|
|
Source code |
1 |
trace('x: ',x);
|
Sometimes yes and sometimes not... With GET is safety.you don't need to make
Source code
1
trace('x: ',get(x));
just
Source code
1
trace('x: ',x);
|
|
Source code |
1 |
addhotspot(tempspot); set(hotspot[tempspot].url, 'skin/vtourskin_hotspot.png'); copy(hotspot[tempspot].ath, view.hlookat); copy(hotspot[tempspot].atv, view.vlookat); showlog(); spheretoscreen(view.hlookat, view.vlookat, x, y); trace(x); spheretoscreen(hotspot[tempspot].ath, hotspot[tempspot].atv, x, y); trace(x); |
|
|
Source code |
1 |
addhotspot(tempspot); copy(hotspot[tempspot].ath, view.hlookat); copy(hotspot[tempspot].atv, view.vlookat); showlog(); spheretoscreen(view.hlookat, view.vlookat, x, y); trace(x); spheretoscreen(hotspot[tempspot].ath, hotspot[tempspot].atv, x, y); trace(x); |
|
|
Source code |
1 |
addhotspot(tempspot); set(hotspot[tempspot].ath, -90); copy(hotspot[tempspot].atv, view.vlookat); showlog(); spheretoscreen(view.hlookat, view.vlookat, x, y); trace(x); spheretoscreen(hotspot[tempspot].ath, hotspot[tempspot].atv, x, y); trace(x); |
|
|
Source code |
1 2 3 4 5 6 7 8 9 10 |
<events onclick="qqq();" /> <action name="qqq"> showlog(); set(hhh, view.hlookat); set(vvv, view.vlookat); spheretoscreen(view.hlookat, view.vlookat, x, y); trace(x); spheretoscreen(hhh, vvv, x, y); trace(x); </action> |
|
|
Source code |
1 2 |
INFO: 640.0000006207051 INFO: NaN |
|
|
Source code |
1 2 3 |
krpano.set("hhh", $(this).attr('hlookat'));
krpano.set("vvv", $(this).attr('vlookat'));
krpano.call("spheretoscreen(hhh, vvv, xxx, yyy);");
|
|
|
Source code |
1 2 3 4 5 6 7 |
<action name="qqq3">
showlog();
set(hhh, 50);
set(vvv, 50);
lookat(get(hhh), get(vvv));
delayedcall(1, spheretoscreen(hhh, vvv, x, y); trace('x: ', x););
</action>
|
This post has been edited 2 times, last edit by "sblack" (Jun 23rd 2017, 2:31pm)