You are not logged in.

mindlessboss

Professional

  • "mindlessboss" started this thread

Posts: 1,081

Location: Russia, Kaliningrad

  • Send private message

1

Thursday, October 28th 2010, 5:35am

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

VN2009

Professional

Posts: 1,336

Location: Duluth MN

  • Send private message

2

Thursday, October 28th 2010, 3:20pm

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>

mindlessboss

Professional

  • "mindlessboss" started this thread

Posts: 1,081

Location: Russia, Kaliningrad

  • Send private message

3

Thursday, October 28th 2010, 6:32pm

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

Source code

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

Friday, October 29th 2010, 6:28am

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?

michel

Professional

Posts: 1,153

Location: ANDORRA

Occupation: TV

  • Send private message

5

Friday, October 29th 2010, 4:06pm

Hi all,

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

SAlut.

mindlessboss

Professional

  • "mindlessboss" started this thread

Posts: 1,081

Location: Russia, Kaliningrad

  • Send private message

6

Friday, October 29th 2010, 7:18pm

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