Hi All,
I want to skip particular thumbnail from thumbnail stack. I am using 'Buildthumb' function which is given in KRPano example.
My Scenario:
I have number of scenes with 'name' and 'thumburl' parameter set.
Some scenes name contain the 'Night' word at the end of scene name.
So, I want to skip those scene to generate thumbnails and while opening thumbnail stack using 'openthumb' action.
I have got success to find the scene names which has 'Night' word at end and skip that scene to generate the thumbnail by modifying the 'Buildthumb' action with below code,
Quote
set(nightthumb, get(scene[get(i)].title));
indexoftxt(nighttext, get(nightthumb), Night ,0);
However, when I click on thumbnail stack, it will show the empty spaces / place holder for the thumbnails which are skipped by 'Buildthumb' action.
Demo: http://ppe.iceportal.com/phase5/design5kr15/skip_thumb.htm
The below action is called when user will click on thumbnail stack.
QuoteDisplay More
<action name="openthumb">
trace(%1);
if(%2 != NEXT,
set(pos,0);
copy(curpos, plugin[%1].thumbpos);
set(xdst, 0);
set(ydst, 0);
);
if(pos LT curpos,
inc(pos);
inc(ydst,70);
sub(ymax, stageheight, 60);
if(ydst GT ymax, inc(xdst,70);set(ydst,0); );
openthumb(%1,NEXT);
,
add(xdst,20);
add(ydst,55);
tween(plugin[%1].x, get(xdst) );
tween(plugin[%1].y, get(ydst) );
tween(plugin[%1].width, 60);
tween(plugin[%1].height, 60);
);
</action>
Could you please let me know where can i sent condition for 'Night' and arrange the thumbnail stack without empty space?
--
Thanks
pratiks