You are not logged in.

1

Monday, May 25th 2020, 2:16pm

Get point Atv Ath for dynamical Polygonal Hotspot creation.

Hi,


I would like to know how to access to points ATV ATH when my file looks like :



Source code

1
2
<krpano>	<elements name="hotspots">
		<item name="polyspot_1"  style="my_style" >			<point ath="-4.687" atv="-5.712" />			<point ath="4.505" atv="-5.735" />			<point ath="4.417" atv="13.633" />			<point ath="-4.517" atv="13.601" />		</item><krpano>



i can access to the name and style by :

Source code

1
trace(get(elements[hotspots].item[0].name));trace(get(elements[hotspots].item[0].style));



but how to access to point ath atv ?


i've tried,


Source code

1
2
trace(get(elements[hotspots].item[0].point.count));
trace(get(elements[hotspots].item[0].point[0].atv));trace(get(elements[hotspots].item[0].point[0].ath));


but always return "null"

regards

panoyun

Beginner

Posts: 31

Location: Somalia

  • Send private message

2

Monday, May 25th 2020, 2:58pm

Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
	<elements name="hotspots">
		<item name="polyspot_1"  style="my_style" >			
			<point name="point_0" ath="-4.687" atv="-5.712" />			
			<point name="point_1" ath="4.505" atv="-5.735" />			
			<point name="point_2" ath="4.417" atv="13.633" />			
			<point name="point_3" ath="-4.517" atv="13.601" />		
		</item>
	</elements>

	<action name="action_jfnauhudhlms" autorun="onstart">
	trace(get(elements[hotspots].item[0].name));
	trace(get(elements[hotspots].item[0].style));

	trace(get(elements[hotspots].item[0].point.count));
	trace(get(elements[hotspots].item[0].point[0].atv));
	trace(get(elements[hotspots].item[0].point[0].ath));
	</action>

*smile*

3

Monday, May 25th 2020, 3:38pm

oh god !
ok it's need names...
that's amazing, but why when they are hotspot i don't need to have name on it ?

regards.