Hello
It is a beginner, thank you.
Use the (MULTIRES) droplet.bat MAKE VTOUR, you created a panorama TOUR in 20 pictures.
I was able thumbnail of 20, but I want to hide the thumbnail only five of them.
Is there a way?
Thank you for your attention.
Hello
It is a beginner, thank you.
Use the (MULTIRES) droplet.bat MAKE VTOUR, you created a panorama TOUR in 20 pictures.
I was able thumbnail of 20, but I want to hide the thumbnail only five of them.
Is there a way?
Thank you for your attention.
Hi
Yes it's possible, all is possible ;)
Main idea is - set additional attribute to a scene/thumbnail which you want to hide (hidden="true" for example)
and check this attribute in add_thumbs action, add thumbnail if hidden is false.
But, note! - this hidden scenes must be a at the end of array.
<scene name="s1" />
<scene name="s2" />
<scene name="s3" hidden="true" />
<scene name="s4" hidden="true" />
And one more thing, you need to change next/prev scene action.
Hope it help
Regads
Andrey
Thank you for reply.
I'm sorry very much, do you mind if I taught a little more clearly?
I'm very sorry
i have another way.
do in your scene an extra thing, so i did id="tuur"
<scene name="scene_1" title="krpano" onstart="" id="tuur" thumburl="../../1.tiles/thumb.jpg" lat="" lng="" heading="">
and use this action for the thumbs:
<action name="skin_addthumbs">
copy(thumbwidth, skin_settings.thumbswidth);
copy(thumbheight, skin_settings.thumbsheight);
copy(thumbpadding, skin_settings.thumbspadding);
copy(thumbcrop, skin_settings.thumbscrop);
if(ismobile,
mul(thumbwidth,2);
mul(thumbheight,2);
mul(thumbpadding,2);
);
for(set(i,0);set(j,0); , i LT scene.count, inc(i),
if(scene[get(i)].id == 'tuur',
inc(j);
);
);
add(thumbxoffset, thumbwidth, thumbpadding);
mul(thumbxcenter, thumbxoffset, 0.5);
mul(thumbbarwidth, thumbxoffset, get(j));
add(thumbbarwidth, thumbpadding);
add(thumbbarheight, thumbpadding, thumbheight);
add(thumbbarheight, thumbpadding);
copy(layer[skin_thumbs].height, thumbbarheight);
copy(layer[skin_thumbs].width, thumbbarwidth);
for(set(i,0);set(j,0); , i LT scene.count, inc(i),
if(scene[get(i)].id == 'tuur',
txtadd(thumbname,'skin_thumb_',get(j));
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, j, 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, copy(layer[skin_thumbborder].parent, name); loadscene(get(linkedscene), null, MERGE, BLEND(0.5)); );
inc(j);
);
);
</action>
Display More
now it shows only the thumbs that have id="tuur"
next scene action would be like this:
<action name="skin_nextscene">
add(newsceneindex, scene[get(xml.scene)].index, %1);
if(newsceneindex GE 0,
if(newsceneindex LT scene.count,
if(scene[get(newsceneindex)].id != 'tuur',
set(trynextstep, %1);
if(%1 LT 0, sub(trynextstep,1), add(trynextstep,1));
skin_nextscene(get(trynextstep));
,
txtadd(layer[skin_thumbborder].parent, 'skin_thumb_', get(newsceneindex));
layer[skin_thumbs].scrolltocenter(get(scene[get(newsceneindex)].thumbx), get(scene[get(newsceneindex)].thumby));
loadscene(get(newsceneindex), null, MERGE, BLEND(0.5));
);
);
);
</action>
Display More
hope it helps,
Tuur
Tuur like
I tried the Source code of the above, but an error will appear.
WARNING: Locally not trusted - ExternalInterface NOT available!
ERROR: no parent "skin_thumb_0" found
version of krpano is is the latest, but I would do something different.
Thank you for your attention.
well works perfect for me..
maybe change the code for your needs?!
Tuur
the first warning is normal because you are offline
lookup the second one in the code and try something else for that..
Tuur
Tuur like
Hello
Since yesterday, I have to try it in various ways to rewrite the source code, but it has failed.
We apologize for your inconvenience very much, so I attach the xml file of standard, or does not offer Professor rewriting?
Thank you for your attention.
you should modify action below
<action name="skin_addthumbs">
<action name="skin_update_scene_infos">
<action name="skin_nextscene">
<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); for(set(i,0);set(j,0), i LT scene.count, inc(i), if(scene[get(scene[get(i)].name)].thumb_display!="false",inc(j)); ); mul(thumbbarwidth, thumbxoffset, j); 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);
for(set(i,0);set(j,0), i LT scene.count, inc(i), if(scene[get(scene[get(i)].name)].thumb_display=="false",inc(j), txtadd(thumbname,'skin_thumb_',get(i)); 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); sub(k,i,j); mul(thumbx, k, 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, copy(layer[skin_thumbborder].parent, name); set(layer[sidebar].keep, true); loadscene(get(linkedscene), null, MERGE, BLEND(0.5));); if(skin_settings.tooltips_thumbs, set(layer[get(thumbname)].onhover, showtext(get(scene[get(linkedscene)].title_hover),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)); ); ); ); </action>
Display More
<action name="skin_update_scene_infos"> if(xml.scene != null, if(title, set(layer[skin_title_right].html,'');txtadd(layer[skin_title_right].html, get(scene[get(xml.scene)].title_top),' ',get(scene[get(xml.scene)].title_area) );txtadd(layer[skin_title].html, get(title), ' - ', get(scene[get(xml.scene)].title_hover) ) , copy(layer[skin_title].html, scene[get(xml.scene)].title ); ); delayedcall(0.1, set(layer[skin_title].visible,true);set(layer[skin_title_right].visible,true)); set(firstscene_panonum,0); set(scene_true,0); for(set(k,1), k LE scene.count, inc(k), if(scene[get(k)].thumb_display == "true", set(scene_true,1)); ); if(scene_true == 1, for(set(i,1), scene[get(i)].thumb_display != "true", inc(i), add(firstscene_panonum,1); ); ); if(scene_true == 0, for(set(i,0), i LT scene.count, inc(i), add(firstscene_panonum,1); ); ); if(scene[get(xml.scene)].index GT firstscene_panonum, set(layer[skin_btn_prev].enabled, true); set(layer[skin_btn_prev].alpha, 1.0); , set(layer[skin_btn_prev].enabled, false); set(layer[skin_btn_prev].alpha, 0.3); );
sub(lastsceneindex, scene.count, 1); for(set(i,0), scene[get(lastsceneindex)].thumb_display != true, inc(i), sub(lastsceneindex, 1); ); if(scene[get(xml.scene)].index LT lastsceneindex, set(layer[skin_btn_next].enabled, true); set(layer[skin_btn_next].alpha, 1.0); , set(layer[skin_btn_next].enabled, false); set(layer[skin_btn_next].alpha, 0.3); ); copy(q,scene[get(xml.scene)].index); for(set(i,0), scene[get(q)].thumb_display != true, inc(i), sub(q,1); ); txtadd(layer[skin_thumbborder].parent, 'skin_thumb_', get(q)); set(layer[skin_thumbborder].visible, true); );
if(scene[get(xml.scene)].mapspotname, layer[skin_map].activatespot(get(scene[get(xml.scene)].mapspotname)); layer[skin_map].pantospot(get(scene[get(xml.scene)].mapspotname)); ); ); </action>
<action name="skin_nextscene"> add(newsceneindex, scene[get(xml.scene)].index, %1); if(newsceneindex GE scene[get(xml.scene)].index, for(set(i,0), scene[get(newsceneindex)].thumb_display != true, inc(i), add(newsceneindex, 1); ); ); for(set(i,0), scene[get(newsceneindex)].thumb_display != true, inc(i), sub(newsceneindex, 1); ); copy(q3,newsceneindex); copy(q2,newsceneindex); sub(q3,1); if(q3 GE 0, for(set(i,0), scene[get(q3)].thumb_display != true, inc(i), sub(q3,1); ); ); if(newsceneindex LT scene[get(xml.scene)].index, if(scene[get(xml.scene)].thumb_display == "true",copy(newsceneindex,q2),copy(newsceneindex,q3); ); ); if(newsceneindex GE 0, if(newsceneindex LT scene.count, sub(q, scene[get(xml.scene)].index, scene[get(xml.scene)].thumb_num); txtadd(layer[skin_thumbborder].parent, 'skin_thumb_', get(newsceneindex)); layer[skin_thumbs].scrolltocenter(get(scene[get(newsceneindex)].thumbx), get(scene[get(newsceneindex)].thumby)); loadscene(get(newsceneindex), null, MERGE, BLEND(0.5)); ); ); </action>
Hello
tmhok
Now late reply, but I was able to hide the thumbnail of any safe.
Thank you so much!!! !
Don’t have an account yet? Register yourself now and be a part of our community!