You are not logged in.

tommo77funk

Intermediate

  • "tommo77funk" started this thread

Posts: 159

Location: London

Occupation: Photographer

  • Send private message

1

Tuesday, January 8th 2013, 11:49am

Open/close advanced image gallery

Hi,

Just noticed this image gallery last night, looks very cool, thanks Klaus !

http://www.krpano.com/examples/10815/exa…agegallery.html

I try to make a button for it, which I can do, but cant seem to make the thumbnail images disappear when changing visibility of the thumbbar..

<action name="x-gallery-close">

set(plugin[thumbbar].visible,false);

set(plugin[thumbbar_images].visible,false);

</action>

what is the correct code to change the visibility of a group of thumbnails from the thumbbar.xml example ?

I have tried

set(plugin[%pname].visible,false);

thumbbar_hide_allimages();

even

thumbbar_hideimage('images/myimage.jpg');

with all images referenced....

but no joy...

Cant quite find it, and would appreciate help if anybody knows ?

best,

tom

Tuur

Sage

Posts: 3,839

Location: Netherlands

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

  • Send private message

2

Tuesday, January 8th 2013, 2:41pm

Hi Tom,

i used this some years ago..

Source code

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
		<action name="hide">
		
		
						
		tween(plugin[thumbbar].alpha, 0,1);
		tween(plugin[thumbbar_image_0].alpha, 0,0.5);
		tween(plugin[thumbbar_image_1].alpha, 0,0.5);
		tween(plugin[thumbbar_image_2].alpha, 0,0.5);
		tween(plugin[thumbbar_image_3].alpha, 0,0.5);
		tween(plugin[thumbbar_image_4].alpha, 0,0.5);
		tween(plugin[thumbbar_image_5].alpha, 0,0.5);
		tween(plugin[thumbbar_image_6].alpha, 0,0.5);
		tween(plugin[thumbbar_image_7].alpha, 0,0.5);
		tween(plugin[thumbbar_image_8].alpha, 0,0.5);
		tween(plugin[thumbbar_image_9].alpha, 0,0.5);

		set(plugin[thumbbar_image_0].enabled, false);
		set(plugin[thumbbar_image_1].enabled, false);
		set(plugin[thumbbar_image_2].enabled, false);
		set(plugin[thumbbar_image_3].enabled, false);
		set(plugin[thumbbar_image_4].enabled, false);
		set(plugin[thumbbar_image_5].enabled, false);
		set(plugin[thumbbar_image_6].enabled, false);
		set(plugin[thumbbar_image_7].enabled, false);
		set(plugin[thumbbar_image_8].enabled, false);
		set(plugin[thumbbar_image_9].enabled, false);
		

		

	</action>


not the best code but it works.

Hope it helps,

Tuur *thumbsup*

tommo77funk

Intermediate

  • "tommo77funk" started this thread

Posts: 159

Location: London

Occupation: Photographer

  • Send private message

3

Tuesday, January 8th 2013, 2:54pm

Ah ! Nice one Tuur, it works many thanks :)

If anybody knows a function to access all thumb images (for shorter code) please get in touch

cheers,


tom