Sie sind nicht angemeldet.

1

Samstag, 8. August 2015, 18:21

unknown action: scene_name

I've run across an oddity. Maybe it's my code, or not.


I created a tour with all flat images (ordinary pictures).

When starting (button), each image (scene) will get zoomed in, then proceed to the next scene and repeat. But I am getting stuck after the 2nd image when trying to load the 3rd scene.

I get a WARNING: unknown action: scene_somescenename

INFO: krpano 1.18.4 (build 2015-04-23) INFO: HTML5/Desktop - Opera 31.0 (Chrome) - WebGL INFO: Registered to: Tony Baker INFO: im in the tween INFO: i made it to the action called nextscene INFO: im in the tween WARNING: unknown action: scene_856


Here is the code...

Quellcode

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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
	<events name="scene_slide_events" keep="true" />
	
	<layer name="btn_showstarter" type="container" keep="true" visible="true" align="center" width="50" height="50" zorder="20" bgcapture="true" bgalpha="1.0" bgcolor="0x000000" onclick="starttheshow();" />
	
	<action name="starttheshow">
showlog();
		set(events[scene_slide_events].onnewscene, zoomin() );
		zoomin();
	</action>
	
	<action name="zoomin">
trace(im zoomin);
		set(randomfov, 0);
		set(rfov, 0);
		mul(randomfov, random, 1);	
		if(randomfov GT .6,
			if(randomfov LT .8,
trace(i made it between .6 and .8);
				set(curscene, get(scene[get(xml.scene)].index));
trace('i just got the current scene and it is ', get(curscene));
				delayedcall(2.0, tween(view.fov, get(randomfov), 4, easeInOutQuad, trace(im in the tween); setup_scenetoload(get(curscene))));				
			,
				zoomin();
			):
		,
		zoomin();
		);			

	</action>

	<action name="setup_scenetoload">

	
		set(cs, %1);
		trace('cs is ', get(cs));
		add(cs, 1);
		trace('cs is now ', get(cs));
		if(cs GT scenecount, set(cs, 0));
		trace('cs after if is ', get(cs));
		set(scenetoload, get(scene[get(cs)].name));
		trace('next scene name is ', get(scenetoload));
		loadscene(get(scenetoload), null, MERGE, BLEND(1.5)));	
		
		
	</action>



Any ideas

Thanks, Tony

Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »nefar1ous« (10. August 2015, 12:28)


2

Samstag, 8. August 2015, 18:23

I obviously omitted the actual tour, which is just 5 images batched as a make VTour and all images set as #1 (flat images).