Sie sind nicht angemeldet.

1

Donnerstag, 22. April 2010, 14:58

[solved]Arrays and Hotspots...

Hi,

I don't know why, but krpano wont let me do this:

Quellcode

1
addhotspot(%1);


If i can use arrays inside krpano, why can't i add a new hotspot with a number as Name/Index ?


Declan

Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »rctdeclan« (22. April 2010, 19:46)


2

Donnerstag, 22. April 2010, 15:28

Hi Declan,

Just an idea... If the attributes of your hotspot are not already sets, you have to set them...

Quellcode

1
2
3
addhotspot(newspot);
set(hotspot[newspot].url,spot.png);
.......
Hoe this help...

SAlut.

3

Donnerstag, 22. April 2010, 17:20

Offcourse i did, i just copied the pieces you needed to see for my question...

Declan

4

Donnerstag, 22. April 2010, 17:35

Hi Declan,

It seems that using number as name for your hotspot is not a good idea....
Try adding _ at your name number:

Quellcode

1
2
3
4
5
6
<action name="NewHotspot">
addhotspot(%1);
</action>

<scene onstart="NewHotspot(_324);">
</scene>


SAlut.