You are not logged in.

Dear visitor, welcome to krpano.com Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

1

Tuesday, April 21st 2020, 4:57pm

Dragging data from one scene to the next

In the first scene of https://ijlab.es/respuestas/ you can see 2 buttons (stars) that activate plugins in the upper left, each one showing a letter.
In the second scene there is a star that makes a number appear.

I want the activated numbers and letters to be seen when moving from one scene to another. That is, if the goal is to find all 3 stars, the three gaps above should be completed.
Now what is done when changing pano is canceled.

I have tried to put the plugins out of the scene, but it doesn't work for me.
Any idea?
Thank you

This is the code:

Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<scene name="cubo_01" title="cubo_01" onstart="" thumburl="panos/1.tiles/thumb.jpg" lat="" lng="" heading="">
<view hlookat="0.0" vlookat="0.0" fovtype="MFOV" fov="120" maxpixelzoom="2.0" fovmin="70" fovmax="140" limitview="auto" />
<preview type="grid(CUBE,16,16,512,0xCCCCCC,0xFFFFFF,0x999999);" />

<image><cube type="grid(CUBE,16,16,512,0xCCCCCC,0xFFFFFF,0x999999);" /></image>
				 
<hotspot name="boton1" url="imag/estrellita_roja.png" enabled="true" zorder="1" distorted="true" handcursor="false" ath="0" atv="-20" width="20" height="20" edge="center" ox="0" oy="0" alpha="1" onclick="tween(plugin[boton1b].rotate,0);tween(plugin[boton1b].alpha,1);tween(hotspot[boton1].alpha,0.3);set(varA,1);comprobacion();" scale="5"/>
<plugin name="boton1b" url="imag/cuadrado_a.png" align="lefttop" x="5" y="5" width="30" height="30" zorder="4" capture="false" handcursor="false" enabled="false" alpha="0" onloaded="set(rotate,-180);" />
<plugin name="boton1a" url="imag/cuadrado.png" align="lefttop" x="5" y="5" width="30" height="30" zorder="3" capture="false" enabled="false" onloaded="set(alpha,0.8);"/>

<hotspot name="boton2" url="imag/estrellita_azulclaro.png" enabled="true" zorder="1" distorted="true" handcursor="false" ath="10" atv="0" width="20" height="20" edge="center" ox="0" oy="0" alpha="1" onclick="tween(plugin[boton2b].rotate,0);tween(plugin[boton2b].alpha,1);tween(hotspot[boton2].alpha,0.3);set(varB,1);comprobacion();" scale="5" />
<plugin name="boton2b" url="imag/cuadrado_b.png" align="lefttop" x="40" y="5" width="30" height="30" zorder="4" capture="false" handcursor="false" enabled="false" alpha="0" onloaded="set(rotate,-180);" />
<plugin name="boton2a" url="imag/cuadrado.png" align="lefttop" x="40" y="5" width="30" height="30" zorder="3" capture="false" enabled="false" onloaded="set(alpha,0.8);"/>
<plugin name="boton3b" url="imag/cuadrado_1.png" align="lefttop" x="75" y="5" width="30" height="30" zorder="4" capture="false" handcursor="false" enabled="false" alpha="0" onloaded="set(rotate,-180);" />
<plugin name="boton3a" url="imag/cuadrado.png" align="lefttop" x="75" y="5" width="30" height="30" zorder="3" capture="false" enabled="false" onloaded="set(alpha,0.8);"/>

</scene>
	
<scene name="cubo_02" title="cubo_01" onstart="" thumburl="panos/1.tiles/thumb.jpg" lat="" lng="" heading="">
<view hlookat="0.0" vlookat="0.0" fovtype="MFOV" fov="120" maxpixelzoom="2.0" fovmin="70" fovmax="140" limitview="auto" />
<preview type="grid(CUBE,16,16,512,0xCCCCCC,0xFFFFFF,0x999999);" />
<image><cube type="grid(CUBE,16,16,512,0xCCCCCC,0xFFFFFF,0x999999);" /></image>
						 
<hotspot name="boton3" url="imag/estrellita_amarilla.png" enabled="true" zorder="1" distorted="true" handcursor="false" ath="0" atv="-20" width="20" height="20" edge="center" ox="0" oy="0" alpha="1" onclick="tween(plugin[boton3b].rotate,0);tween(plugin[boton3b].alpha,1);tween(hotspot[boton3].alpha,0.3);set(varA,1);comprobacion();" scale="5"/>
<plugin name="boton1b" url="imag/cuadrado_a.png" align="lefttop" x="5" y="5" width="30" height="30" zorder="4" capture="false" handcursor="false" enabled="false" alpha="0" onloaded="set(rotate,-180);" />
<plugin name="boton1a" url="imag/cuadrado.png" align="lefttop" x="5" y="5" width="30" height="30" zorder="3" capture="false" enabled="false" onloaded="set(alpha,0.8);"/>
<plugin name="boton2b" url="imag/cuadrado_b.png" align="lefttop" x="40" y="5" width="30" height="30" zorder="4" capture="false" handcursor="false" enabled="false" alpha="0" onloaded="set(rotate,-180);" />
<plugin name="boton2a" url="imag/cuadrado.png" align="lefttop" x="40" y="5" width="30" height="30" zorder="3" capture="false" enabled="false" onloaded="set(alpha,0.8);"/><plugin name="boton3b" url="imag/cuadrado_1.png" align="lefttop" x="75" y="5" width="30" height="30" zorder="4" capture="false" handcursor="false" enabled="false" alpha="0" onloaded="set(rotate,-180);" />
<plugin name="boton3a" url="imag/cuadrado.png" align="lefttop" x="75" y="5" width="30" height="30" zorder="3" capture="false" enabled="false" onloaded="set(alpha,0.8);"/>

</scene>

2

Thursday, April 23rd 2020, 1:28pm

Solved

In order for the plugins to work outside the scenes and to be maintained from one scene to the next,

Source code

1
keep = "true" 
had to be added