You are not logged in.

Kev-in-spain

Intermediate

  • "Kev-in-spain" started this thread

Posts: 152

Location: Barcelona

Occupation: VR Photographer

  • Send private message

1

Monday, September 10th 2012, 10:58pm

Hide thumbs

Hi all, I've not been on here for a while as we have not been very busy with producing tours just lately (things are tough here in Spain!)
Anyway, we've recently had a couple of jobs come in and I've downloaded the latest KRpano version (1.0.8.15) to find that everything is quite a bit different. It's taken me a few hours to find my way around the new skin.xml but I'm beginning to understand and have managed to introduce a couple of simple additions like auto rotate on/off and a zoom reset.
However, I've been trying to work out how to hide the thumbs when the user clicks his/her chosen scene and am getting nowhere fast. Anyone able to give me any pointers?

Thanks in advance

Kev

Tuur

Sage

Posts: 3,839

Location: Netherlands

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

  • Send private message

2

Tuesday, September 11th 2012, 1:09am

Hi,

Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
<action name="skin_addthumbs">
		
...
...


			
			copy(scene[get(i)].thumby, thumbpadding);
			set(layer[get(thumbname)].linkedscene, get(scene[get(i)].name) );
			set(layer[get(thumbname)].onclick, copy(layer[skin_thumbborder].parent, name); loadscene(get(linkedscene), null, MERGE, BLEND(1)); wait(BLEND);        
                        skin_showthumbs(););
		  );
	</action>


in the last line, the onclick of the builded thumb i added the skin_showthumbs action to let it do:

Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<action name="skin_showthumbs">
		if(%1 == null, if(layer[skin_thumbs].state == 'hidden', set(show,true), set(show,false)); , set(show,%1); );
		mul(mh, layer[skin_scroll_layer].pixelheight, -1);
		if(layer[skin_scroll_layer].y == -100%, copy(layer[skin_scroll_layer].y,mh));
		if(show,
			set(layer[skin_thumbs].state, 'visible');
			add(mh, layer[skin_thumbs].height);
			tween(layer[skin_scroll_layer].y, get(mh), 0.5, easeOutQuint);
			set(layer[skin_thumbs].visible, true);
			tween(layer[skin_thumbs].alpha, 1.0, 0.25);
			tween(layer[skin_map].alpha, 0.0, 0.25, default, set(layer[skin_map].visible,false));
		  ,
			set(layer[skin_thumbs].state, 'hidden');
			tween(layer[skin_scroll_layer].y, get(mh), 0.5, easeOutQuint, set(layer[skin_thumbs].visible, false););
		  );
	</action>


which is default Klaus master code.

Hope it helps.

Tuur *thumbsup*

Kev-in-spain

Intermediate

  • "Kev-in-spain" started this thread

Posts: 152

Location: Barcelona

Occupation: VR Photographer

  • Send private message

3

Tuesday, September 11th 2012, 10:52am

Cheers Tuur.... exactly what I was looking for. *thumbup*

ramirox3

Intermediate

Posts: 354

Location: La Ceja, Colombia

Occupation: photographer

  • Send private message

4

Tuesday, September 11th 2012, 4:38pm

Hi
wonderful feature, flash works fine on desktop and Android,
but iPhone and iPad disappear all interface elements,
making it impossible to move to the next scene,
happens the same to you?
Ramiro

Kev-in-spain

Intermediate

  • "Kev-in-spain" started this thread

Posts: 152

Location: Barcelona

Occupation: VR Photographer

  • Send private message

5

Thursday, September 13th 2012, 3:42pm

All works fine for me on my 'testing' devices... pc, mac, android phone, iphone 3 & 4.
Have you fiddled with anything n the codes?

Kev

ramirox3

Intermediate

Posts: 354

Location: La Ceja, Colombia

Occupation: photographer

  • Send private message

6

Thursday, September 13th 2012, 11:31pm

Thanks Kev, I had a small error, omitted a word to copy and paste, everything works well already
Ramiro

SEA7

Beginner

Posts: 4

Location: Brooklyn, NY

Occupation: Photographer

  • Send private message

7

Thursday, June 13th 2013, 10:31pm

Hide Thumbs

Thank you very much. I am a new user of krpano and am not a programmer. You can see why I need your auto-hide code for my automated cinematic tours. This was making me crazy and I had no idea how to get it to work. I have used FPP for years and with a great deal of struggle and plugins from other users, made my tours work the way I liked.

Now I am back at square one and need this kind of support and extra code
for everything I need to do. My next challenge is getting the panos to
work in an iframe. It should be simple but I can't make it work.

Cupecoy condo with Tuur code

Thanks a million for this. *thumbsup*

Stephen