You are not logged in.

> The forum rules have been updated. Please take a moment to read them.


#1 2012-12-14 15:53:59

Philkrom
Member
Registered: 2012-05-29
Posts: 13

How to disable stackthumb animation

If there are many panos,  teh stackthumb building quickly becomes unbearable. And I do not understand how to disable it within the xml?

I guess he have to change the following code,  but I do not see which parameter sets the duration of the stackthumb building.

    <action name="buildstackthumbs">
        if(%1 LE %2,
        txtadd(thumbdescr, 'stackthumb', %1);
        copy(thumb, stackthumb[get(thumbdescr)].thumburl);
        txtadd(thumbname,'thumb_',%1);
        addplugin(get(thumbname));
        set(plugin[get(thumbname)].url   , get(thumb));
        set(plugin[get(thumbname)].keep  , true);
        set(plugin[get(thumbname)].align , lefttop);
        set(plugin[get(thumbname)].edge  , center);
        set(plugin[get(thumbname)].width , 25);
        set(plugin[get(thumbname)].height, 25);
        set(plugin[get(thumbname)].alpha , 0.8);
        if (%1 GE 4, set(reali, 4), set(reali, %1));
        mul(plugin[get(thumbname)].x, reali,3);
        mul(plugin[get(thumbname)].y, reali,3);
        add(plugin[get(thumbname)].x, 22);
        add(plugin[get(thumbname)].y, 22);
        copy(plugin[get(thumbname)].xsmall, plugin[get(thumbname)].x);
        copy(plugin[get(thumbname)].ysmall, plugin[get(thumbname)].y);
        add(plugin[get(thumbname)].zorder, 100, %1);
        set(plugin[get(thumbname)].title,get(stackthumb[get(thumbdescr)].title));
        set(plugin[get(thumbname)].thumbpos, %1);
        set(plugin[get(thumbname)].linkedpano, get(stackthumb[get(thumbdescr)].pano) );
        set(plugin[get(thumbname)].onclick, openstackthumbs(0,%2) );
        set(i, %1);
        inc(i);
        delayedcall(0,buildstackthumbs(get(i),%2));
        ,
        openstackthumbs(0, %2);
        );
    </action>

If anybody has an idea...

Offline

 

#2 2012-12-14 17:02:50

mediavets
Moderator
From: Isleham, Cambridgeshire, UK.
Registered: 2007-11-14
Posts: 9826
Website

Re: How to disable stackthumb animation

I'm no coder but I think it probably has to do with an attribute for the tween action(s) in the openstackthumb action:

http://krpano.com/docu/actions/#tween


Uploaded Images

Last edited by mediavets (2012-12-14 17:04:46)


Andrew Stephens
Nikon D40, Nikkor 10.5mm fisheye, Sigma 8mm f3.5 fisheye, Nikkor 18-55/50/35mm lenses, Nodal Ninja 5 Lite, Nodal Ninja 4 with R-D16, Agno's MrotatorTCS short.
Nikon P5100, CP5000, CP995, FC-E8, WC-E63,WC-E68, TC-E2, Kaidan Kiwi 995, Bophoto pano bracket, Agno's MrotatorA.
Merlin/Orion robotic pano head + Papywizard on Nokia 770/N800/N810 and Windows 8/XP/2K.

Offline

 

#3 2012-12-14 22:46:20

Destiny
Moderator
From: Australia
Registered: 2010-04-27
Posts: 2420
Website

Re: How to disable stackthumb animation

Hi..

I personally would be looking at other options like..; creating more than one thumb stack or just have the relevant thumb stack images on the related panos...

Destiny...


Virtual Tours and 3D/360 Object/Product Photographer - Our aim is to create a 3D/360 Virtual Tour Shop/Store with links to 3D/360 degree products. My gear, VR Drive II - D90 - Nikon 10.5 fisheye - Nikon D800 with Nikon-Nikkor 14-24 - NOVOFLEX Magic Balance - Acratech GP Ball-head - Nodal Ninja 4 + RD-16 Rotor - Manfrotto 190CXPRO4 Carbon Fiber Tripod smile smile

Offline

 

#4 2012-12-17 09:26:28

bdd
Administrator
Registered: 2011-01-18
Posts: 622
Website

Re: How to disable stackthumb animation

Hello,

What do you mean by "building time" ?
The "buildstackthumbs" action is the action that creates the thumbnails. This action cannot be accelerated. There is no parameter to create the "krpano plugins" faster.

If it is the opening of the stack that you want to accelerate, then you can change the openstackthumb(s) and closestackthumb(s) actions and replace the "tween" calls by "set" calls.

Gérald
PS for Destiny : the option you describe will be in the 2.0

Offline

 

#5 2012-12-17 10:13:51

Philkrom
Member
Registered: 2012-05-29
Posts: 13

Re: How to disable stackthumb animation

OK, thanks for your answers, I thought I could modify some parameters so the buildstackthumbs could be instantaneous, but if teh "delay" is inside the plugin, this can't be done. I'll have to find another solution.

As you are an aministrator, bdd, and it seems you have some infos about V2, did you have a look at this topic I have posted : http://www.kolor.com/forum/t16576-sever … rtual-tour ?

It would be very helpfull for us... I can send you more explanations if you want.

All the best

Phil

Offline

 

#6 2012-12-17 11:17:38

mediavets
Moderator
From: Isleham, Cambridgeshire, UK.
Registered: 2007-11-14
Posts: 9826
Website

Re: How to disable stackthumb animation

bdd wrote:

Hello,

What do you mean by "building time" ?
The "buildstackthumbs" action is the action that creates the thumbnails. This action cannot be accelerated. There is no parameter to create the "krpano plugins" faster.

If it is the opening of the stack that you want to accelerate, then you can change the openstackthumb(s) and closestackthumb(s) actions and replace the "tween" calls by "set" calls.

Gérald

I think he means the speed at which the thumbnails are displayed (opened/unstacked) after clicking on the closed stack.


Andrew Stephens
Nikon D40, Nikkor 10.5mm fisheye, Sigma 8mm f3.5 fisheye, Nikkor 18-55/50/35mm lenses, Nodal Ninja 5 Lite, Nodal Ninja 4 with R-D16, Agno's MrotatorTCS short.
Nikon P5100, CP5000, CP995, FC-E8, WC-E63,WC-E68, TC-E2, Kaidan Kiwi 995, Bophoto pano bracket, Agno's MrotatorA.
Merlin/Orion robotic pano head + Papywizard on Nokia 770/N800/N810 and Windows 8/XP/2K.

Offline

 

#7 2012-12-17 11:51:38

Philkrom
Member
Registered: 2012-05-29
Posts: 13

Re: How to disable stackthumb animation

Yes, that's exactly what I mean, Gerald... If you have 4 or 5 panos, the building process is fast, if you have 30 panos, it takes a while... I would prefer an instantaneous display, as the thumbnails do.

Phil

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson