You are not logged in.

  • "claire_france" started this thread

Posts: 18

Location: Glasgow

Occupation: Virtual Tours, Photography, PHP & mySQL

  • Send private message

1

Saturday, November 15th 2014, 12:19am

Setting hlookat and vlookat in the querystring

Hi, I was wondered whether it is possible to set hlookat and vlookat in the querystring as it is with startscene along this sort of lines:
http://lunga.imageweavers.co.uk/tour/?st…=25&vlookat=-10

Many thanks,
CF

Tuur

Sage

Posts: 3,154

Location: Netherlands

Occupation: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer

  • Send private message

2

Saturday, November 15th 2014, 12:28am

Hi,
Try:

Blabla&view.hlookat=blabla

So use view.hlookat instead of hlookat.
Hope i'm right..(ipad) and that it helps.
Tuur *thumbsup*
http://www.virtualtuur.com
Skype:studiotuur

Posts: 1,850

Occupation: Virtual Tours - Photography - Krpano developer

  • Send private message

3

Saturday, November 15th 2014, 2:27am

KRPano Developer: Portfolio ::Gigapixel Tagging Solutions - Porfolio 2 :: Facebook :: Twitter :: reddit.com/r/VirtualTour

Umalo

Professional

Posts: 1,047

Location: Osijek, Croatia, EU

  • Send private message

4

Saturday, November 15th 2014, 11:42am

In your example it would be:

Source code

1
http://lunga.imageweavers.co.uk/tour/?startscene=scene_273&view.hlookat=25&view.vlookat=-10

but you need to remove

Source code

1
<view hlookat="0" vlookat="0" 
from your scene definition

or you can make received paramenters handler onnewscene and set view based on paramenters received (kind of overwriting values from memory)

Source code

1
2
3
4
5
6
7
8
9
10
<events  name="collecting_paramenters_events" keep="true" onnewscene="received_parameters_handler(); " />

<action name="received_parameters_handler">						
	set_new_view(ath,atv);
</action>

<action name="set_new_view">		
	copy(view.hlookat,%1);
	copy(view.vlookat,%2);					
</action>

In this case your link would be:

Source code

1
http://lunga.imageweavers.co.uk/tour/?startscene=scene_273&ath=25&atv=-10

  • "claire_france" started this thread

Posts: 18

Location: Glasgow

Occupation: Virtual Tours, Photography, PHP & mySQL

  • Send private message

5

Monday, November 17th 2014, 2:26pm

Thank you all - Perfect.
Claire
:)