You are not logged in.

Kev-in-spain

Intermediate

  • "Kev-in-spain" started this thread

Posts: 152

Location: Barcelona

Occupation: VR Photographer

  • Send private message

1

Thursday, July 10th 2014, 8:46pm

load new xml

Hi all,
I'm putting together an auto tour for a local estate agent to run on the screen in his shop window.
Throughout the tour there are a fair amount of pop-up info plugins/images etc and what I need to do is 'loop' the tour so it will run through its sequence indefinitely.
Rather than spend ages writing an action to reset all previous actions and, thus, setting all plugins/images back to their original state, I've tried to use "loadpano(auto_2.xml, null, MERGE, BLEND(2));" to 'restart' the loop.
Auto_2.xml is a carbon copy of the original xml aside from at the end of its sequence it calls for auto_1.xml.
To my mind, this should work the same as clicking refresh the browser and reloading the tour from the start. However, when the next xml loads, all plugins/images remain in their altered states from the previous xml action sequences. *confused*
As usual, I'm sure the problem lies somewhere between my keyboard and my office chair.... but I'd be really grateful if anyone has any idea where I've gone wrong here.

Thanks in advance

Kev

Posts: 1,857

Occupation: Virtual Tours - Photography - Krpano developer

  • Send private message

2

Friday, July 11th 2014, 3:45pm

You could have your designs outside a scene, and configurations inside the scenes..
Personally, I just use a reset function before switching xmls. removeplugin & delete etc.
KRPano Developer: Portfolio ::Gigapixel Tagging Solutions - Porfolio 2 :: Facebook :: Twitter :: reddit.com/r/VirtualTour

Kev-in-spain

Intermediate

  • "Kev-in-spain" started this thread

Posts: 152

Location: Barcelona

Occupation: VR Photographer

  • Send private message

3

Tuesday, July 15th 2014, 9:22am

Thanks for the reply sacha, as I said in my post, I know there are work arounds for this. I'm just wondering why "loadpano(auto_2.xml, null, MERGE, BLEND(2));" does not restart everything from fresh, like refreshing the browser. It should work, no?

4

Tuesday, July 15th 2014, 12:50pm

Hi,

please read here about the MERGE flag:
http://krpano.com/docu/actions/#loadpano

Try using the REMOVESCENES and IGNOREKEEP flags to remove as much as possible:

Source code

1
loadpano(auto_2.xml, null, REMOVESCENES|IGNOREKEEP, BLEND(2));


Additionally have also a look into the examples.xml that is included in the download package - in that xml there is a 'resetkrpano' action that resets all settings to default.

Best regards,
Klaus