You are not logged in.

Dear visitor, welcome to krpano.com Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

mindlessboss

Professional

  • "mindlessboss" started this thread

Posts: 940

Location: Russia, Krasnodar

  • 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!
XML plugins:
Intarface Framework - Framework for easy tour creation with droplet tool (flash and HTML5)
scrolling thumbs - http://krpano.com/plugins/userplugins/or…rollthumbs/#top (html5 has some limitations )
automatic maps - http://krpano.com/plugins/userplugins/automap/#top (html5 has some limitations )

VN2009

Professional

Posts: 1,334

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: 940

Location: Russia, Krasnodar

  • 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*
XML plugins:
Intarface Framework - Framework for easy tour creation with droplet tool (flash and HTML5)
scrolling thumbs - http://krpano.com/plugins/userplugins/or…rollthumbs/#top (html5 has some limitations )
automatic maps - http://krpano.com/plugins/userplugins/automap/#top (html5 has some limitations )

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: 940

Location: Russia, Krasnodar

  • 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*
XML plugins:
Intarface Framework - Framework for easy tour creation with droplet tool (flash and HTML5)
scrolling thumbs - http://krpano.com/plugins/userplugins/or…rollthumbs/#top (html5 has some limitations )
automatic maps - http://krpano.com/plugins/userplugins/automap/#top (html5 has some limitations )