PDA

View Full Version : several xmls for one panorama ?


Nicolas Burtey
03-13-2008, 02:20 PM
Hello,

is it possible to load two xml files for a panorama :

one with :

<panorama>
<parameters>
panoType = cube0
panoName =
pan =
tilt =
</parameters>
</panorama>

and the others with all the parameters (plugins, standard hotspots, etc ...)
Like this, if I want to add for exemple one plugins for all my images, I have only to change the main xml, and not the xml of every images...

Is it possible to do that ?
Or is there a solution to do something similar ?

Thanks !

Nicolas.

Virtualguide
03-13-2008, 03:03 PM
Hi Nicolas,

From FPP Tutorial>Hotspots plugin:

disableReloading disables Hotspots reloading

This parameter defines the behaviour of Hotspots plugin on new XML file.

If disableReloading=0 (default), all hotspots and global parameters will be reloaded.

If disableReloading=1, <hotspots></hotspots> section in XML file will be ignored.

I think, You should have one "original .xml" with everything You need...

The other .xml files should have only minimum first lines with Your parameters of tilt, pan etc....
and in <global
just give the line disableReloading=1 .....

Maybe it helps You...
:)

I would like to know whether is it possible to have some blocks of code in different .xml files - I mean from hotspots section also???
U know, there is some code the same for my, say 40 panos, but little code differencies also - e.g. each pano has different hotspot/link to other panorama pan/tilt alignment, different tooltips, information windows etc...
If there would be the possibility to have the same code in one xml and changing parameterers in other - each panorama corresponding xml - it would be very very nice!

Regards,
Igor

Nicolas Burtey
03-13-2008, 03:45 PM
Thanks for your answer, but I don't understand this function ...

But, is it possible to add two xml, like

pano.swf&xml_file=main.xml&xml_file=pano1.xml ??

zleifr
03-13-2008, 04:40 PM
No it is not possible to add two XML files like you want.

The only know work around for that is to have a PHP, PERL, etc program dynamically create the XML by joining your various XML fragments. Then you just call the program with something in the query string that tell PHP what fragments to assemble:

xml_file=xml.php?file1=main.xml&file2=pano1.xml

Or something like that.

Zephyr