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.

1

Thursday, June 27th 2013, 12:58pm

How can hide some thumbs from thumbs bar?

Please, How can I hide some thumbs from thumbs bar? Some views want to link only with hotspots ... e.g. room and bathroom... http://plaza.grandpano.sk/mobile/tour.html Thank you
Peter Farkaš has attached the following files:
  • tour.xml (9.67 kB - 5 times downloaded - latest: May 30th 2019, 7:07am)
  • vtourskin.xml (30.04 kB - 4 times downloaded - latest: May 30th 2019, 8:38am)

2

Thursday, June 27th 2013, 5:36pm

Solution from Klaus:

Must change in tour.xml:

<scene ... skipthumb="true"> ... </scene>

And in vtourskin.xml:


<action name="skin_addthumbs">
copy(thumbwidth, skin_settings.thumbs_width);
copy(thumbheight, skin_settings.thumbs_height);
copy(thumbpadding, skin_settings.thumbs_padding);
copy(thumbcrop, skin_settings.thumbs_crop);

if(device.mobile,
mul(thumbwidth,2);
mul(thumbheight,2);
mul(thumbpadding,2);
);

add(thumbxoffset, thumbwidth, thumbpadding);
mul(thumbxcenter, thumbxoffset, 0.5);

set(thumbcnt,0);

for(set(i,0), i LT scene.count, inc(i),
if(scene[get(i)].skipthumb != true,
txtadd(thumbname,'skin_thumb_',get(thumbcnt));
addlayer(get(thumbname));
copy(layer[get(thumbname)].url, scene[get(i)].thumburl);
set(layer[get(thumbname)].keep, true);
set(layer[get(thumbname)].parent, 'skin_thumbs');
set(layer[get(thumbname)].align, lefttop);
copy(layer[get(thumbname)].crop, thumbcrop);
copy(layer[get(thumbname)].width, thumbwidth);
copy(layer[get(thumbname)].height, thumbheight);
mul(thumbx, thumbcnt, thumbxoffset);
add(thumbx, thumbpadding);
copy(layer[get(thumbname)].x, thumbx);
copy(layer[get(thumbname)].y, thumbpadding);
add(scene[get(i)].thumbx, thumbx, thumbxcenter);
copy(scene[get(i)].thumby, thumbpadding);
set(layer[get(thumbname)].linkedscene, get(scene[get(i)].name) );
set(layer[get(thumbname)].onclick, skin_showthumbs(false); copy(layer[skin_thumbborder].parent, name); loadscene(get(linkedscene), null, MERGE, BLEND(0.5)); );
if(skin_settings.tooltips_thumbs,
set(layer[get(thumbname)].onhover, showtext(get(scene[get(linkedscene)].title),SKIN_TOOLTIPS); );
);
if(skin_settings.thumbs_text,
txtadd(thumbtext, 'skin_thumbtext_', get(i));
addlayer(get(thumbtext));
layer[get(thumbtext)].loadstyle(skin_thumbtext_style);
set(layer[get(thumbtext)].keep, true);
set(layer[get(thumbtext)].parent, get(thumbname));
set(layer[get(thumbtext)].html, get(scene[get(i)].title));
);
inc(thumbcnt);
);
);


mul(thumbbarwidth, thumbxoffset, thumbcnt);
add(thumbbarwidth, thumbpadding);
add(thumbbarheight, thumbpadding, thumbheight);
add(thumbbarheight, thumbpadding);

if (skin_settings.thumbs_scrollindicator,
copy(layer[skin_thumbs_scrollindicator].y, thumbbarheight);
add(thumbbarheight, layer[skin_thumbs_scrollindicator].height);
);

copy(layer[skin_thumbs].height, thumbbarheight);
copy(layer[skin_thumbs].width, thumbbarwidth);

mul(halfheight, thumbbarheight, 0.5);
copy(layer[skin_thumbs_scrollleft].y, halfheight);
copy(layer[skin_thumbs_scrollright].y, halfheight);

</action>

3

Friday, June 28th 2013, 9:51am

I found problem...

*cry* I found a problem in this solution: When I click on the hotspot of view that is hidden, krpano write me an error: ERROR: no parent "skin_thumb_11" found ... For example try click on arrow in Mooser crystal room... http://plaza.grandpano.sk/mobile/tour.html

Can someone help please?
Peter Farkaš has attached the following image:
  • prtscrn.jpg
Peter Farkaš has attached the following files:
  • tour.xml (8.29 kB - 2 times downloaded - latest: Aug 3rd 2013, 12:53pm)
  • vtourskin.xml (30.21 kB - 2 times downloaded - latest: Aug 3rd 2013, 12:55pm)

bulp

Intermediate

Posts: 389

Location: Malaysia

  • Send private message

4

Saturday, June 29th 2013, 3:18pm

my test with your code is ok...

it works.. but the 1st thumb / after id hide the real 1st thumb.. cant be click... unless i use the fwd & bwd button...

i think better skip scene than skip thumb... :)

5

Thursday, January 16th 2014, 11:04am

No it does not work, bite to get the hidden scene through the arrow hotspot ... *cry* Does anyone help please? Thank you to everybody

6

Thursday, January 16th 2014, 3:28pm

The same problem ... In the project I hid the last six thumbnail (these are daily views). When you click the icon, the sun appears to me top left corner of the stroke of the thumb bar ... How can I hide a stroke? Does anyone help please?

Project: http://tests.grandpano.sk/vtour-test-kampa/
Peter Farkaš has attached the following files:
  • tour.xml (17.57 kB - 9 times downloaded - latest: Mar 8th 2018, 8:11pm)
  • vtourskin.xml (37.33 kB - 2 times downloaded - latest: Sep 28th 2015, 9:21am)

Umalo

Professional

Posts: 1,047

Location: Osijek, Croatia, EU

  • Send private message

7

Friday, January 17th 2014, 11:12am

Add attribute e.g. view="day" to scene with two states "day" or "night"
When switching views you have to remove already existing thumbs from memory and recreate new set with scenes/thumbs matching current view.
Use editor to explore that thumbs you have in memory to have clear situation.

8

Friday, January 17th 2014, 11:45am

Thank you for your response.

Could you be more specific, I'm not a great programmer and I am a beginner in Krpano...
Can you please modify my code, it's for me and my work very important. I believe that this would help the other users.

*smile* Thank Umalao