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.

SEA7

Beginner

  • "SEA7" started this thread

Posts: 4

Location: Brooklyn, NY

Occupation: Photographer

  • Send private message

1

Monday, October 20th 2014, 3:40pm

Vtour_scenetemplate.xml mod

I would like to use the [BASENAME] value to increment a loadscene value. In the code sample I would like to have the XX in scene_XX replaced with a statement like scene_[BASENAME]+1 but don't know how to code it. Is it possible?


Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
<scene name="scene_[BASENAME]" title="[NAME]" onstart=""[THUMB][GPS][DEVICE]>
		[VIEW]
		[PREVIEW]
		[IMAGE]<!-- use some events to do something: --> 
    <events name="scene1events" onloadcomplete="start_view_moving();"></events>
<!-- to some lookto's, then load another scene --> 
<action name="start_view_moving"> oninterrupt(break); 
lookto(0,0,90,smooth(10,10,10));
lookto(0,0,90,smooth(10,10,10));
lookto(0,0,90,smooth(10,10,10));
loadscene(scene_XX, null, MERGE, BLEND(1)); 
lookat(0,0,90); wait(BLEND) </action>
		[HOTSPOTS]
	</scene>


Pan, Zoom, Tilt has to be set for each move but all my panos chain together so I would like to automate any steps I can. I would like scene_01 to chain to scene_02 to save a few steps in editing.

Sample tour (partial) testing Krpano 1.18: Sun Valley Chalet

Similar threads