Sie sind nicht angemeldet.

  • »sachagriffin« ist der Autor dieses Themas

Beiträge: 1 857

Beruf: Virtual Tours - Photography - Krpano developer

  • Nachricht senden

1

Dienstag, 3. Januar 2012, 01:05

NUKE ALL THE PLUGINS!

Quellcode

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

Dienstag, 3. Januar 2012, 01:17

EDIT: plugin.count is read only.


Maybe this is what you are looking for?

removeplugin

Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »Jarredja« (3. Januar 2012, 01:46)


  • »sachagriffin« ist der Autor dieses Themas

Beiträge: 1 857

Beruf: Virtual Tours - Photography - Krpano developer

  • Nachricht senden

3

Dienstag, 3. Januar 2012, 02:42

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

Dienstag, 3. Januar 2012, 10:14

Hi,

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

Quellcode

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

Ähnliche Themen