You are not logged in.

1

Wednesday, May 18th 2016, 10:13pm

Changing Pano to tour in different directory

Hi guys,
I'm running into an issue where I'm tring to change the pano from the main tour to a second tour in a nested directory. The code I have is:

Source code

1
onclick="changepano( loadpano('/buildings/welcomeCenter/tour.xml', null, NOPREVIEW|MERGE|KEEPVIEW|KEEPMOVING, BLEND(1));); closeHomeMenu"


however I keep geting this Warning - " WARNING: Unknown action: changepano "

This code was copied identically from the sample xml document provided on the example page of the documentation.

Any thoughts?
Thanks,
~Andrew

Timescale

Trainee

Posts: 120

Location: Netherlands

Occupation: Archaeologist, Timescale R&D

  • Send private message

2

Wednesday, May 18th 2016, 10:30pm

This code was copied identically from the sample xml document provided on the example page of the documentation.
Could you link to this documentation. I can't find any function or action called "changepano" in the documentation.

Have you checked that this action "changepano" actually exists somewhere within the scope of the tour.xml where you are calling it from?

I also do not see what this action would do anyway. If you want to load another pano, isn't loadPano enough?

Source code

1
onclick="loadpano('/buildings/welcomeCenter/tour.xml', null, NOPREVIEW|MERGE|KEEPVIEW|KEEPMOVING, BLEND(1));"

3

Wednesday, May 18th 2016, 10:45pm

Could you link to this documentation. I can't find any function or action called "changepano" in the documentation.
It was taken from line 313 in the webVR xml document.

Link: http://krpano.com/viewsource.html?exampl…r/krpano_vr.xml

Source of Link: http://krpano.com/examples/usage/#webvr

Timescale

Trainee

Posts: 120

Location: Netherlands

Occupation: Archaeologist, Timescale R&D

  • Send private message

4

Wednesday, May 18th 2016, 11:17pm

And you have also copied this action to the main tour.xml ?

Source code

1
2
3
4
5
6
7
8
	<!-- pano changing actions -->
	<action name="changepano">
		for(set(i,0), i LT hotspot.count, inc(i),
			if(hotspot[get(i)].style == 'thumb', set(hotspot[get(i)].enabled, false); );
			if(hotspot[get(i)].name != 'vr_cursor', tween(hotspot[get(i)].alpha, 0.0, 0.25); );
		  );
		delayedcall(0.25, %1; vr_menu_setvisibility(true); );
	</action>