Sie sind nicht angemeldet.

1

Donnerstag, 28. Oktober 2010, 05:35

Reset Krpano - new feature need

Hallo, Klaus!
resetkrpano(); - function need... (total reset of all krpano)
I did not find it in forum...

situation when you load other tour from current tour and you no need to keep some thing.
I think it usefull.. *cool*
What do you thinking about this?

Thanks!
VRAP - desktop VR content player based on krpano.
Common tasks in one place in one click! Discussion thread
DOWNLOAD for MAC
DOWNLOAD for WIN

2

Donnerstag, 28. Oktober 2010, 15:20

mindlessboss - you could use this script Michel wrote for me that deletes all hotspots i am sure it could be modified to remove all plugins as well.

<!-- Removing Hospots action
---- usage: removing_hotspots( attribute * , value * );
---- attribute = your custom attribute name in the hotspot you needs to check for...
---- value = the value of your custom attribute name in the hotspot you needs to check for...
----
---- with ( attribute * , value * ) , only hotspots with the given arguments are removed
---- without ( attribute * , value * ) , all hotspots are removed
-->
<action name="removing_hotspots">
sub(i,hotspot.count,1);
if(i GE 0,removing_loop_all_hotspots(get(i),%1,%2));
</action>

<action name="removing_loop_all_hotspots">
if(%2 == null,
removehotspot(%1);
,
if(hotspot[%1].%2 == %3,
removehotspot(%1);
);
);
dec(i);
if(i GE 0, removing_loop_all_hotspots(get(i),%2,%3) );
</action>

3

Donnerstag, 28. Oktober 2010, 18:32

Yes, i know...
i'm using this for remove all plugins

Quellcode

1
2
<action name="reset_plugins"> set(rpi, get(plugin.count) ); remove_plugins(); </action>
<action name="remove_plugins">	dec(rpi);	if(rpi GE 0, removeplugin(get(rpi)); remove_plugins(); ); </action>

But my request for standart "resetkrpano" action

Thanks for try to help *thumbup*
VRAP - desktop VR content player based on krpano.
Common tasks in one place in one click! Discussion thread
DOWNLOAD for MAC
DOWNLOAD for WIN

4

Freitag, 29. Oktober 2010, 06:28

Set the keep attribute to "false" for all hotspots and plugins, load a new tour using "loadpano", you'll have a completely new tour without any remnants from the previous tour. Is that not possible?

5

Freitag, 29. Oktober 2010, 16:06

Hi all,

Here a post from Klaus about this: Removeall option? ...

SAlut.

6

Freitag, 29. Oktober 2010, 19:18

Here a post from Klaus about this: Removeall option? ...
Thanks, Michel! You are very good guy!
Of course, how can i forgot this?!?!?!? *confused*
VRAP - desktop VR content player based on krpano.
Common tasks in one place in one click! Discussion thread
DOWNLOAD for MAC
DOWNLOAD for WIN