You are not logged in.

  • "sachagriffin" started this thread

Posts: 1,850

Occupation: Virtual Tours - Photography - Krpano developer

  • Send private message

1

Tuesday, January 3rd 2012, 1:05am

NUKE ALL THE PLUGINS!

Source code

1
2
3
4
5
6
7
8
9
	<action name="resetkrpano">
		<!-- remove all scene/data/action nodes -->
		set(startscene,'');
		set(startindex,'');
		set(plugins.count, 0);
		set(thumbnails.count, 0);
		set(scene.count, 0);
		set(data.count, 0);
	</action>

Trying to kill all the xml that can contaminate a new tour.

loading new xml with
loadpano(xml,null,IGNOREKEEP,ZOOMBLEND(1,10));

restkrpano is not nuking plugins added with addplugin and loadpano setting isn't doing anything either.
Anyone know the easy way out?
KRPano Developer: Portfolio ::Gigapixel Tagging Solutions - Porfolio 2 :: Facebook :: Twitter :: reddit.com/r/VirtualTour

2

Tuesday, January 3rd 2012, 1:17am

EDIT: plugin.count is read only.


Maybe this is what you are looking for?

removeplugin

This post has been edited 1 times, last edit by "Jarredja" (Jan 3rd 2012, 1:46am)


  • "sachagriffin" started this thread

Posts: 1,850

Occupation: Virtual Tours - Photography - Krpano developer

  • Send private message

3

Tuesday, January 3rd 2012, 2:42am

Yes, in order to reset krpano I went ahead and unraveled all my added plugins this way..
Wasn't another easy way so far...
KRPano Developer: Portfolio ::Gigapixel Tagging Solutions - Porfolio 2 :: Facebook :: Twitter :: reddit.com/r/VirtualTour

4

Tuesday, January 3rd 2012, 10:14am

Hi,

here a 'one-liner' to remove dynamically all plugins:

Source code

1
loop(plugin.count GT 0, removeplugin(0));


the code means:
as long as plugin.count is greater than 0 - remove the first plugin (then the second plugin becomes the first one and the whole thing starts from the beginning)

best regards,
Klaus

Similar threads