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.

VN2009

Professional

  • "VN2009" started this thread

Posts: 1,336

Location: Duluth MN

  • Send private message

1

Saturday, November 27th 2010, 1:58am

vtour removethumbs()

i modified the closethumbs action in an attempt to totally remove the thumb plugins all together. it kind if works but not all the way. when using this code the thumbs do disappear but they are not totally removed from the stage. if i exit 1 location with 3 scenes labeled scene 1,2,3 and enter a second location with scenes labelled 1,2,4 i end up with 4 thumbs. 1 and 2 overwrite cause the names are the same. 3 is left over from the first location and 4 is what should be the 3rd.

i used this code.
<action name="removethumbs">
if(%1 != NEXT, set(i,0));
if(i LT scene.count,
txtadd(thumbname,'thumb_',get(i));
removeplugin(get(thumbname));
inc(i);
removethumbs(NEXT);
);
</action>

EDIT: this problem is from trying to run 2 vtours created with the vtour droplet inside a main tour. the thumbs are being removed succesfully however the scene data tied to them remains in cache. so when loading a second vtour if the names match things are over written ok if they do not then i end up with mixed results as some of the old scene data is reused.

Klaus is there any way to reset all scene data? i want to use the vtour droplet to make multiple mini-tours that are accessable from my main tour but the way scene data is handed makes it seem like it won't be possible.

This post has been edited 1 times, last edit by "VN2009" (Nov 27th 2010, 3:10am)


2

Wednesday, December 1st 2010, 4:52pm

Hi,

about the problem - right, the <scene> tags were not removed when loading a new xml,
I will think about doing that automatically,

to remove the scenes manually just do:

Source code

1
set(scene.count,0);


this could be done before loading the new pano for example,

best regards,
Klaus

Similar threads